/*
  Shared base styles for the small support pages (privacy, terms, the quiz
  placeholder). The main landing page does NOT use this file — its critical
  styles are inlined in index.html for speed. This file exists so those
  three low-traffic pages aren't each duplicating the whole token/font block.
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; pointer-events: none; }

:root {
  --bg-page: #DDD3CB;
  --bg-surface: #EDE6E0;
  --surface-rgb: 237, 230, 224;
  --ink: #2E2320;
  --ink-rgb: 46, 35, 32;
  --maroon: #5C3B3B;
  --terracotta: #C0563C;
  --terracotta-rgb: 192, 86, 60;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', Helvetica, Arial, sans-serif;
  --max-width: 480px;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
}

body {
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--maroon); }
a:hover { color: var(--ink); }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-surface);
  color: var(--ink);
  font-family: var(--font-sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(var(--surface-rgb), 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  pointer-events: none;
  user-select: none;
}
.site-header img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.site-header span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doc {
  padding: 1.75rem 1.25rem 3rem;
}
.doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
}
.doc .updated {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: rgba(var(--ink-rgb), 0.6);
}
.doc h2 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.doc p, .doc li {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(var(--ink-rgb), 0.85);
}
.doc p { margin: 0 0 1rem; }
.doc .placeholder-note {
  margin: 0 0 1.75rem;
  padding: 1rem 1.125rem;
  border-radius: 14px;
  background: rgba(var(--terracotta-rgb), 0.12);
  border: 1px dashed rgba(var(--terracotta-rgb), 0.5);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}
.doc .back-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  html { font-size: 17.5px; }
}
