/* The Reading Room. Colors and type match the app. Fonts are self-hosted, so the site makes no third-party requests. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #18202A;
  --muted: #5B6676;
  --line: #E1E5EB;
  --accent: #127A62;
  --accent-hover: #0D5E4B;
  --mark: #FFE58A;
  --mark-ink: #3B2F00;
  --mark-line: #B7791F;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
strong { font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.mark { background: var(--mark); color: var(--mark-ink); }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* Shared type */
.display { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.03em; font-size: clamp(56px, 8vw, 112px); }
.display .mark { padding: 0 0.08em; border-bottom: 0.03em solid var(--mark-line); }
.lede { max-width: 620px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.h2 { text-wrap: balance; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.rule-h2 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.15; }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: #FFFFFF; border-radius: 10px; font-weight: 500; text-decoration: none; }
.button:hover { background: var(--accent-hover); color: #FFFFFF; }

/* Home */
.hero { padding-block: 72px 56px; }
.hero h1 { font-size: clamp(64px, 12vw, 176px); line-height: 0.98; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; margin-top: 48px; }
.hero-row .lede { flex: 1 1 420px; }
.fine { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: 16px; }
.hero-shot { padding-bottom: 96px; }

.why { background: var(--surface); border-block: 1px solid var(--line); }
.why .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 96px; }
.why h2 { flex: 1 1 220px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.why-body { flex: 999 1 560px; min-width: 0; max-width: 820px; font-family: var(--serif); }
.why-body > p, .why-body blockquote { margin-bottom: 28px; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.why-body .byline { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--muted); }

.features { padding-block: 96px; }
.features > .wrap > h2 { margin-bottom: 56px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 40px; }
.feature { padding-top: 16px; border-top: 1px solid var(--ink); }
.feature h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.feature p { color: var(--muted); }

.devices { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-bottom: 96px; }
.devices > * { flex: 1 1 380px; min-width: 0; }
.phones { display: flex; gap: 20px; }
.phones img { width: calc(50% - 10px); border: 1px solid var(--line); border-radius: 24px; }
.phones img + img { margin-top: 48px; }
.devices h2 { margin-bottom: 16px; font-size: clamp(36px, 4vw, 52px); }
.devices p { font-size: 19px; color: var(--muted); }

.private { background: var(--accent); color: #FFFFFF; }
.private .wrap { padding-block: 88px; }
.private h2 { margin-bottom: 20px; font-size: clamp(44px, 7vw, 96px); line-height: 1; }
.private p { max-width: 680px; font-size: 19px; }
.private a, .private a:hover { color: #FFFFFF; }

.two-up { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 96px; }
.two-up > div { flex: 1 1 380px; min-width: 0; }
.two-up h2 { margin-bottom: 16px; font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.two-up p { color: var(--muted); }

/* Beta */
.page { padding-block: 72px 96px; }
.beta-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.beta-main { flex: 999 1 560px; min-width: 0; }
.beta-main .lede { margin-top: 32px; }
.beta-main .button { margin-top: 32px; }
.beta-side { flex: 1 1 300px; min-width: 0; max-width: 380px; margin-inline: auto; }
.beta-side img { border: 1px solid var(--line); border-radius: 28px; }
.steps { margin-top: 72px; }
.steps ol { padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); flex: 0 0 28px; font-family: var(--mono); font-size: 15px; color: var(--accent); line-height: 1.75; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; margin-top: 56px; }
.notes h2 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }

/* Support */
.support-intro { margin-top: 24px; margin-bottom: 72px; }
.support-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.toc { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.support-body { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.support-body section { padding-bottom: 56px; scroll-margin-top: 24px; }
.support-body section:last-child { padding-bottom: 0; }
.support-body .rule-h2 { margin-bottom: 16px; }
.support-body h3 { margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.support-body h3 ~ h3 { margin-top: 24px; }
.support-body section > p + p { margin-top: 12px; }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 32px; margin: 12px 0 0; }
.keys div { display: flex; align-items: center; gap: 12px; }
.keys dd { margin: 0; }
.keys dt { flex: none; }
kbd { display: inline-block; min-width: 44px; padding: 2px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 14px; text-align: center; }

/* Privacy */
.policy { max-width: 720px; margin-inline: auto; padding: 72px 24px 96px; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.policy .updated { margin-bottom: 16px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.policy h1 { margin-bottom: 32px; font-size: clamp(48px, 7vw, 80px); line-height: 1.02; }
.policy h2 { margin-top: 48px; margin-bottom: 12px; font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.25; }
.policy p, .policy ul { margin-bottom: 20px; }
.policy p:has(+ ul) { margin-bottom: 12px; }
.policy ul { padding-left: 24px; }
.policy li { margin-bottom: 6px; }
.policy p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .hero, .page { padding-top: 40px; }
  .policy { padding-top: 40px; }
  .why .wrap, .features, .two-up { padding-block: 64px; }
  .hero-shot, .devices { padding-bottom: 64px; }
  .private .wrap { padding-block: 64px; }
  .why .wrap { gap: 24px; }
  .why h2 { flex-basis: 100%; }
}
