@font-face {
  font-family: "Geist Greek";
  src: url("fonts/GeistGreek.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Greek";
  src: url("fonts/GeistGreek-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Greek";
  src: url("fonts/GeistMonoGreek.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Greek";
  src: url("fonts/GeistMonoGreek-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Today";
  src: url("fonts/GeistToday.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Today";
  src: url("fonts/GeistToday-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Today";
  src: url("fonts/GeistMonoToday.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Today";
  src: url("fonts/GeistMonoToday-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #666666;
  --line: #e5e5e5;
  --wash: #f5f5f5;
  --sans: "Geist Greek", system-ui, sans-serif;
  --mono: "Geist Mono Greek", ui-monospace, monospace;
  --today: "Geist Today", sans-serif;
  /* Set by app.js from the controls; samples across the page follow them. */
  --family: var(--sans);
  --family-today: "Geist Today", sans-serif;
  --weight: 400;
  --slant: normal;
  --size: 48px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededed;
    --paper: #0a0a0a;
    --muted: #a1a1a1;
    --line: #2e2e2e;
    --wash: #171717;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

header, main, footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.top { padding-top: 56px; padding-bottom: 8px; }

.notice {
  display: inline-block;
  margin: 0 0 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lead { max-width: 34em; margin: 20px 0 6px; font-size: 20px; }
.byline { margin: 0 0 28px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button:focus-visible, input:focus-visible, .tester:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding: 40px 0 56px; }

h2 { margin: 0 0 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
h3 { margin: 28px 0 12px; font-size: 15px; font-weight: 500; color: var(--muted); }

.hero-line { margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.hero-line.heavy { font-size: clamp(52px, 12.5vw, 150px); font-weight: 900; letter-spacing: -0.02em; }
.hero-line.light { font-size: clamp(28px, 5vw, 56px); font-weight: 200; }

/* Everything marked .sample follows the controls. */
.sample {
  font-family: var(--family);
  font-weight: var(--weight);
  font-style: var(--slant);
  font-synthesis: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 20px;
}
.family { display: flex; gap: 14px; margin: 0; padding: 0; border: 0; }
.family legend { float: left; margin-right: 10px; color: var(--muted); }
.range { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.range output { min-width: 3ch; color: var(--ink); font-variant-numeric: tabular-nums; }
.range input { width: 160px; accent-color: var(--ink); }
.check, .family label { display: flex; align-items: center; gap: 6px; }
.check input, .family input { accent-color: var(--ink); }

.tester {
  min-height: 2.4em;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--wash);
  font-size: var(--size);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.hint, .note { color: var(--muted); font-size: 15px; }
.hint { margin: 10px 0 0; }
.note { margin: -8px 0 20px; max-width: 40em; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
figure { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
figcaption { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.columns .sample { margin: 0; font-size: 28px; line-height: 1.35; }
.sample.today { font-family: var(--family-today); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--wash);
  font-size: 34px;
}

pre.sample {
  margin: 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--wash);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: auto;
}

.list { margin: 0; padding-left: 1.2em; max-width: 46em; }
.list li { margin: 6px 0; }
code { font-family: var(--mono); font-size: 0.92em; }

.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.downloads a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
}

footer { padding-top: 32px; padding-bottom: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }

@media (max-width: 720px) {
  .top { padding-top: 32px; }
  .columns { grid-template-columns: 1fr; }
  .range input { width: 120px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .grid li { font-size: 28px; }
}
