/* Quiet Pixels — privacy + support page styling.
   Cream "paper" surface, Fraunces serif headings, system sans body.
   Mirrors Quiet Letters' site for studio consistency; colour tokens
   come from Quiet Pixels' paper theme (Packages/DesignSystem/.../Colors.swift).
   No JS, no trackers. Google Fonts CDN is the only third-party request;
   self-host Fraunces under docs/fonts/ if you want absolute network silence. */

:root {
  --bg:        #F4ECD8;   /* paper.surface */
  --surface:   #FBF5E4;   /* paper.surfaceElevated */
  --text:      #3A2A1F;   /* paper.textPrimary */
  --muted:     #6F6050;   /* paper.textSecondary */
  --accent:    #6B4A2E;   /* paper.accent (espresso) */
  --rule:      rgba(58, 42, 31, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0E0F12;   /* dark.surface */
    --surface: #1A1C21;   /* dark.surfaceElevated */
    --text:    #F1ECDF;   /* dark.textPrimary */
    --muted:   #9C9A92;   /* dark.textSecondary */
    --accent:  #E0A24A;   /* dark.accent (warm amber) */
    --rule:    rgba(241, 236, 223, 0.12);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  font-family: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.wordmark {
  font-family: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-family: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--text);
}

h2 {
  font-family: 'Fraunces', 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  color: var(--text);
}

p { margin: 0 0 18px; }

p.lede {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

li { margin-bottom: 6px; }

footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

footer a { color: var(--muted); }

/* Long-form prose tweaks */
p code, li code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, 'Menlo', monospace;
  color: var(--text);
}
