/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ── */
:root {
  --bg:        #f7f4ef;
  --surface:   #f0ede7;
  --text:      #2c2825;
  --muted:     #7a746c;
  --accent:    #8b7355;
  --border:    #ddd8cf;
  --max-width: 700px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1a1917;
    --surface: #222120;
    --text:    #e8e3db;
    --muted:   #8c8680;
    --accent:  #b8976a;
    --border:  #312f2c;
  }
}

/* ── Document ── */
html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  padding: 0 1.25rem;
}

/* ── Layout ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

/* ── Site header ── */
.site-header {
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.site-header a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

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

/* ── Hero (index only) ── */
.hero {
  padding: 5rem 0 4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ── Page heading ── */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ── Prose ── */
.prose h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── FAQ ── */
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.faq-answer {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Contact block ── */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}

.contact-block p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* ── Navigation links (index) ── */
.nav-links {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .spacer {
  flex: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .page { padding: 2.5rem 0 4rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .contact-block { padding: 1.25rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .site-footer { gap: 1rem; }
}
