:root {
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #23302a;
  --muted: #5d6b63;
  --green: #2f4a3a;
  --green-dark: #1f3327;
  --clay: #b5532f;
  --clay-dark: #94411f;
  --gold: #d9a441;
  --line: #e4dccb;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.brand-tag { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 4px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--clay); }

.btn {
  display: inline-block; background: var(--clay); color: #fff !important; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; font-weight: 600; border: 0; font-size: 1rem;
  font-family: var(--sans); cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--clay-dark); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.green { background: var(--green); }
.btn.green:hover { background: var(--green-dark); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--green-dark), var(--green) 60%, #46664f); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 96px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .kicker { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.hero p.lede { font-size: 1.15rem; color: #e6efe8; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.hero .card { color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.25); border: 0; }
.hero .card h2 { font-size: 1.4rem; }

/* Forms */
form label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; color: var(--green-dark); }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cfc6b2; border-radius: 6px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--green); }
form .btn { width: 100%; margin-top: 16px; }
.fine { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-done { background: #eef5ee; border: 1px solid #b9d3bd; border-radius: 8px; padding: 18px; color: var(--green-dark); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.inline-form .btn { width: auto; margin-top: 0; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 6px; }

.grid { display: grid; gap: 20px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.main-side { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(47,74,58,.14); color: inherit; }
.tile .art { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.art.a { background: linear-gradient(135deg, #dfe9d8, #b9d0b4); }
.art.b { background: linear-gradient(135deg, #f6e3c5, #e9bf86); }
.art.c { background: linear-gradient(135deg, #f3d6c8, #dd9c80); }
.art.d { background: linear-gradient(135deg, #d6e4ea, #a4c3cf); }
.tile .body { padding: 16px 18px 18px; }
.tile .cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.tile h3 { margin: 6px 0 6px; }
.tile p { font-size: .92rem; color: var(--muted); margin: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list .when { flex: none; width: 92px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--clay); font-weight: 700; }
.list a { font-family: var(--serif); font-size: 1.08rem; color: var(--green-dark); text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list small { display: block; color: var(--muted); font-family: var(--sans); font-size: .86rem; }

.badge { display: inline-block; font-family: var(--sans); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; background: #fff3cd; color: #7a5b00; border: 1px solid #ecd58a; padding: 1px 6px; border-radius: 4px; vertical-align: middle; font-weight: 700; }

.agent { text-align: center; }
.agent .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.8rem; margin: 0 auto 12px; }
.agent p { font-size: .92rem; color: var(--muted); }
.side-stack { display: grid; gap: 20px; position: sticky; top: 88px; }

.band { background: var(--green); color: #fff; padding: 48px 0; }
.band h2 { color: #fff; }
.band p { color: #dbe8de; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 0; }
.fact { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.fact b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--green-dark); }
.fact span { font-size: .85rem; color: var(--muted); }

.page-head { background: var(--green); color: #fff; padding: 48px 0; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: #dbe8de; max-width: 40em; margin: 0; font-size: 1.08rem; }

.hood { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.hood .art { border-radius: 10px; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.hood ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 0 0 18px 48px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--green-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }

footer { background: var(--green-dark); color: #c9d6cc; padding: 40px 0 28px; font-size: .9rem; }
footer a { color: #fff; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
footer h3 { color: #fff; font-size: 1rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .78rem; color: #9fb2a4; }

@media (max-width: 900px) {
  .hero .wrap, .main-side, .band .wrap, footer .cols { grid-template-columns: 1fr; }
  .grid.c4, .facts { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .side-stack { position: static; }
}
@media (max-width: 560px) {
  .grid.c4, .grid.c3, .grid.c2, .row2 { grid-template-columns: 1fr; }
  .hood { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .list li { flex-direction: column; gap: 2px; }
}

/* Article pages */
.crumbs { font-size: .82rem; margin-bottom: 10px; color: #c5d6c9; }
.crumbs a { color: #e6efe8; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.small { font-size: .92rem; color: var(--muted); }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose .updated { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2em; }
.quick { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 6px 20px; margin: 0 0 1.5em; }
.quick dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 14px 0; font-size: .95rem; }
.quick dt { font-weight: 700; color: var(--green-dark); }
.quick dd { margin: 0; }
.note { background: #fff8e6; border: 1px solid #ecd58a; border-radius: 8px; padding: 12px 16px; font-size: .92rem; margin: 0 0 1.5em; }
.prose + h2 { margin-top: 48px; }
table.simple { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; background: var(--paper); }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
table.simple th { background: #f1ebdd; color: var(--green-dark); }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) { .quick dl { grid-template-columns: 1fr; gap: 2px; } .quick dt { margin-top: 8px; } }
.form-error { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1f14; border-radius: 6px; padding: 10px 12px; font-size: .9rem; margin: 12px 0 0; }
button[disabled] { opacity: .65; cursor: wait; }
