/* Public documents share the app palette and preserve their reading layout. */

/* Fonts, served from this origin (/fonts/, SIL Open Font License 1.1: /font-licenses/OFL-Chivo.txt and
   OFL-SplineSansMono.txt). These pages are static files outside the app's build, so they carry their own
   copy of what src/fonts/fonts.css gives the app: Chivo and Spline Sans Mono 5.3.0 (@fontsource-variable/chivo,
   integrity sha512-lbYs65CyAE3RDvZjiFSt2HYF/cPl/2wB3RSBzSlRqPxYw5uqA/Ux/Wa/BuDEKo72NXmiR9F5ba8FXqJnooRhSA==;
   @fontsource-variable/spline-sans-mono, integrity
   sha512-dH/qBj/MCE4ObiuCwlA9X1o3AftMO9dwfFgoRVYjy6VCPYkpWAlEtK/RjeyICgsR8rW763IAQARskVgShBY5JA==; files unmodified),
   the latin and latin-ext subsets with the unicode-ranges Google served, font-display: swap. Nothing here
   asks another host for a font (lib/noThirdPartyFonts.test.ts). */
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/chivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/chivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/spline-sans-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/spline-sans-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --l-bg: #f7f7f2;
  --l-surf: #e9edde;
  --l-line: #d9dcd1;
  --l-faint: #676a60;
  --l-mut: #676a60;
  --l-tx: #3e4137;
  --l-tx-hi: #252720;
  --l-acc-tx: #c84528;
  --f-display: "Chivo", "Helvetica Neue", sans-serif;
  --f-body: "Chivo", "Helvetica Neue", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --l-bg: #000000;
  --l-surf: #171717;
  --l-line: #282828;
  --l-faint: #a2a2a2;
  --l-mut: #b2b2b2;
  --l-tx: #dedede;
  --l-tx-hi: #ffffff;
  --l-acc-tx: #ffa88e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-tx);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }

header.mast { padding: 40px 0 26px; border-bottom: 1px solid var(--l-line); }

.mast a.home {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--l-faint);
  text-decoration: none;
}
.mast a.home:hover { color: var(--l-acc-tx); }

h1 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(30px, 5vw, 42px);
  color: var(--l-tx-hi);
  margin: 18px 0 10px;
}

.updated {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--l-faint);
  margin: 0;
}

h2 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 22px;
  color: var(--l-tx-hi);
  margin: 44px 0 12px;
}

h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--l-tx-hi);
  margin: 26px 0 8px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--l-acc-tx); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--l-acc-tx); outline-offset: 2px; }

strong { color: var(--l-tx-hi); font-weight: 600; }

.lede { font-size: 18px; color: var(--l-mut); margin-bottom: 26px; }

.callout {
  background: var(--l-surf);
  border: 1px solid var(--l-line);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

.contact {
  font-family: var(--f-mono);
  font-size: 14px;
  background: var(--l-surf);
  border: 1px solid var(--l-line);
  border-radius: 10px;
  padding: 14px 18px;
}

footer.legal-foot {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--l-line);
  font-size: 14px;
  color: var(--l-faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.appearance { display: flex; gap: 4px; border: 1px solid var(--l-line); border-radius: 8px; padding: 3px; }
.appearance button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--l-mut); font: 500 13px var(--f-body); cursor: pointer; }
.appearance button[aria-pressed="true"] { background: var(--l-tx-hi); color: var(--l-bg); }
.appearance button:focus-visible { outline: 2px solid var(--l-acc-tx); outline-offset: 3px; }
.contact, a { overflow-wrap: anywhere; }
/* Long status URLs remain readable on a phone. */
code { overflow-wrap: anywhere; white-space: normal; }

/* The same restrained controls and reading rhythm as the app. */
:root { --l-control: #ffffff; --l-control-edge: #858a7e; }
:root[data-theme="dark"] { --l-control: #171717; --l-control-edge: #626262; }
h1 { line-height: 1.15; letter-spacing: -.035em; }
h2 { line-height: 1.3; }
.appearance { border-radius: 10px; background: var(--l-surf); }
.appearance button { border-radius: 7px; transition: background-color 160ms, color 160ms; }
.appearance button[aria-pressed="true"] { background: var(--l-control); color: var(--l-tx-hi); box-shadow: 0 0 0 1px var(--l-control-edge); }
.appearance button:focus-visible, a:focus-visible { outline-color: var(--l-tx-hi); outline-offset: 3px; }
.callout, .contact { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .appearance button { transition: none; } }
