/* Shared stylesheet for the static content pages (guides, about, contact).
   Same palette as privacy.html and the app's design tokens (design.md), with
   the self-hosted Atkinson faces the app already ships — one cached request
   across every guide instead of a copy of this block per page. privacy.html
   deliberately stays self-contained (a page about what we don't load
   shouldn't load things), so it keeps its own inline copy. */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-700.woff2') format('woff2');
}

:root {
  --bg: #f8fbf9;
  --ink: #17231c;
  --muted: #4a5b51;
  --accent: #0b6b3a;
  --rule: #d8e6dd;
  --panel: #eef6f1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17231c;
    --ink: #e8f1ea;
    --muted: #a3b7ab;
    --accent: #6cc294;
    --rule: #2c3b33;
    --panel: #1e2c24;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main,
.site-head,
.site-foot {
  max-width: 65ch;
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.site-head .brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-head .brand:hover,
.site-head .brand:focus {
  text-decoration: underline;
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.crumbs {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.5rem;
}

.updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lede {
  font-size: 1.125rem;
}

.panel {
  margin: 0 0 1.1rem;
  padding: 1.25rem 1.25rem 0.15rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--panel);
}

.panel h2,
.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.cta {
  margin: 2.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--panel);
}

.cta p {
  margin: 0 0 1rem;
}

.cta a.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

table {
  width: 100%;
  margin: 0 0 1.1rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--panel);
  font-family: ui-monospace, 'Cascadia Code', 'Cousine', monospace;
  font-size: 0.9em;
  word-break: break-word;
}

.guide-list {
  padding: 0;
  list-style: none;
}

.guide-list li {
  margin-bottom: 1.25rem;
}

.guide-list a {
  font-weight: 700;
}

.guide-list p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 40rem) {
  body {
    padding: 3rem 2rem 5rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}
