/* Support and privacy pages (web/support/, web/privacy/): long reading text in
   the "Canhoto" design system. Tokens mirror src/theme/tokens.ts; the fonts are
   served from this origin (web/fonts, OFL). */
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f3ede1; --paper-raised: #fcf9f2;
  --ink: #1d1815; --ink-muted: #675c51; --line: #cdbfa8; --line-strong: #8c7f6e;
  --velvet: #9e2a20; --focus: #1f5f8b;
  --display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131110; --paper-raised: #1e1b19;
    --ink: #f2ebdf; --ink-muted: #a89b8c; --line: #3b342e; --line-strong: #7a6e61;
    --velvet: #e4675a; --focus: #8cc4ec;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  padding: 20px 16px 96px;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
main, .top { max-width: 42rem; margin: 0 auto; }

/* Top: brand on the left, language switch on the right */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand .mark { display: block; height: 26px; width: auto; aspect-ratio: 506 / 618; }
.brand .mark path { fill: var(--velvet); }
.wordmark { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.langs { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; font: 500 12px/16px var(--mono); letter-spacing: .9px; text-transform: uppercase; }
.langs li { margin: 0; }
.langs a { color: var(--ink-muted); text-decoration: none; }
.langs a:hover { color: var(--velvet); }
.langs a[aria-current="page"] { color: var(--ink); }

/* Text */
h1 { margin: 0 0 8px; font: 800 44px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { margin: 40px 0 10px; padding-top: 24px; border-top: 1px dashed var(--line-strong); font: 600 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { margin: 28px 0 4px; font: 600 17px/1.4 var(--sans); }
p { margin: 0 0 12px; }
/* The line under the title: the update date or the tagline; support has both. */
.date, .subtitle { margin: 0 0 40px; font: 500 12px/16px var(--mono); letter-spacing: .9px; text-transform: uppercase; color: var(--ink-muted); }
ul { margin: 0 0 12px; padding-left: 1.2em; }
li { margin: 6px 0; }
strong { font-weight: 600; }
a { color: var(--velvet); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
footer {
  margin-top: 56px; padding-top: 20px; border-top: 1px dashed var(--line-strong);
  font: 500 12px/16px var(--mono); letter-spacing: .9px; text-transform: uppercase; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.subtitle + .date { margin-top: -32px; }
footer a { color: inherit; }
footer a[aria-current="page"] { color: var(--ink); text-decoration: none; }
