:root {
    --canvas: #f6f1e8;
    --surface: #fffaf2;
    --surface-strong: #ffffff;
    --ink: #24263b;
    --ink-soft: #5f6275;
    --line: #d8d0c4;
    --rust: #a9472b;
    --rust-soft: #f3ded4;
    --sage: #73836e;
    --focus: #2468c9;
    --shadow: 0 18px 50px rgba(42, 37, 31, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: white;
    background: var(--ink);
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 750;
    text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; color: var(--ink); }
.dot-rust { fill: var(--rust); }
.dot-sage { fill: var(--sage); }

nav { display: flex; gap: 8px; }
nav a {
    color: var(--ink-soft);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}
nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

main { width: min(920px, calc(100% - 36px)); margin: 0 auto; }

.hero { padding: clamp(64px, 9vw, 110px) 0 52px; max-width: 760px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--rust);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 5.6rem); max-width: 800px; }
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 4vw, 2.25rem); }
h3 { margin: 26px 0 8px; font-size: 1.18rem; }
p { margin: 0 0 18px; }
.lede { margin: 22px 0 16px; color: var(--ink-soft); font-size: clamp(1.15rem, 2.5vw, 1.42rem); max-width: 720px; }
.updated { color: var(--ink-soft); font-size: 0.9rem; }

.summary-grid, .jump-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 64px;
}
.summary-card, .jump-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}
.summary-card h2 { margin: 6px 0; font-size: 1.2rem; }
.summary-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.summary-icon { color: var(--sage); font-size: 1.35rem; font-weight: 800; }

.jump-grid { text-decoration: none; }
.jump-card {
    display: grid;
    grid-template-columns: 32px 1fr;
    color: var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}
.jump-card:hover { transform: translateY(-2px); border-color: var(--rust); }
.jump-card > span { grid-row: 1 / 3; color: var(--rust); font-weight: 800; }
.jump-card strong { line-height: 1.3; }
.jump-card small { color: var(--ink-soft); }

.policy, .support-section {
    padding: clamp(26px, 5vw, 52px);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.policy > section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.policy > section:first-child { padding-top: 0; }
.policy > section:last-child { border-bottom: 0; padding-bottom: 0; }
.policy ul, .safety-card ul { padding-left: 1.35em; }
.policy li, .safety-card li { margin: 8px 0; }

.support-section { margin-bottom: 22px; box-shadow: none; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 2px 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.steps li::before {
    content: counter(step);
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--rust);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}
.steps span { color: var(--ink-soft); }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
    position: relative;
    padding: 20px 42px 20px 0;
    cursor: pointer;
    font-weight: 730;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    color: var(--rust);
    font-size: 1.35rem;
    line-height: 1;
}
details[open] summary::after { content: "–"; }
.answer { padding: 0 32px 4px 0; color: var(--ink-soft); }
.inline-link { margin-top: 24px; font-weight: 700; }

.safety-card { background: var(--rust-soft); border-color: var(--rust); }
.resource-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.resource-list li { border-bottom: 1px solid var(--line); }
.resource-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 0;
    color: var(--ink);
    text-decoration: none;
}
.resource-list span { color: var(--ink-soft); font-size: 0.9rem; }

.contact-card {
    margin: 22px 0 0;
    padding: clamp(28px, 5vw, 48px);
    color: white;
    background: var(--ink);
    border-radius: 28px;
}
.contact-card h2, .contact-card p { color: white; }
.contact-card .eyebrow { color: #e59a7e; }
.contact-card a:not(.button) { color: #f2a98d; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 8px;
    padding: 0 20px;
    color: white;
    background: var(--rust);
    border-radius: 14px;
    font-weight: 750;
    text-decoration: none;
}
.contact-email { margin: 14px 0 0; font-size: 0.9rem; opacity: 0.8; }

footer {
    width: min(920px, calc(100% - 36px));
    margin: 0 auto;
    padding: 36px 0 56px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}
footer p { margin: 0; }

@media (max-width: 640px) {
    .site-header { min-height: 68px; }
    .brand-mark { width: 34px; height: 34px; }
    nav a { padding: 7px 9px; }
    .summary-grid, .jump-grid { grid-template-columns: 1fr; }
    .policy, .support-section { border-radius: 22px; }
    footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --canvas: #171820;
        --surface: #22232d;
        --surface-strong: #20212a;
        --ink: #f4efe7;
        --ink-soft: #c0bdc6;
        --line: #3b3c47;
        --rust: #d97855;
        --rust-soft: #412921;
        --sage: #9caf96;
        --shadow: none;
    }
    .contact-card { background: #0f1016; }
}
