/* Seabed — colours and type for the website, from the app as built on
   10 October 2026 (client/styles.css at 255191e). Font paths are relative to
   this file; move them with the fonts. */

/* ---- Fonts: self-hosted, SIL Open Font License (see fonts/LICENSE-*) ---- */
@font-face { font-family: 'Bodoni Moda Variable'; src: url('../fonts/bodoni-moda-latin-opsz-normal.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda Variable'; src: url('../fonts/bodoni-moda-latin-opsz-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4 Variable'; src: url('../fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4 Variable'; src: url('../fonts/source-serif-4-latin-opsz-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Archivo Variable'; src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo Variable'; src: url('../fonts/archivo-latin-wdth-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Mono Variable'; src: url('../fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --font-display: 'Bodoni Moda Variable', 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --font-read: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, 'Iowan Old Style', serif;
  --font-sans: 'Archivo Variable', Archivo, 'Avenir Next', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Atkinson Hyperlegible Mono Variable', 'Atkinson Hyperlegible Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* Bodoni at 500 by day, 600 on a dark ground, so its hairlines survive. */
  --display-weight: 500;
}

/* ---- Colour: Gloss (day) is the default ---- */
:root, [data-theme='gloss'] {
  color-scheme: light;
  --paper: #fcfcfa;        /* the page */
  --raised: #ffffff;       /* cards, the bar, pills */
  --pressed: #f5f5f2;      /* a row under the cursor */
  --wash: #efefea;         /* tinted blocks: "your words", code */
  --hair: #e2e2de;         /* hairlines between rows */
  --rule: #0a0a0a;         /* structural lines */
  --ink: #0a0a0a;          /* text, primary buttons */
  --muted: #4a4a46;        /* secondary text */
  --faint: #66665f;        /* captions, placeholders */
  --accent: #d7001f;       /* the one red */
  --accent-wash: #fbe8ea;  /* selection, highlights */
  --on-accent: #ffffff;    /* text on the red */
  --warn: #8a4b00;         /* danger and warnings, never the red */
  --shadow: #0a0a0a24;
}

/* ---- The Night edition: the Night train, for a dark page ---- */
[data-theme='night'] {
  color-scheme: dark;
  --display-weight: 600;
  --paper: #172027; --raised: #1f2a32; --pressed: #1b252c; --wash: #26333c; --hair: #2c3a42; --rule: #5b6a63;
  --ink: #e4ece6; --muted: #a9b7af; --faint: #8e9d95; --accent: #ff6b7f; --accent-wash: #3b2430; --on-accent: #10161a;
  --warn: #e0a458; --shadow: #00000080;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --display-weight: 600;
    --paper: #172027; --raised: #1f2a32; --pressed: #1b252c; --wash: #26333c; --hair: #2c3a42; --rule: #5b6a63;
    --ink: #e4ece6; --muted: #a9b7af; --faint: #8e9d95; --accent: #ff6b7f; --accent-wash: #3b2430; --on-accent: #10161a;
    --warn: #e0a458; --shadow: #00000080;
  }
}

/* ---- Ink: the Night edition's other style, near-black ---- */
[data-theme='ink'] {
  color-scheme: dark;
  --display-weight: 600;
  --paper: #141414; --raised: #1c1c1b; --pressed: #181817; --wash: #262624; --hair: #2e2d2b; --rule: #5e5c58;
  --ink: #dad7d0; --muted: #a6a39c; --faint: #908d87; --accent: #ee6470; --accent-wash: #3a1e21; --on-accent: #141414;
  --warn: #e0a458; --shadow: #00000080;
}

/* ---- Type roles ---- */
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
/* A big moment: the hero line. Italic where it turns, as "Your story." does. */
.sb-hero { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
/* A section title: the app's page and step titles. */
.sb-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36.8px, 5vw, 46.4px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
/* Reading: long text, quotes, sample conversations. */
.sb-read { font-family: var(--font-read); font-size: 17px; line-height: 1.6; }
.sb-lead { font-family: var(--font-read); font-size: 19px; line-height: 1.45; }
/* The interface voice: nav, buttons, captions, short notes. */
.sb-note { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
/* Labels: Archivo at its own 75% width, uppercase and tracked. 11px floor. */
.sb-kicker, .sb-meta, .sb-button {
  font-family: var(--font-sans); font-stretch: 75%; font-variation-settings: 'wdth' 75; text-transform: uppercase;
}
.sb-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent); }
.sb-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
/* The one action, in square capitals. */
.sb-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 0; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-decoration: none; cursor: pointer;
}
.sb-button:hover { opacity: 0.85; }
.sb-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sb-link:hover { color: var(--accent); }
.sb-code { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-wash); color: var(--ink); }
