:root {
  --bg: #EAF6F5;
  --fg: #0B2A2B;
  --accent: #0D8C8C;
  --fg-soft: #0B2A2B99;
  --rule: #0B2A2B22;
  --panel: #ffffff66;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(234, 246, 245, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.mark:hover { text-decoration: none; }
.mark-svg { width: 28px; height: 28px; color: var(--accent); }
.site-header nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}
.site-header nav a {
  color: var(--fg);
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 2rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.15rem;
  max-width: 58ch;
  color: var(--fg);
}
.meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--fg-soft);
  font-style: italic;
  max-width: 50ch;
}
.hero-rule {
  display: block;
  width: 100%;
  height: 24px;
  color: var(--accent);
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}
.section.alt {
  background: #DCEEED;
}
.section-lede {
  max-width: 65ch;
  font-size: 1.02rem;
  margin-bottom: 2.5rem;
  color: var(--fg);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* Panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  border-radius: 2px;
}
.panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
.spec {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.spec li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rule);
}
.spec li:last-child { border-bottom: none; }
.spec li span:last-child { color: var(--fg-soft); text-align: right; }

/* Tiers */
.tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.tiers > li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.tiers > li:first-child { border-top: none; padding-top: 0; }
.tier-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.tiers h3 {
  margin-bottom: 0.4rem;
}
.tiers p {
  margin-bottom: 0;
  max-width: 62ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-pattern {
  display: block;
  width: 100%;
  height: 30px;
  color: var(--accent);
  margin-bottom: 2rem;
}
.colophon {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  font-style: italic;
  max-width: 60ch;
}
.fineprint {
  font-size: 0.8rem;
  color: var(--fg-soft);
  margin-bottom: 0;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.5rem;
}
.error-page .back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.error-page .back:hover { text-decoration: none; }