:root {
  --hh: 112px;
  --ink: #23201B;
  --paper: #FBF8F2;
  --line: #EAE3D7;
  --brand: #0C6560;
  --brand-600: #0E7A74;
  --dawn: #EFA23C;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
section[id], article[id] { scroll-margin-top: var(--hh); }

/* ---- Type signatures ---- */
.display { font-family: 'Fraunces', ui-serif, Georgia, serif; letter-spacing: -0.015em; }
.kicker {
  font-family: '"IBM Plex Mono"', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.55rem; color: var(--brand-600);
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--dawn); display: inline-block; }
.meta { font-family: '"IBM Plex Mono"', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---- Buttons (plain CSS; render without a Tailwind build) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.5rem; line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px rgba(12,101,96,.7); }
.btn-primary:hover { background: #0A4E4A; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid rgba(35,32,27,.16); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-help { background: var(--dawn); color: #3a2a12; font-weight: 700; box-shadow: 0 10px 24px -14px rgba(217,130,43,.75); }
.btn-help:hover { background: #F0AE52; transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn:disabled { opacity: .75; cursor: default; transform: none; }

/* ---- Links ---- */
.link-grow { position: relative; }
.link-grow::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.link-grow:hover::after, .link-grow:focus-visible::after { transform: scaleX(1); }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--brand-600); }
.arrow-link svg { transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

.nav-link { font-size: 0.95rem; font-weight: 500; color: rgba(35,32,27,.66); transition: color .2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--brand-600); }
.nav-link.is-active::after { transform: scaleX(1); background: var(--dawn); }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: 0 24px 50px -30px rgba(14,46,43,.4); border-color: rgba(12,101,96,.28); }
.card-lift:hover { transform: translateY(-4px); }

/* ---- Art panels ---- */
.art { border-radius: 1.5rem; overflow: hidden; position: relative; }
.art svg { display: block; width: 100%; height: 100%; }

/* ---- Feature (alternating text + art) ---- */
.feature { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---- Stat / callout ---- */
.callout { background: linear-gradient(160deg, #0C6560 0%, #0E2E2B 100%); color: #fff; border-radius: 2rem; }

/* ---- Numbered model ---- */
.step-num { font-family: 'Fraunces', serif; font-weight: 600; color: var(--dawn); font-size: 2rem; line-height: 1; }

/* ---- Funding note ---- */
.funding { border: 1px dashed rgba(35,32,27,.22); border-radius: 1rem; }

/* ---- Modal / toast / reveal ---- */
.modal-backdrop { transition: opacity .2s ease; }
.modal-panel { transition: transform .28s cubic-bezier(.2,.8,.3,1), opacity .2s ease; }
.modal[aria-hidden="true"] { display: none; }
.toast { transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .3s ease; }

@keyframes floatUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: floatUp .7s cubic-bezier(.2,.7,.3,1) forwards; }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* ---- Inputs ---- */
.field { width: 100%; border: 1px solid rgba(35,32,27,.16); background: #fff; border-radius: 0.85rem; padding: 0.8rem 1rem; color: var(--ink); transition: border-color .2s ease; font-size: 0.95rem; }
.field::placeholder { color: rgba(35,32,27,.4); }
.field:focus { border-color: var(--brand); outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; animation: none !important; }
  .card-lift:hover, .btn:hover { transform: none; }
  * { transition: none !important; }
}
