:root {
    color-scheme: light;
    --paper: #faf6ef;
    --ink: #211d1a;
    --body: #3f3934;
    --muted: #625c54;
    --rust: #91442e;
    --rule: #c8bfb2;
    --serif: "Baskervville", "Iowan Old Style", "Baskerville", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font: 1rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--rust);
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
}

a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }

.masthead, .site-footer {
    width: min(88%, 74rem);
    margin-inline: auto;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .7rem;
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
    font: 500 clamp(1.45rem, 2.4vw, 2rem)/1 var(--serif);
    letter-spacing: -.045em;
    text-decoration: none;
}

.wordmark img { width: 2.5rem; height: 2.5rem; border-radius: 22%; }
.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.masthead nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--ink);
    font-size: .93rem;
    text-decoration: none;
}

.masthead nav a:hover, .masthead nav [aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--rust);
    text-underline-offset: .55em;
}

.page {
    width: min(88%, 44rem);
    margin: clamp(2.75rem, 6vw, 5.5rem) auto clamp(3.25rem, 7vw, 6rem);
    flex: 1;
}

.page-title {
    margin: 0 0 1.5rem;
    color: var(--ink);
    font: italic 400 clamp(2.75rem, 6vw, 5.1rem)/1.04 var(--serif);
    letter-spacing: -.055em;
    overflow-wrap: break-word;
}

.updated, .last-updated, .effective-date {
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-size: .9rem;
}

.page h2 {
    margin: 2.25rem 0 .65rem;
    color: var(--ink);
    font: 500 clamp(1.45rem, 3vw, 1.9rem)/1.22 var(--serif);
    letter-spacing: -.025em;
}

.page h3 {
    margin: 1.5rem 0 .35rem;
    color: var(--ink);
    font: 650 1rem/1.4 var(--sans);
}

.page p { margin: 0 0 1rem; }
.page .updated, .page .last-updated, .page .effective-date { margin-bottom: 2rem; }
.page ul { margin: .75rem 0 1.25rem; padding-left: 1.35rem; }
.page li + li { margin-top: .55rem; }
.page strong { color: var(--ink); }
.highlight { border-left: 2px solid var(--rust); padding-left: 1.1rem; }

.support-page { max-width: 38rem; }
.intro { padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.intro h2 { margin-top: 0; }
.contact-form { margin: 2rem 0 1.25rem; }
.contact-form label { display: block; margin-bottom: .35rem; color: var(--ink); font-weight: 600; }

.contact-form input, .contact-form select, .contact-form textarea {
    display: block;
    width: 100%;
    min-height: 2.85rem;
    margin-bottom: 1.1rem;
    padding: .65rem .8rem;
    border: 1px solid #837b70;
    border-radius: .25rem;
    background: #fffdf9;
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
}

.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form button {
    min-height: 2.85rem;
    padding: .7rem 1.4rem;
    border: 1px solid var(--ink);
    border-radius: .25rem;
    background: var(--ink);
    color: white;
    font: 600 .97rem/1.4 var(--sans);
    cursor: pointer;
}

.contact-form button:hover { background: #433930; }
.email-fallback { font-size: .95rem; }
.site-footer {
    margin-top: auto;
    padding: 1.35rem 0 2rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: .87rem;
}

.site-footer a { display: inline-block; padding: .2rem .15rem; }
@media (max-width: 32rem) {
    .masthead, .site-footer, .page { width: calc(100% - 2rem); }
    .masthead { flex-wrap: wrap; gap: .15rem .8rem; }
    .wordmark { gap: .45rem; }
    .wordmark img { width: 2rem; height: 2rem; }
    .masthead nav { gap: .85rem; }
    .masthead nav a { font-size: .84rem; }
}

@media print {
    body { background: white; }
    .masthead, .site-footer { display: none; }
    .page { width: 100%; margin: 0; }
    .page h2, .page h3 { break-after: avoid; }
}
