/* 616 Labs website. One stylesheet for every page. */

:root {
  /* 616 Labs brand: deep slate, warm amber, off-white (primary dark hero kit, est. 2026) */
  --slate: #182126;
  --amber: #F5A623;
  --amber-deep: #8A5300;   /* amber for text and buttons on light grounds (5.8:1) */
  --off-white: #F4F4F2;
  --mist: #a3abb5;         /* secondary text on slate grounds (7.0:1 on slate, 6.3:1 on the raised band) */
  --band: var(--slate);    /* home hero band; raised in dark mode so it stays framed */
  --bg: var(--off-white);
  --surface: #ffffff;
  --text: var(--slate);
  --text-2: #4a535c;
  --line: rgba(24, 33, 38, .12);
  --accent: var(--amber-deep);
  --accent-ink: #ffffff;
  --max: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--slate);
    --surface: #1f2a30;
    --text: var(--off-white);
    --text-2: #a3abb5;       /* same value as --mist; written as hex so site_check can read it */
    --band: var(--surface);
    --line: rgba(244, 244, 242, .14);
    --accent: var(--amber);
    --accent-ink: var(--slate);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible, .hero-apps a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 3.2vw + 25px, 64px); font-weight: 780; max-width: 16ch; }
h2 { font-size: clamp(28px, 1.4vw + 22px, 40px); font-weight: 740; max-width: 18ch; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 62ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Slate frame: header, home hero, principles band and footer share the brand ground */
.site-header, .site-footer, .hero-band, .principles {
  --text: var(--off-white);
  --text-2: var(--mist);
  --accent: var(--amber);
  --accent-ink: var(--slate);
  --line: rgba(244, 244, 242, .14);
  background: var(--band);
  color: var(--text);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
body:has(.hero-band) .site-header { border-bottom-color: transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-weight: 720; font-size: 19px; letter-spacing: -0.01em; min-height: 44px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.brand, .site-nav a { white-space: nowrap; }
@media (max-width: 380px) {
  .site-header .wrap { gap: 10px; }
  .site-nav { gap: 16px; }
  .brand { font-size: 17px; }
}

/* Sections: one rhythm for the whole page */
main section { padding: 96px 0; }
main section + section { border-top: 1px solid var(--line); }
main .hero-band + section, main .principles, main .principles + section { border-top: 0; }
@media (max-width: 600px) { main section { padding: 64px 0; } }
.lede { font-size: clamp(19px, .6vw + 16px, 22px); color: var(--text-2); max-width: 44ch; }
.fact { color: var(--text-2); font-size: 16px; }
h3 { font-size: clamp(20px, .5vw + 18px, 23px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }

/* Home hero: copy and a small logo on the left, the apps on the right */
.hero-band { padding: 56px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-logo img { width: 220px; height: auto; margin: 0 0 24px -10px; }
.news { margin: 28px 0 0; font-size: 16px; color: var(--text-2); }
.news-label { display: inline-block; margin-right: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(245, 166, 35, .16); color: var(--amber); font-weight: 650; font-size: 14px; }
.hero-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-apps a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 20px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(244, 244, 242, .04);
  color: var(--text); text-decoration: none;
}
.hero-apps img { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 12px; }
.hero-apps .app-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.hero-apps .app-kind { color: var(--text-2); font-size: 14px; line-height: 1.35; }
.hero-apps a:hover .app-name { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .hero-apps a { transition: transform 150ms ease-out, border-color 150ms ease-out; }
  .hero-apps a:hover { transform: translateY(-2px); border-color: rgba(245, 166, 35, .5); }
}
@media (prefers-reduced-motion: reduce) { .hero-apps a, .hero-apps a:hover { transition: none; transform: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-band { padding: 32px 0 64px; }
  .hero-logo img { width: 180px; margin-bottom: 16px; }
}
@media (max-width: 380px) {
  .hero-apps { gap: 10px; }
  .hero-apps a { padding: 14px; }
  .hero-apps img { width: 56px; height: 56px; border-radius: 13px; }
}

/* Maker: who makes the apps */
.maker-band .maker-row { display: flex; align-items: center; gap: 40px; }
.maker-photo { width: 168px; height: 168px; border-radius: 50%; flex: none; border: 1px solid var(--line); }
.maker-band .lede { max-width: 52ch; }
.maker-band p:last-child { margin-bottom: 0; }
.maker-band .maker-row { align-items: flex-start; }
@media (max-width: 600px) {
  .maker-band .maker-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .maker-photo { width: 128px; height: 128px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; line-height: 1.25; text-align: center; text-decoration: none;
}
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.button.small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.text-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .button { transition: transform 150ms ease-out; }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: translateY(0); transition-duration: 90ms; }
}
@media (prefers-reduced-motion: reduce) { .button, .button:hover { transition: none; transform: none; } }

/* Split sections: text and picture top-aligned; on a phone the picture follows the text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Thermocline on Mac with the iPhone in front */
.devices { position: relative; margin: 0; padding: 0 9% 12% 0; }
.devices .device-mac { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(24,33,38,.06), 0 12px 32px rgba(24,33,38,.10); }
.devices .device-phone { position: absolute; right: 0; bottom: 0; width: 27%; height: auto; border-radius: 22px; border: 5px solid var(--slate); box-shadow: 0 10px 28px rgba(24,33,38,.22); }

/* Product cards */
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.card-shot { aspect-ratio: 4 / 3; background: var(--slate); overflow: hidden; display: flex; justify-content: center; }
.card-shot.shot-phone { padding-top: 28px; }
.card-shot.shot-phone img { width: 52%; height: auto; border-radius: 20px 20px 0 0; align-self: flex-start; }
.card-shot.shot-wide { align-items: center; padding: 0 20px; }
.card-shot.shot-wide img { width: 100%; height: auto; border-radius: 10px; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 28px; flex: 1; }
.card-body p { font-size: 16px; }
.card-body .button { margin-top: auto; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.card-actions .button { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head .stage { margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 11px; flex: none; }

/* Principles: three plain statements on the slate band */
.principle-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principle-list li { border-top: 2px solid var(--accent); padding-top: 20px; }
.principle-list p { color: var(--text-2); font-size: 16px; }
@media (max-width: 860px) { .principle-list { grid-template-columns: 1fr; gap: 28px; } }

/* Company name and place */
.company { display: grid; gap: 4px; align-self: center; font-style: normal; font-size: 19px; color: var(--text-2); padding-left: 28px; border-left: 2px solid var(--accent); }
.company strong { color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 860px) { .company { align-self: start; } }

/* Plain text pages */
.doc { padding: 64px 0 72px; }
.doc h2 { font-size: clamp(22px, .8vw + 19px, 28px); margin-top: 1.6em; }
.doc .updated { color: var(--text-2); font-size: 16px; }

/* Footer */
.site-footer { padding: 36px 0 44px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 6px; }
.site-footer p { margin: 0; max-width: none; color: var(--text-2); }
.site-footer strong { color: var(--text); font-weight: 650; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
}

/* Stage label on product cards and app pages */
.stage { display: inline-block; font-size: 14px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); margin: 0 0 10px; }
.stage.beta { color: var(--accent); border-color: var(--accent); }
.stage.live { color: var(--slate); background: var(--amber); border-color: var(--amber); }
.stage { white-space: nowrap; }

/* "A 616 Labs app" line on app pages */
.maker { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 16px; }

/* App pages: the same slate hero as the home page, screenshots beside the copy */
.app-hero { padding: 64px 0 88px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.app-hero .head { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.app-hero .head img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.app-hero h1 { margin: 0; font-size: clamp(34px, 2.2vw + 24px, 52px); }
.app-hero .lede { margin-top: 8px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.shots li:nth-child(2) { transform: translateY(-24px); }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .shots { max-width: 520px; }
  .shots li:nth-child(2) { transform: none; }
}
@media (max-width: 600px) {
  .app-hero { padding: 40px 0 64px; }
  .app-hero .head { gap: 16px; }
  .app-hero .head img { width: 64px; height: 64px; border-radius: 15px; }
  .shots { gap: 8px; } .shots img { border-radius: 10px; }
}
.ticks.features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: none; margin-top: 28px; }
@media (max-width: 760px) { .ticks.features { grid-template-columns: 1fr; } }
