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

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body, 'Inter'), system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading, 'Playfair Display'), Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin-bottom: 0.25rem; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 760px; }

.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p { color: var(--text-muted); margin-top: 0.75rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

.text-muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Prose (Markdown-rendered content) */
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.prose a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Page header */
.page-header {
  padding: 5rem 0 3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header .lead { max-width: 700px; }
.page-header-accent {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-bottom: none;
}
