/*
  The apex's one stylesheet, for its two pages: the coming-soon page (#221,
  index.html) and the 404 every unknown path answers with (#452, 404.html). No
  framework and no build step, so nothing here is shared with the app by
  import; three things are shared by copy, each pinned by
  marketing/comingSoon.test.ts:

  - The colours are the app's tokens, copied from src/css/variables.css by
    name and value, dark only: with no theme switch, the page is always dark
    (adr/0089). Only tokens that file owns may appear here.
  - The mark's geometry is public/favicon.svg's, inline in each page so it
    inherits currentColor the way src/components/lockup/Lockup.tsx draws it.
    The favicon beside this file is a byte copy of the app's.
  - Inter is the app's typeface, self-hosted from @fontsource-variable/inter
    5.3.0 (fonts/inter-latin-wght-normal.woff2, licence in fonts/LICENSE.txt)
    rather than fetched from a third party these pages never mention.
  - The 'Inter Fallback' faces are the app's, from src/index.css.

  The composition is the app's own chrome: the 48px top bar with the lockup
  at the left and the one action at the right, as the authed shell has it
  (adr/0043), over one line set bottom-left where the sign-in brand panel
  places its proposition. That line is the one departure from a straight
  copy: 60px, the scale's `stat` rung, not the panel's 36px display; the
  design sheet showed it as a poster and the human picked it. The 404 is the
  app's dead end instead, centred under the same bar (ShoutPage, adr/0090).
  The pages are dark only: they have no toggle (adr/0089). Links wear the app's secondary button, the
  grammar every navigating chip in the app uses (docs/styling.md).
*/

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

/* One metric-matched fallback per weight these pages set, so the headline
   does not re-wrap when Inter lands (#420). */
@font-face {
  font-family: 'Inter Fallback';
  font-weight: 400;
  src:
    local('Arial'), local('ArialMT'), local('Liberation Sans'),
    local('LiberationSans');
  size-adjust: 106%;
  ascent-override: 91.39%;
  descent-override: 22.76%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  font-weight: 500;
  src:
    local('Arial'), local('ArialMT'), local('Liberation Sans'),
    local('LiberationSans');
  size-adjust: 107.29%;
  ascent-override: 90.29%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  font-weight: 600;
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold');
  size-adjust: 101.31%;
  ascent-override: 95.62%;
  descent-override: 23.81%;
  line-gap-override: 0%;
}
/* The wordmark's 650 matches this face, the nearest heavier (CSS font
   matching), as it does in the app. */
@font-face {
  font-family: 'Inter Fallback';
  font-weight: 700;
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold');
  size-adjust: 102.51%;
  ascent-override: 94.5%;
  descent-override: 23.53%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --background: oklch(0.13 0 0);
  --foreground: oklch(0.97 0 0);
  --secondary: oklch(0.22 0 0);
  --secondary-foreground: oklch(0.97 0 0);
  --muted-foreground: oklch(0.64 0 0);
  --border: oklch(0.22 0 0);
  --primary: oklch(0.72 0.15 305);
  --ring: var(--primary);
  --radius: 0.5rem;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter Variable', 'Inter Fallback', system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* The app's top bar (TopBar.tsx, h-12): 48px, a hairline under it, the
   lockup left, the action right. */
header {
  flex: none;
  box-sizing: border-box;
  height: 3rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.lockup svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

/* The logotype's own weight and tracking, css/theme.css's wordmark tokens. */
.wordmark {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span {
  color: var(--muted-foreground);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 2rem;
  padding: 0 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: color-mix(in oklch, var(--secondary), var(--foreground) 5%);
}

/* The app's focus ring (ring-3 ring-ring/50 + border-ring), drawn as an
   outline rather than a shadow so forced-colours mode keeps it. */
.button:focus-visible {
  border-color: var(--ring);
  outline: 3px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 0;
}

.button:active {
  translate: 0 1px;
}

/* The message sits bottom-left, where the sign-in brand panel places its
   proposition, at the `stat` rung (text-6xl) the head comment argues;
   tracking-tight, as every heading in the app. */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

h1 {
  margin: 0;
  font-size: 3.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}

/* The 404's message: the headline, what happened, the way home. */
.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.helper {
  margin: 0;
  max-width: 36ch;
  color: var(--muted-foreground);
}

/* The 404 is the app's dead end instead (ShoutPage, adr/0090): the shout
   centred, sentence case at 800 with tracking-tight, its compass inline on
   the first word in the purple, the helper and the way home under it. */
.dead-end {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dead-end .stack {
  align-items: center;
  gap: 0;
}
.dead-end h1 {
  font-weight: 800;
  line-height: 1.25;
}
.shout-icon {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline-end: 0.75rem;
  vertical-align: baseline;
  color: var(--primary);
}
.dead-end .helper {
  margin-top: 1rem;
  max-width: 28rem;
}
.dead-end .button {
  margin-top: 2rem;
}
@media (max-width: 640px) {
  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .shout-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}
