/* Quiet Letters — privacy + support page styling.
   Paper-cream surface, Fraunces serif headings, system sans body.
   No JS, no trackers, no third-party requests beyond Google Fonts CDN
   (which can be self-hosted later if you want absolute network silence
   to match the app's "no tracking" promise — see notes in this file). */

:root {
  --bg:        #F4ECD8;   /* Paper theme surface */
  --surface:   #FBF5E4;   /* Paper theme keyboardKey (slightly lifted) */
  --text:      #3A2A1F;   /* Paper theme keyboardKeyText */
  --muted:     #6B5849;
  --accent:    #B4543A;   /* Paper theme tileExact (terracotta) */
  --rule:      rgba(58, 42, 31, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1A1B1F;   /* Dark theme surface */
    --surface: #23262C;   /* Dark theme keyboardKey */
    --text:    #F1ECDF;   /* Dark theme keyboardKeyText */
    --muted:   #9A9590;
    --accent:  #D9926D;   /* Dark theme tilePresent (peach) */
    --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);
}
