/* Every page: fonts, colours, the header and footer, and the reading style Support and Privacy use.
   The site is always dark, the terminal's own colours: the values are PortholtCore's Brand
   (Brand.swift, dark and term*), copied here by name so the site and the app cannot drift.
   Fonts are self-hosted subsets of the app's own faces (site/fonts, SIL OFL 1.1): nothing on these
   pages is requested from any third party. home.css adds the home page's sections. */
@font-face { font-family: Sora; src: url(fonts/sora.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(fonts/spline-sans-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --canvas: #15110F; --surface: #1F1A17; --fill: #2A2420; --line: #2E2622; --border: #3A322D;
  --text: #EDE6DD; --quiet: #CFC6BB; --secondary: #A89E93;
  --accent: #7FB08C; --on-accent: #15110F;
  --term: #1B1613; --term-chrome: #2A221E; --term-key: #3A322D; --term-text: #E8E1D8; --prompt: #9FC3A7;
  --sans: Sora, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-contrast: more) {
  :root { --border: #8A7F76; --line: #8A7F76; --secondary: #C9BFB4; --accent: #93C4A0; }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #C9E0CF; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2 { text-wrap: balance; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 600; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 9px; outline: 1px solid var(--border); outline-offset: -1px; }
.bar nav { display: flex; gap: 24px; font-size: 15px; }
.bar nav a { color: var(--quiet); text-decoration: none; }
.bar nav a:hover { color: var(--text); }
.bar nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

footer { border-top: 1px solid var(--border); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--secondary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* Support, Privacy and the not-found page: a readable column. */
.doc { max-width: 744px; padding-top: 48px; padding-bottom: 88px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.doc h2 { margin: 2.2em 0 .4em; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.doc h3 { margin: 1.6em 0 .2em; font-size: 17px; font-weight: 600; }
.doc p { margin: 0 0 .8em; color: var(--quiet); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0 0 .8em; padding-left: 22px; color: var(--quiet); }
.doc li { margin: 6px 0; }
.doc code { font-family: var(--mono); font-size: .92em; background: var(--fill); padding: 1px 5px; border-radius: 5px; color: var(--term-text); }
.doc .meta { margin: 0 0 32px; color: var(--secondary); font-size: 15px; }
.doc .summary { margin-bottom: 8px; background: var(--surface); border-radius: 18px; padding: 20px 24px; color: var(--text); }
