/*
  The one stylesheet for speculate.com: every page in website/ links it.

  It follows the app's design rules (CLAUDE.md, "Design rules"; colours from app/src/theme.ts):
  white background, dark text, no cards or boxes, thin lines between items, the assistant's
  voice in a serif (Newsreader) and everything else in Inter. Colour only carries meaning,
  so the site is black, greys and white.

  Fonts are served from /fonts (Latin subsets of the app's own Inter and Newsreader, both
  SIL Open Font Licence), so the site makes no requests to anyone else. That keeps the
  privacy page's "no trackers" true for the website too.
*/

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format('woff2'); }
@font-face { font-family: Newsreader; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400.woff2) format('woff2'); }
@font-face { font-family: Newsreader; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-500.woff2) format('woff2'); }

/* The app's palette (app/src/theme.ts). Light only, like the app's v1. */
:root {
  --ink: #15171a;
  --ink2: #454a52;
  --muted: #6b7079;
  --line: #e8e8e8;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Newsreader, Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; }

/* One centred column; the home page widens it for the screenshots. */
main, footer { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.home main { max-width: 1040px; }

/* ---------- Home ---------- */

.hero { padding: 72px 0 40px; max-width: 680px; }
.hero .mark { width: 72px; height: 72px; display: block; margin: 0 0 28px -10px; }
.hero h1 {
  font: 500 clamp(40px, 7vw, 60px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p { font: 400 21px/1.5 var(--serif); color: var(--ink2); margin: 0 0 28px; }
.hero .soon { font: 600 15px/1.6 var(--sans); color: var(--ink); letter-spacing: 0.02em; margin: 0; }
.hero .soon span { color: var(--muted); font-weight: 400; }

/* Real app screenshots, side by side, scrolling sideways on a phone. */
.shots {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 22px 32px;
  margin: 0 -22px;
}
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 260px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 36px;
}
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }

/* What it does: a list separated by thin lines, like the app's lists. */
.features { list-style: none; padding: 0; margin: 24px 0 0; max-width: 680px; border-top: 1px solid var(--line); }
.features li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.features strong { display: block; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.features span { font: 400 19px/1.5 var(--serif); color: var(--ink2); }

/* ---------- Legal and support pages ---------- */

.top { padding: 28px 0 0; }
.top a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 600; }
.top img { width: 36px; height: 36px; margin-left: -6px; }

.doc h1 { font: 700 40px/1.15 var(--sans); letter-spacing: -0.02em; margin: 32px 0 8px; }
.doc .lede { font: 400 21px/1.5 var(--serif); color: var(--ink2); margin: 0 0 8px; }
.doc .date { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 {
  font-weight: 700; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 28px; margin: 40px 0 12px;
}
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.doc h3 + p { margin-top: 0; }
.doc p, .doc li { color: var(--ink2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */

footer { padding-top: 56px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
.home footer { max-width: 1040px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; border-top: 1px solid var(--line); padding-top: 20px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 12px 0 0; }
