/* Aurora Tracker: guide, state, privacy and support pages.
   Same design system as the home page (worker/site/src/index.css): Fraunces display + Hanken Grotesk, the ink sky,
   the home page's nav and dawn footer, and one left edge for everything (nav, heading, text, footer).
   Values mirror the Tailwind classes the home page uses; the px numbers in comments are those classes. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/hanken-grotesk.woff2) format("woff2"); }
@font-face { font-family: "Fraunces fallback"; src: local("Georgia"); size-adjust: 98%; ascent-override: 95%; }

:root {
  --ink: #04060B; --star: #EDEFF5; --aurora: #5CF2A6; --ring: #8FD6FF; --dusk: #2B2350; --dawn: #F2B880;
  --text: rgba(237, 239, 245, .8);   /* text-star/80 */
  --soft: rgba(237, 239, 245, .7);   /* text-star/70 */
  --line: rgba(237, 239, 245, .15);  /* border-star/15 */
  --serif: "Fraunces", "Fraunces fallback", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* One edge: px-5 on phones, px-8 from 768px; content never wider than max-w-7xl. */
  --edge: 20px; --page: 1280px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --edge: 32px; } }

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--star); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--edge); }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--star); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Display type, as on the home page */
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -.03em; font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance; }
.hl { position: relative; isolation: isolate; white-space: nowrap; font-style: italic; font-weight: 600; padding-inline: .04em; text-shadow: 0 1px 14px rgba(4, 6, 11, .55); }
.hl::before, .hl::after {
  content: ""; position: absolute; z-index: -1; inset: -.55em -.35em .16em; pointer-events: none;
  background: linear-gradient(to top, rgba(92, 242, 166, .55), rgba(92, 242, 166, .22) 45%, rgba(226, 69, 111, .18) 78%, transparent);
  --rays: repeating-linear-gradient(90deg, #000 0 6px, rgba(0, 0, 0, .35) 10px, #000 17px, rgba(0, 0, 0, .5) 23px, #000 31px);
  --rise: linear-gradient(to top, transparent, #000 18%, #000 32%, transparent 96%);
  --sides: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-image: var(--rays), var(--rise), var(--sides); mask-image: var(--rays), var(--rise), var(--sides);
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect;
  filter: blur(6px); transform-origin: 50% 100%;
}
.hl::after {
  --rays: repeating-linear-gradient(90deg, #000 0 4px, rgba(0, 0, 0, .2) 9px, #000 13px, rgba(0, 0, 0, .4) 20px);
  background: linear-gradient(to top, rgba(92, 242, 166, .38), rgba(92, 242, 166, .1) 55%, transparent);
  inset: -.4em -.2em .16em;
}
@media (prefers-reduced-motion: no-preference) {
  .hl::before, .hl::after { animation: hlrise 1.4s cubic-bezier(.22, 1, .36, 1) .4s both; }
}
@keyframes hlrise { from { scale: 1 0; opacity: 0 } to { scale: 1 1; opacity: 1 } }

/* Nav: the home page's, letter for letter (absolute, mark + name, Questions, Get the app). Its edge is the content edge. */
.nav { position: absolute; z-index: 40; left: 0; right: 0; top: 0; padding-top: max(14px, env(safe-area-inset-top)); }
.nav nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; text-decoration: none; }
.nav-home img { width: 28px; height: 28px; flex: none; }
.nav-end { display: flex; align-items: center; gap: 4px; }
.nav-link { display: none; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: rgba(237, 239, 245, .85); text-decoration: none; text-underline-offset: 4px; }
.nav-link:hover { color: var(--star); text-decoration: underline; }
.nav-get { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none;
  background: rgba(237, 239, 245, .1); box-shadow: inset 0 0 0 1px rgba(237, 239, 245, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .15s, color .15s; }
.nav-get:hover { background: var(--star); color: var(--ink); }
@media (min-width: 640px) { .nav-link { display: inline-flex; } }
@media (min-width: 768px) { .nav-end { gap: 12px; } }

/* Intro: the page's photograph, with the heading on it, like the home page's opening. */
.intro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(460px, 68svh, 680px); padding: 128px 0 40px; }
.intro-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.intro::before, .intro::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.intro::before { background: linear-gradient(to bottom, rgba(4, 6, 11, .55), transparent 30%, transparent 40%, rgba(4, 6, 11, .9) 86%, var(--ink)); }
.intro::after { background: radial-gradient(130% 90% at 0% 100%, rgba(4, 6, 11, .85), rgba(4, 6, 11, .55) 55%, rgba(4, 6, 11, .1)); }
.intro.plain { min-height: 0; padding-top: 136px; padding-bottom: 24px; }
.intro.plain::before { background: radial-gradient(80% 60% at 15% 0%, rgba(92, 242, 166, .12), transparent 70%); }
.intro.plain::after { content: none; }
.intro h1 { max-width: 15ch; font-size: clamp(42px, 7.2vw, 88px); line-height: .95; }
.intro .lede { max-width: 36ch; margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--text); }
.intro .meta { margin-top: 20px; font-size: 15px; color: var(--soft); }
.credit { margin-top: 32px; font-size: 12px; line-height: 1.5; color: rgba(237, 239, 245, .75); }
@media (min-width: 768px) {
  .intro { padding-bottom: 56px; }
  .intro.plain { padding-top: 168px; padding-bottom: 32px; }
  .intro .lede { font-size: 20px; margin-top: 28px; }
  .credit { margin-top: 40px; }
}

/* Body: one reading column on the content edge. */
.body { padding-top: 24px; padding-bottom: 48px; }
.prose { max-width: 680px; color: var(--text); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 56px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -.02em; color: var(--star); text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 0; }
.prose h2 + * { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--star); font-weight: 600; }
.prose a { color: var(--star); text-decoration: underline; text-decoration-color: rgba(237, 239, 245, .4); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--aurora); text-decoration-color: currentColor; }
.prose ul:not([class]) { padding-left: 22px; }
.prose ul:not([class]) li + li { margin-top: 10px; }
.prose ul:not([class]) li::marker { color: rgba(237, 239, 245, .45); }
.prose .note, .prose .muted { font-size: 14px; line-height: 1.55; color: var(--soft); }
@media (min-width: 768px) {
  .body { padding-top: 32px; padding-bottom: 64px; }
  .prose { font-size: 18px; }
  .prose h2 { margin-top: 72px; }
}

/* Tables (Kp by place) */
.scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.prose th { padding-top: 0; font-size: 14px; font-weight: 600; color: var(--soft); }
.prose td:first-child { color: var(--star); font-weight: 600; white-space: nowrap; }
.prose td:nth-child(2) { white-space: nowrap; }
.prose td:last-child, .prose th:last-child { padding-right: 0; }
@media (max-width: 479px) { .prose table { font-size: 15px; } .prose th, .prose td { padding-right: 12px; } }

/* Summary card (privacy) */
.summary { padding: 22px 24px; border-radius: 20px; background: rgba(237, 239, 245, .05); box-shadow: inset 0 0 0 1px var(--line); }
.summary p { color: var(--star); }

/* Contact cards (support): one idea per card */
.cards { display: grid; gap: 12px; }
.cards a, .cards div { display: block; padding: 22px 24px; border-radius: 20px; background: rgba(237, 239, 245, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--star); text-decoration: none; transition: background-color .15s; }
.prose .cards a { text-decoration: none; }
.cards a:hover { background: rgba(237, 239, 245, .09); color: var(--star); }
.cards b { display: block; margin: 12px 0 2px; font-size: 18px; font-weight: 600; }
.cards span { display: block; color: var(--text); font-size: 16px; overflow-wrap: anywhere; }
.ico { width: 24px; height: 24px; color: var(--aurora); }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }

/* The store button: the home page's App Store badge, carrying the page's own words */
.prose .cta { margin: 48px 0; }
.prose .cta a { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--star); color: var(--ink);
  font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
.prose .cta a::before { content: ""; width: 20px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M19.7 14.9c0-3 2.5-4.5 2.6-4.6-1.4-2.1-3.6-2.4-4.4-2.4-1.9-.2-3.6 1.1-4.6 1.1-.9 0-2.4-1.1-4-1-2 0-3.9 1.2-5 3-2.1 3.7-.5 9.2 1.5 12.2 1 1.5 2.2 3.1 3.8 3 1.5-.1 2.1-1 3.9-1s2.3 1 3.9 1c1.6 0 2.7-1.5 3.6-3 1.1-1.7 1.6-3.4 1.6-3.5 0 0-3.1-1.2-3.1-4.8ZM16.7 6c.8-1 1.4-2.4 1.2-3.8-1.2.1-2.6.8-3.5 1.8-.8.9-1.4 2.3-1.2 3.7 1.3.1 2.7-.7 3.5-1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M19.7 14.9c0-3 2.5-4.5 2.6-4.6-1.4-2.1-3.6-2.4-4.4-2.4-1.9-.2-3.6 1.1-4.6 1.1-.9 0-2.4-1.1-4-1-2 0-3.9 1.2-5 3-2.1 3.7-.5 9.2 1.5 12.2 1 1.5 2.2 3.1 3.8 3 1.5-.1 2.1-1 3.9-1s2.3 1 3.9 1c1.6 0 2.7-1.5 3.6-3 1.1-1.7 1.6-3.4 1.6-3.5 0 0-3.1-1.2-3.1-4.8ZM16.7 6c.8-1 1.4-2.4 1.2-3.8-1.2.1-2.6.8-3.5 1.8-.8.9-1.4 2.3-1.2 3.7 1.3.1 2.7-.7 3.5-1.7Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 599px) { .prose .cta a { display: flex; justify-content: center; width: 100%; padding: 0 16px; font-size: 16px; white-space: nowrap; } }
.prose .cta a:hover { background: var(--aurora); color: var(--ink); }
.prose .cta a:focus-visible { outline-offset: 4px; }

/* Link rows (more guides, other states): the home page's FAQ rows */
.prose .more { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.prose .more li { border-bottom: 1px solid var(--line); }
.prose .more a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; color: var(--star); font-size: 18px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.prose .more a::after { content: ""; width: 9px; height: 9px; flex: none; margin-right: 4px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .2s, opacity .2s; }
.prose .more a:hover { color: var(--aurora); }
.prose .more a:hover::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
@media (min-width: 600px) {
  .prose .more.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
  .prose .more.cols li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}
@media (min-width: 768px) { .prose .more a { font-size: 20px; } }

/* Live calls (tonight.js fills .call) */
.live { margin-top: 8px; }
.prose .calls { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.calls li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose .calls a { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; align-items: center; color: var(--star); text-decoration: none; font-size: 18px; }
.prose .calls a:hover b { color: var(--aurora); }
.calls a b { font-weight: 600; }
.calls .where { color: var(--soft); font-size: 15px; }
.call { font-size: 15px; line-height: 1.5; color: var(--text); }
.call > * { display: block; white-space: nowrap; }
.call b { font-weight: 600; color: var(--star); }
.call[data-status="go_now"] b { color: var(--aurora); }

@media (min-width: 600px) { .calls li .call { text-align: right; padding-bottom: 0; } .live.one { padding: 28px; } }
.live .note { margin-top: 16px; }
.live.one { padding: 20px; border-radius: 20px; background: rgba(237, 239, 245, .05); box-shadow: inset 0 0 0 1px var(--line); }
.call.big { min-height: 1.3em; font-size: 17px; color: var(--text); }
.call.big b { white-space: normal; text-wrap: balance; font-family: var(--serif); font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 8px; font-variation-settings: "SOFT" 50, "WONK" 0; }
.call.big:empty::before { content: "Loading tonight’s call…"; color: var(--soft); }
.live.one .note { margin-top: 12px; }
.call.big:empty + .note { margin-top: 4px; }

/* Footer: the home page's dawn credits. The strip above it carries the night into dawn. */
.dawn { height: 200px; background: linear-gradient(to bottom, var(--ink), var(--dusk) 55%, #b9877f); }
.foot { padding: 40px var(--edge) 48px; font-size: 14px; line-height: 1.5; color: rgba(4, 6, 11, .8); background: linear-gradient(to bottom, #b9877f, var(--dawn) 30%); }
.foot-in { max-width: calc(var(--page) - 2 * var(--edge)); margin: 0 auto; }
.foot a { color: inherit; }
.foot dl { display: grid; gap: 20px; }
.foot dt { font-weight: 600; color: var(--ink); }
.foot dd { margin-top: -16px; }
.foot dd a { text-decoration: underline; text-underline-offset: 4px; }
.foot dd a:hover { color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 24px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-underline-offset: 4px; }
.foot li a:hover { text-decoration: underline; }
.foot-guides { margin-top: 40px; }
.foot-end { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(4, 6, 11, .2); }
.foot-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.foot-home img { width: 28px; height: 28px; flex: none; }
.foot :focus-visible { outline-color: var(--ink); }
@media (min-width: 768px) {
  .dawn { height: 280px; }
  .foot dl { grid-template-columns: 10rem 1fr; column-gap: 40px; row-gap: 16px; }
  .foot dd { margin-top: 0; }
  .foot-end { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
