/* Tachalet: one typeface, near-monochrome, left-aligned. Tokens match the Tachalet design system. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --paper: #f3f4f2;
  --ink: #15181a;
  --ink-muted: #50575b;
  --ink-subtle: #666d71;
  --stone: #d5d9d7;
  --spruce: #2c4a4e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111314;
    --ink: #e8eae7;
    --ink-muted: #a6adb0;
    --ink-subtle: #8d9599;
    --stone: #2e3437;
    --spruce: #9cbfc1;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 26px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Phone first: one column that may scroll. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1328px;
  padding: 28px 24px 28px;
}

.mark {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

h1 {
  margin: 56px 0 0;
  max-width: 15em;
  font-size: 38px;
  line-height: 42px;
  font-weight: 300;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.row {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cols { display: grid; gap: 28px; }

.label {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.item { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.more .item { gap: 12px; }

h2, .h2 { margin: 0; font-size: 19px; line-height: 26px; font-weight: 500; }

p { margin: 0; max-width: 36em; }
.caps p { color: var(--ink-muted); }

a { color: inherit; text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--spruce);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }

footer {
  margin-top: auto;
  padding-top: 48px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-subtle);
}
footer .sep { padding: 0 .5em; }
footer .fi { white-space: nowrap; }

/* Privacy notice: a single reading column. */
.doc h1 { font-size: 38px; line-height: 42px; }
.doc .updated { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--ink-subtle); }
.doc section { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.doc section p + p { margin-top: 8px; }

/* Desktop: one screen, three equal columns, spacing that shrinks with the window height. */
@media (min-width: 720px) {
  .page { padding: clamp(24px, 5vh, 48px) 64px clamp(20px, 4vh, 40px); }
  .home h1 {
    margin-top: clamp(24px, 7vh, 88px);
    font-size: clamp(40px, min(5vw, 7.5vh), 64px);
    line-height: 1.06;
    letter-spacing: -.015em;
  }
  .doc h1 { margin-top: clamp(32px, 8vh, 72px); }
  .row.caps { margin-top: clamp(28px, 6vh, 72px); }
  .row.more { margin-top: clamp(24px, 4.5vh, 48px); }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  footer { padding-top: clamp(20px, 3vh, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
