:root {
    --olive-950: #17352d;
    --olive-900: #21483d;
    --olive-800: #2d5b4d;
    --olive-700: #3d705d;
    --olive-600: #56846e;
    --olive-200: #cbdccf;
    --olive-100: #e8f0e9;
    --olive-50: #f4f7f2;
    --cream: #fbfaf5;
    --ink: #20302a;
    --muted: #65716c;
    --line: #dfe6df;
    --white: #ffffff;
    --warning: #f5ead4;
    --danger: #b84a3a;
    --shadow: 0 20px 60px rgba(33, 72, 61, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--olive-700);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--olive-950);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(86, 132, 110, 0.38);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 0 0 8px 8px;
    background: var(--white);
    color: var(--olive-950);
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(33, 72, 61, 0.97);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50% 50% 46% 54%;
    background: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.brand-name small {
    margin-top: 0.2rem;
    color: var(--olive-200);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.site-nav a {
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    color: #edf5ef;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5.6rem 0 5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(203, 220, 207, 0.5), transparent 30%),
        linear-gradient(150deg, var(--olive-50), var(--cream) 70%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -155px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(61, 112, 93, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(61, 112, 93, 0.035), 0 0 0 82px rgba(61, 112, 93, 0.025);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--olive-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--olive-950);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.hero .lede {
    max-width: 670px;
    margin: 1.3rem 0 0;
    color: #4e6259;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.updated::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--olive-600);
}

.page-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    gap: 4rem;
    justify-content: center;
    padding: 4.5rem 0 6rem;
}

.toc {
    position: sticky;
    top: 105px;
    align-self: start;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.toc strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--olive-950);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc a {
    display: block;
    padding: 0.32rem 0;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.4;
    text-decoration: none;
}

.toc a:hover {
    color: var(--olive-800);
}

.content {
    min-width: 0;
}

.content section {
    scroll-margin-top: 100px;
    margin-bottom: 3rem;
}

.content h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.content h3 {
    margin: 1.8rem 0 0.5rem;
    font-size: 1.2rem;
}

.content p,
.content ul,
.content ol {
    margin-top: 0.7rem;
}

.content li + li {
    margin-top: 0.55rem;
}

.content ul,
.content ol {
    padding-left: 1.35rem;
}

.card,
.callout {
    margin: 1.4rem 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 35px rgba(33, 72, 61, 0.05);
}

.callout {
    border-color: #dfd1b7;
    background: var(--warning);
    box-shadow: none;
}

.card > :first-child,
.callout > :first-child {
    margin-top: 0;
}

.card > :last-child,
.callout > :last-child {
    margin-bottom: 0;
}

.action-card {
    padding: 2rem;
    border: 1px solid rgba(61, 112, 93, 0.22);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--white), var(--olive-50));
    box-shadow: var(--shadow);
}

.action-card h2 {
    margin-bottom: 0.7rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--olive-800);
    border-radius: 999px;
    background: var(--olive-800);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}

.button:hover {
    background: var(--olive-950);
    color: var(--white);
}

.button.secondary {
    background: transparent;
    color: var(--olive-800);
}

.button.secondary:hover {
    background: var(--olive-100);
}

.step-list {
    list-style: none;
    padding: 0 !important;
    counter-reset: steps;
}

.step-list li {
    position: relative;
    min-height: 48px;
    padding: 0 0 1.3rem 3.6rem;
    counter-increment: steps;
}

.step-list li::before {
    content: counter(steps);
    position: absolute;
    top: -0.1rem;
    left: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--olive-100);
    color: var(--olive-800);
    font-weight: 800;
}

.step-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: var(--olive-200);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.details-grid .card {
    margin: 0;
}

.details-grid h3 {
    margin-top: 0;
}

.danger-link {
    color: var(--danger);
}

.site-footer {
    padding: 3.5rem 0 2rem;
    background: var(--olive-950);
    color: var(--olive-200);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-title {
    margin: 0 0 0.45rem;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.footer-copy {
    max-width: 480px;
    margin: 0;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem 1.1rem;
}

.footer-nav a {
    color: #eef5ef;
    font-size: 0.86rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

@media (max-width: 820px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.8rem 0;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .site-nav a {
        white-space: nowrap;
    }

    .hero {
        padding: 4rem 0;
    }

    .page-shell {
        display: block;
        padding-top: 3rem;
    }

    .toc {
        position: static;
        margin-bottom: 3rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .header-inner,
    .footer-inner,
    .page-shell {
        width: min(100% - 28px, 1120px);
    }

    .details-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .action-card {
        padding: 1.4rem;
    }

    .button-row,
    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
