:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #172033;
  --muted: #4d5b70;
  --line: #e3d8c8;
  --teal: #0e5c56;
  --teal-ink: #ffffff;
  --soft: #e7f3f1;
  --amber: #8a5a16;
  --danger: #8d2b2b;
  --ok: #1d6b45;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(14, 92, 86, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: #083f3b; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: white; padding: 0.5rem 0.8rem; z-index: 5;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 4;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .site-footer, main > section, main > article, .banner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-mark {
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  background: var(--ink); color: white; border-radius: 0.35rem; font-family: var(--serif);
}
.site-nav { display: flex; gap: 0.35rem 0.7rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.site-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 0.25rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; color: var(--ink);
  background: white; border: 1px solid var(--line); border-radius: 0.65rem; cursor: pointer;
}
.hamburger { position: relative; display: block; width: 1.15rem; height: 0.85rem; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 0.15s ease, top 0.15s ease, opacity 0.15s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 0.4rem; }
.hamburger span:nth-child(3) { top: 0.8rem; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { top: 0.4rem; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { top: 0.4rem; transform: rotate(-45deg); }

.hero, .band, .split, .page-intro { width: min(var(--max), calc(100% - 2rem)); margin: 2rem auto; }
.hero { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: end; padding-top: 1rem; }
.eyebrow, .panel-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--amber); font-weight: 700; margin-bottom: 0.4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.2rem; }
.hero-panel { background: var(--ink); color: #f7f4ee; border-radius: 1.2rem; padding: 1.4rem 1.4rem 0.6rem; box-shadow: var(--shadow); }
.hero-panel ol { padding-left: 1.1rem; }
.hero-panel li { margin-bottom: 0.8rem; }
.btn, button.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem;
  padding: 0.55rem 1rem; border-radius: 999px; font: inherit; font-weight: 650;
}
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #094841; color: white; }
.btn-secondary, .btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.text-link { font-weight: 650; }
.band { padding-bottom: 1rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .split article, .callout {
  background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem 1.15rem 1.2rem;
}
.service-card h2, .service-card h3 { font-size: 1.45rem; margin: 0.2rem 0 0.4rem; }
.service-card h2 a, .service-card h3 a { color: inherit; text-decoration: none; }
.service-card ul { padding-left: 1.1rem; color: var(--muted); }
.service-icon { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--soft); color: var(--teal); border-radius: 0.7rem; }
.icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.prose p, .narrow p { color: var(--ink); }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 0.8rem; }
.callout { background: var(--soft); }
.chips, .filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 1rem 0; }
.chip { text-decoration: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 999px; padding: 0.35rem 0.75rem; }
.chip.is-current { background: var(--ink); color: white; }
.filter-bar input, .stack-form input, .stack-form textarea, .stack-form select {
  width: 100%; border: 1px solid #cfc3b2; background: white; border-radius: 0.7rem; padding: 0.7rem 0.8rem; font: inherit; color: inherit;
}
.stack-form { display: grid; gap: 0.9rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.req { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.field-error { color: var(--danger); margin: 0.3rem 0 0; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; }
.check input { margin-top: 0.35rem; }
.form-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-email { font-size: 1.3rem; }
.banner { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 0.8rem; }
.banner-ok { background: #e7f6ee; color: var(--ok); }
.banner-error { background: #fdecec; color: var(--danger); }
.banner-note { background: #fff6e8; color: #6d4a12; }
.hp { position: absolute; left: -10000px; height: 1px; width: 1px; overflow: hidden; }
.empty { grid-column: 1 / -1; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
summary { cursor: pointer; font-weight: 700; }
.site-footer { padding: 2.5rem 0 1.4rem; color: var(--muted); }
.footer-grid { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; margin: 0.25rem 0; }
.legal { width: min(var(--max), calc(100% - 2rem)); margin: 1rem auto 0; }

@media (max-width: 900px) {
  .hero, .card-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 4.5rem; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.8rem 1rem 1rem; }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 0.45rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
