/* Shared styles for the Chick guides, tour and 404 pages. Same palette and type as the landing page (Seasonal theme). */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url(../fonts/pjs-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url(../fonts/pjs-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-weight: 400; font-display: swap; src: url(../fonts/martian-mono-latin-400-normal.woff2) format('woff2'); }

/* Layout: a reading column of about 68 characters, a sticky contents rail on wide screens, the app's Seasonal palette. */
:root {
  --ground: #050B14; --accent: #8FD3FF; --accent-ink: #06283A; --accent-text: #A8DDFF; --acc2: #E6F6FF;
  --surface: color-mix(in srgb, var(--accent) 5%, #18181B); --surface-2: color-mix(in srgb, var(--accent) 7%, #222226); --surface-3: color-mix(in srgb, var(--accent) 9%, #2D2D32);
  --line: color-mix(in srgb, var(--accent) 12%, #36363C); --accent-deep: color-mix(in srgb, var(--accent) 22%, #121215);
  --text: #F5F3F0; --body-text: #D9D6D2; --muted: #ABA7A2; --dim: #77736F;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: linear-gradient(var(--ground) 60%, transparent); }
.nav-bar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 10px 0 12px; border-radius: 29px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 28px; height: 28px; margin-top: 2px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 14px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 16px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 22px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { transform: translateY(-2px); }
.nav .btn { margin-left: 4px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } .brand small { display: none; } }

/* Article header */
.crumbs { margin-top: 40px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; margin: 0; text-wrap: balance; color: var(--text); }
.page-head { padding-block: 22px 32px; display: grid; gap: 16px; max-width: 820px; }
.page-head h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.answer { border-radius: 24px; padding: 20px 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, #15161a), color-mix(in srgb, var(--accent) 7%, #101114)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); max-width: 760px; }
.answer .eyebrow { margin-bottom: 6px; }
.answer p { margin: 0; color: var(--body-text); font-size: 18px; line-height: 1.6; }
.answer strong { color: var(--text); }

/* Article body */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 24px 80px; }
@media (min-width: 1020px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
article { min-width: 0; max-width: 70ch; }
article h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; margin-top: 52px; }
article h3 { font-size: 19px; margin-top: 28px; }
article p, article li, article td { color: var(--body-text); }
article p { margin: 16px 0 0; }
article ul, article ol { margin: 16px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
article li::marker { color: var(--accent); font-weight: 700; }
article strong { color: var(--text); }
.table { margin-top: 18px; border-radius: 18px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); line-height: 1.45; vertical-align: top; }
th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; }
.faq { margin-top: 18px; display: grid; gap: 10px; }
.qa { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.qa summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent-text); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 18px 18px; }
.sources { margin-top: 18px; font-size: 14px; }
.sources li { color: var(--muted); }

/* Side rail */
.rail { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1020px) { .rail { position: sticky; top: 100px; } }
.toc { border-radius: 22px; background: var(--surface); padding: 18px; display: none; }
@media (min-width: 1020px) { .toc { display: block; } }
.toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.toc a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.app-card { border-radius: 26px; padding: 22px; background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--surface) 75%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); display: grid; gap: 14px; justify-items: center; text-align: center; }
.app-card h2 { font-size: 22px; margin: 0; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* iPhone frame (matches the landing page) */
.phone { --w: 200px; width: var(--w); max-width: 100%; padding: calc(var(--w) * .026); border-radius: calc(var(--w) * .17); background: linear-gradient(145deg, #5c5c62 0%, #2b2b2f 16%, #151517 50%, #2b2b2f 84%, #4b4b51 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 calc(var(--w) * .011) #0a0a0b, 0 40px 70px -30px rgba(0,0,0,.9); position: relative; }
.phone-screen { position: relative; width: 100%; aspect-ratio: 402 / 874; border-radius: calc(var(--w) * .145); overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: auto; }
.phone .island { position: absolute; top: calc(var(--w) * .049); left: 50%; width: calc(var(--w) * .30); height: calc(var(--w) * .088); transform: translateX(-50%); border-radius: 999px; background: #000; }

/* Related + cards */
.related { border-top: 1px solid var(--surface-2); padding-block: 56px 72px; }
.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border-radius: 24px; padding: 22px; background: var(--surface); text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), background .3s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.card:hover { transform: translateY(-4px); background: var(--surface-2); }
.card h3 { font-size: 21px; } .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card .go { color: var(--accent-text); font-weight: 700; font-size: 14px; }

/* Tour page */
.player { margin-top: 8px; border-radius: clamp(18px, 3vw, 32px); overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--surface-3), 0 50px 100px -40px color-mix(in srgb, var(--accent) 30%, transparent); aspect-ratio: 16 / 9; max-width: 100%; }
.player video { width: 100%; height: 100%; display: block; }
.chapters { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.chapters button { width: 100%; display: grid; grid-template-columns: 64px 1fr; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--surface); color: var(--body-text); font: inherit; font-size: 15px; line-height: 1.5; cursor: pointer; transition: background .2s; }
.chapters button:hover { background: var(--surface-2); }
.chapters time { font-family: var(--mono); font-size: 12px; color: var(--accent-text); padding-top: 3px; }
.chapters b { color: var(--text); display: block; }

/* Footer */
.foot { border-top: 1px solid var(--surface-2); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--accent-text); }
.foot .fine { width: 100%; color: var(--dim); font-size: 12px; margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
