/* Vocella pages: tokens and type from design/v2/SPEC_v2.md §1–2 («Бумага и чернила»).
   No scripts, no cookies, no external resources; fonts are local (SIL OFL 1.1, see fonts/). */

@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/Vocella-Fraunces-Medium.ttf") format("truetype"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/Vocella-Fraunces-Italic.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/Vocella-Figtree-Medium.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/Vocella-Figtree-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/Vocella-Figtree-Bold.ttf") format("truetype"); }

:root {
  color-scheme: light dark;
  --paper: #F4EEE3;
  --deck: #EDE5D6;
  --card: #FBF7EF;
  --ink: #23201B;
  --ink-dim: rgba(35, 32, 27, 0.60);
  --ink-faint: rgba(35, 32, 27, 0.36);
  --line: rgba(35, 32, 27, 0.12);
  --band: #F7D3AE;
  --word: #9C3A23;
  --terracotta: #B4442A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140F;
    --deck: #1F1B15;
    --card: #24201A;
    --ink: #ECE3D2;
    --ink-dim: rgba(236, 227, 210, 0.62);
    --ink-faint: rgba(236, 227, 210, 0.36);
    --line: rgba(236, 227, 210, 0.12);
    --band: #4E3422;
    --word: #FFB07C;
    --terracotta: #E8825C;
  }
}

* { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 "Figtree", system-ui, sans-serif;
  overflow-wrap: break-word;
}

main { max-width: 620px; margin: 0 auto; padding: 40px 22px 48px; }

/* «Vocella» above the heading: Fraunces Italic in terracotta, as «Vocella Pro» on the paywall. */
.brand {
  display: inline-block;
  font: italic 400 22px/1.2 "Fraunces", Georgia, serif;
  color: var(--terracotta);
  text-decoration: none;
}

h1 {
  margin: 6px 0 28px;
  font: 500 38px/1.06 "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }

/* Section headings: the caps label (Figtree 700 11, tracking 0.15em, inkDim). */
h2 {
  margin: 40px 0 12px;
  font: 700 11px/1.4 "Figtree", system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; }
li { margin: 0 0 6px; }
li::marker { color: var(--ink-faint); }
strong { font-weight: 700; }

/* A question on the support page: a paragraph that is only bold text. */
p.q { margin: 24px 0 6px; font-weight: 700; }

.meta { font-size: 13px; color: var(--ink-dim); }
.lede { font-size: 19px; line-height: 1.45; color: var(--ink-dim); margin-bottom: 24px; }

a { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font: 500 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--deck);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* The line above the footer runs exactly along the text column, not the 22 px gutters. */
footer {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 22px 40px;
  font-size: 13px;
  color: var(--ink-dim);
}
footer > p { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
footer a { color: var(--ink-dim); }

/* The stub page sits lower on big screens instead of hugging the top. */
.home main { padding-top: clamp(40px, 18vh, 160px); }

@media (max-width: 480px) {
  main, .home main { padding-top: 28px; }
  h1 { font-size: 34px; }
}
