:root {
  --bg: #f6efe4;
  --bg-soft: #fcf8f1;
  --surface: rgba(255, 248, 239, 0.9);
  --surface-strong: #fffdf8;
  --ink: #1d2430;
  --muted: #5a6473;
  --line: rgba(29, 36, 48, 0.12);
  --accent: #0f766e;
  --accent-2: #d97706;
  --accent-3: #7c3aed;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
  --radius: 22px;
  --radius-small: 14px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 100%);
  font: 16px/1.7 "Aptos", "Trebuchet MS", "Gill Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(29, 36, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 48, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 84%, transparent 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  position: relative;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 36, 48, 0.08);
  background: rgba(255, 250, 242, 0.84);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font: 700 1rem/1.2 "Franklin Gothic Medium", "Aptos Narrow", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-3));
  box-shadow: var(--shadow);
}

.brand-note {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--surface-strong);
  font: inherit;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-card,
.panel,
.card,
.article-card,
.ad-slot,
.notice,
.legal-card {
  border: 1px solid rgba(29, 36, 48, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font: 700 0.78rem/1 "Franklin Gothic Medium", "Aptos Narrow", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.9rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lead {
  max-width: 62ch;
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.12);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0e9b8f);
}

.button.secondary {
  background: var(--surface-strong);
  border-color: var(--line);
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.signal-stack {
  display: grid;
  gap: 1rem;
}

.signal {
  padding: 1.35rem;
}

.signal strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.signal p {
  margin: 0;
  font-size: 0.96rem;
}

.pill-row,
.meta-row,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 700;
  font-size: 0.9rem;
}

.section {
  padding: 1.2rem 0 4.2rem;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-kicker {
  max-width: 38rem;
}

.grid-3,
.grid-2,
.card-grid {
  display: grid;
  gap: 1rem;
}

.grid-3,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.article-card,
.panel,
.legal-card {
  padding: 1.5rem;
}

.card h3,
.article-card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child,
.article-card p:last-child,
.panel p:last-child,
.legal-card p:last-child {
  margin-bottom: 0;
}

.article-card {
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: auto auto -2rem -1rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.14), transparent 70%);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(15, 118, 110, 0.08));
}

.ad-slot {
  padding: 1rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.08)),
    var(--surface-strong);
}

.ad-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font: 700 0.72rem/1 "Franklin Gothic Medium", "Aptos Narrow", "Trebuchet MS", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot p {
  margin: 0;
  font-size: 0.96rem;
}

.metric-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.metric {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.metric strong {
  display: block;
  font: 700 1.35rem/1 "Iowan Old Style", "Palatino Linotype", serif;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 2.4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs span {
  opacity: 0.6;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(17rem, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.story {
  padding: 1.8rem;
}

.story h2 {
  margin-top: 2rem;
}

.story ul,
.story ol {
  margin: 0 0 1.1rem 1.25rem;
  color: var(--muted);
}

.story li + li {
  margin-top: 0.45rem;
}

.aside-stack {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.toc ul,
.note-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.toc li + li,
.note-list li + li {
  margin-top: 0.5rem;
}

.faq details {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq p {
  margin: 0.8rem 0 0;
}

.quote-box {
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--accent);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.list-tight {
  margin-left: 1rem;
}

.notice {
  padding: 1rem 1.2rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(29, 36, 48, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 1.2rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(29, 36, 48, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-page {
  padding: 4rem 0;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-bar,
  .grid-3,
  .grid-2,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aside-stack {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
    margin-top: -3.7rem;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border: 1px solid rgba(29, 36, 48, 0.06);
    background: rgba(255, 255, 255, 0.52);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-card,
  .card,
  .article-card,
  .story,
  .panel,
  .legal-card {
    padding: 1.2rem;
  }

  .metric-bar,
  .grid-3,
  .grid-2,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .reveal {
    transition: none;
  }
}
