:root {
    --paper: #f6f4f8;
    --surface: #eeeaf3;
    --ink: #1c1826;
    --accent: #3d2357;
    --accent-deep: #241436;
    --accent-muted: #7c4d8a;
    --line: rgba(28, 24, 38, 0.15);
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    scroll-behavior: smooth;
}

body {
    border-top: 4px solid var(--accent);
    font: 16px/1.6 var(--sans);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

h1, h2 {
    font-family: var(--serif);
}

h1 em, h2 em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.eyebrow,
.section-label {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.button {
    background: var(--paper);
    border: 1px solid var(--paper);
    border-radius: 4px;
    color: var(--accent-deep) !important;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.3rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
    background: transparent;
    border-color: var(--paper);
    color: var(--paper) !important;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-muted);
    outline-offset: 3px;
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 88rem;
    padding: 1.5rem 2rem;
    position: relative;
}

.site-wordmark {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.site-navigation {
    display: flex;
    gap: 1.6rem;
}

.site-navigation a {
    font-size: 0.85rem;
    text-decoration: none;
}

.site-navigation a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-navigation a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

.site-menu-button {
    display: none;
}

.site-footer {
    align-items: center;
    background: var(--accent-deep);
    color: var(--paper);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 1rem;
    justify-content: space-between;
    padding: 2rem max(2rem, calc((100vw - 72rem) / 2));
}

.site-footer .site-wordmark {
    color: inherit;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: inherit;
}

@media (max-width: 700px) {
    .site-header {
        padding: 1.15rem;
    }

    .site-menu-button {
        background: transparent;
        border: 1px solid var(--accent);
        border-radius: 999px;
        color: var(--accent);
        cursor: pointer;
        display: inline-block;
        font: inherit;
        font-size: 0.78rem;
        padding: 0.35rem 0.8rem;
    }

    .site-navigation {
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        border-top: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        left: 0;
        padding: 0.5rem 1.15rem;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 10;
    }

    .site-navigation a {
        padding: 0.8rem 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1.25rem;
    }
}

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