:root {
    --bg: #f4f1ea;
    --paper: #fffdf8;
    --ink: #1e1c18;
    --muted: #5e564c;
    --line: #d7cfc1;
    --accent: #7d3d1f;
    --accent-dark: #5e2d17;
    --soft: #efe6d7;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a { color: var(--accent-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,253,248,0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}
.brand {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}
.brand-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.brand-main {
    font-size: 1.15rem;
    font-weight: 700;
}
.main-nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.96rem;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
}
.main-nav a.active,
.main-nav a:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.hero {
    padding: 4.25rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0));
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
}
.kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-dark);
    font-weight: 700;
}
.hero h1,
.page-title h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin: 0.4rem 0 1rem;
}
.lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--muted);
    max-width: 42rem;
}
.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}
.button,
button,
input[type="submit"] {
    appearance: none;
    border: 1px solid var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 0.35rem;
    font-weight: 700;
    cursor: pointer;
}
.button.secondary {
    background: transparent;
    color: var(--accent-dark);
}
.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--accent);
}
.button.secondary:hover {
    color: #fff;
}
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    box-shadow: var(--shadow);
    padding: 1.2rem;
}
.panel h2,
.panel h3 { margin-top: 0; }
.quote-box {
    font-size: 1.05rem;
    font-style: italic;
}

section,
.page-section {
    padding: 2.25rem 0;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.section-head h2,
.page-section h2,
.page-section h3 {
    line-height: 1.15;
}
.grid-2,
.grid-3,
.grid-cards {
    display: grid;
    gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card ul { margin-bottom: 0; }
.muted { color: var(--muted); }
.callout {
    border-left: 5px solid var(--accent);
    padding: 0.6rem 0 0.6rem 1rem;
    margin: 1rem 0;
    font-size: 1.06rem;
}
.page-title {
    padding: 3rem 0 1rem;
    border-bottom: 1px solid var(--line);
}
.page-title .lead { max-width: 50rem; }
ul.clean,
ol.clean { padding-left: 1.2rem; }
blockquote {
    margin: 1.25rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--accent);
    background: rgba(255,255,255,0.45);
}
form {
    display: grid;
    gap: 0.9rem;
}
label { font-weight: 700; display: block; }
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #bcae97;
    border-radius: 0.35rem;
    background: #fff;
    font: inherit;
}
.checkbox-list {
    display: grid;
    gap: 0.55rem;
}
.checkbox-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-weight: 400;
}
.small { font-size: 0.92rem; }
.note {
    background: var(--soft);
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dbc8ab;
}
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding: 2rem 0 3rem;
    background: rgba(255,255,255,0.35);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}
.footer-grid h2,
.footer-grid h3 { margin-top: 0; }
.stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 1rem;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: 1.7rem;
}
.table-ish {
    display: grid;
    gap: 0.65rem;
}
.row {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}
.center-text {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-cards,
    .footer-grid,
    .stats,
    .row {
    grid-template-columns: 1fr;
}
.topbar { align-items: flex-start; flex-direction: column; }
}
