/* Every page of the site (DESIGN.md): the chrome, type, buttons and the request form. The colours
   shared with the portal come from apps/web's globals.css (tokens.css, made by the build); these
   are the site's own. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-next-latin.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-mono-latin.woff2) format("woff2"); }
:root {
  /* "Your turn" is the portal's orange, on the site as in the demo (the owner, 1 Nov, replacing
     the 31 Oct ink pick): --needs, --needs-mark and --needs-fill come from tokens.css. */
  --logo-acc: #EDEDF0; --logo-det: #A3A3AB; --ok-fill: #E4F3EA;
  --glass: rgb(244 244 245 / .82);
  --shadow: 0 1px 2px rgb(10 10 11 / .06), 0 4px 12px rgb(10 10 11 / .05);
  --shadow-lg: 0 2px 6px rgb(10 10 11 / .05), 0 24px 64px -16px rgb(10 10 11 / .22);
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --logo-acc: #0A0A0B; --logo-det: #74747C; --ok-fill: #11271B;
  --glass: rgb(14 14 16 / .8);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 16px rgb(0 0 0 / .3);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 24px 64px -16px rgb(0 0 0 / .7);
} }
:root[data-theme="dark"] {
  --logo-acc: #0A0A0B; --logo-det: #74747C; --ok-fill: #11271B;
  --glass: rgb(14 14 16 / .8);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 16px rgb(0 0 0 / .3);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 24px 64px -16px rgb(0 0 0 / .7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.55 "Atkinson Hyperlegible Next", system-ui, sans-serif; letter-spacing: -.003em; }
.mono { font-family: var(--mono); letter-spacing: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 72px; z-index: 40; background: var(--raised); padding: 8px 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* chrome: a sticky, translucent bar */
header.site { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--outline); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 24px; height: 24px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; color: inherit; background: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-quiet { border-color: var(--outline); background: var(--raised); color: var(--ink); }
.btn-quiet:hover { border-color: var(--control); }
.nav .btn { min-height: 38px; font-size: 15px; padding: 0 16px; }
.themes { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--outline); border-radius: 999px; background: var(--raised); }
.themes label { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.themes input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.themes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.themes label:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.themes label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.themes label:hover { color: var(--ink); } .themes label:has(input:checked):hover { color: var(--on-ink); }
footer.site { border-top: 1px solid var(--outline); margin-top: 120px; padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 48px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer h2 { font-size: 14px; letter-spacing: 0; margin: 0 0 8px; color: var(--ink); }
footer a { text-decoration: none; } footer a:hover { text-decoration: underline; color: var(--ink); }
footer .logo { font-size: 16px; } footer .logo svg { width: 18px; height: 18px; }
footer .tagline { margin: 10px 0 0; }
.legal-line { margin-top: 32px; } .legal-line p { margin: 0; padding-top: 18px; border-top: 1px solid var(--outline); font-size: 13px; }

/* type */
h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin: 0 0 22px; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; margin: 0 0 6px; }
.lede { font-size: clamp(18px, 1rem + .35vw, 21px); color: var(--muted); max-width: 54ch; margin: 0 0 30px; text-wrap: pretty; }
section.block { margin-top: 120px; }
.intro { max-width: 64ch; margin-bottom: 36px; } .intro p { color: var(--muted); margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.small { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* the portal demo in its frame */
.frame { position: relative; border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow-lg); }
.frame iframe { display: block; width: 100%; height: var(--demo-h, 720px); border: 0; background: var(--surface); }
.frame .poster { position: absolute; inset: 0; display: grid; place-items: center; background: var(--raised); color: var(--muted); font-size: 15px; }
.frame.ready .poster { display: none; }

/* request access */
.panel { background: var(--raised); border: 1px solid var(--outline); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
form .field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
form label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--raised); border: 1px solid var(--control); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { min-height: 88px; resize: vertical; }
input:not([type=radio]):not([type=checkbox]), select { height: 46px; }
[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.error-text { color: var(--bad); font-size: 14px; }
.error-text[hidden] { display: none; }
.trap { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; margin-bottom: 20px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); }  /* neutral: its words say sent or failed */
.notice[hidden] { display: none; }
.notice .ok-mark { width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }  /* sent: an ink check beside the words */
.notice p { margin: 4px 0 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.fgrid .more { display: contents; }
.fgrid .f-email, .fgrid .f-team, .fgrid .f-first, .fgrid .form-foot { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
/* "Somewhere else" and "Something else" open a text field in the list's place */
.swap { display: grid; }
.swap > select, .swap > .other { grid-area: 1 / 1; }
.swap > .other { position: relative; display: block; opacity: 0; visibility: hidden; }
.swap > .other input { padding-right: 40px; }
.swap .back { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.swap .back:hover { background: var(--surface); color: var(--ink); }
.swap.typing > select { opacity: 0; visibility: hidden; }
.swap.typing > .other { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .swap > select, .swap > .other { transition: opacity .2s, visibility .2s, transform .25s cubic-bezier(.2, 0, 0, 1); }
  .swap > .other { transform: translateY(6px); }
  .swap.typing > .other { transform: none; }
  .swap.typing > select { transform: translateY(-6px); }
}

/* the page's track on the header's bottom edge (track.css's edge track), where the page has no
   margin for it (home says from what width): stations at their share of the page, filling as you
   read, the last one an open ring. Decoration only: the page's own navigation carries the names */
header.site > .edge-track { position: absolute; left: 0; right: 0; bottom: -1px; }

@media (max-width: 960px) {
  section.block { margin-top: 80px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; }
  .nav ul { display: none; }
  .nav .themes { margin-left: auto; } .themes label { width: 26px; height: 26px; }
  .nav .btn { padding: 0 12px; font-size: 14px; white-space: nowrap; }
  footer .cols { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; } .fgrid > * { grid-column: 1 / -1; }
  .panel { padding: 20px 16px; border-radius: 14px; }
  .frame { border-radius: 12px; }
  .frame iframe { height: var(--demo-h-phone, 640px); }
}
/* the narrowest phones: the logo's mark alone (its name stays in the link for screen readers) */
@media (max-width: 380px) { .nav { gap: 8px; } .nav .logo { font-size: 0; gap: 0; } .themes label { width: 24px; height: 24px; } .nav .btn { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* the 404 page */
.missing { padding-top: 104px; min-height: 50vh; }
