/* Shared styling for the static information pages (about, privacy, terms,
   contact). These are deliberately plain HTML served straight from dist/ by
   fastify-static: no JavaScript, no build step, no framework. A reader — or a
   crawler that never runs scripts — gets the full text from the markup alone.

   Palette mirrors src/styles.css so these read as part of the product rather
   than bolted on, but the values are duplicated rather than imported: the app's
   CSS is bundled under a hashed filename that this file cannot reference. Fonts
   fall back to the system stack for the same reason. */

:root {
  --bg: #100f0d;
  --surface: #1c1b18;
  --border: #2c2a27;
  --text: #ece9e4;
  --text-dim: #9e9a92;
  --accent: #d96f4e;
  --accent-strong: #f2a184;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ece7de;
    --surface: #f7f4ec;
    --border: #dcd6c9;
    --text: #2b2823;
    --text-dim: #6f6a5f;
    --accent: #c0532f;
    --accent-strong: #9c4023;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- header ---- */

.bar {
  border-bottom: 1px solid var(--border);
}

.bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--accent);
}

/* ---- content ---- */

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

.updated {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

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

p,
li {
  color: var(--text);
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--accent);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* Pulls the one thing a reader most often arrives looking for out of the
   surrounding prose — the contact address, the plain-language summary. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0;
}

.card p:first-child {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.mail {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.foot a {
  color: var(--text-dim);
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}
