:root {
    --paper: #f4efe6;
    --paper-deep: #e6dece;
    --card: #fffdf8;
    --ink: #121614;
    --ink-soft: #24302a;
    --green: #0c2820;
    --green-mid: #164538;
    --brass: #5e4016;
    --line: #c9bfae;
    --wine: #8d2030;
    --wine-deep: #641622;
    --cream: #fff8ee;
    --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --text: "Newsreader", "Iowan Old Style", Georgia, serif;
    --ui: "Outfit", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", "Consolas", monospace;
    --measure: 74rem;
}

* { box-sizing: border-box; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
    margin: 0;
    background: #B0B0EB;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 400;
}

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

a { color: var(--green-mid); }

a:hover { color: var(--wine); }

:focus-visible {
    outline: 3px solid var(--wine);
    outline-offset: 3px;
}

.age-bar {
    background: var(--wine-deep);
    color: var(--cream);
    font-family: var(--ui);
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 500;
}

.age-bar p {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}

.age-bar strong {
    font-family: var(--mono);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin-right: 0.35rem;
}

.age-bar a {
    color: #ffe8a3;
    font-weight: 600;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    background: rgba(244, 239, 230, 0.96);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--green);
    min-width: 0;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.brand strong {
    display: block;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.brand em {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--ui);
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--brass);
}

.menu-btn {
    display: none;
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    background: var(--green);
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.site-nav {
    flex: 1 1 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem;
}

a.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.55rem 1.1rem;
    background: #0c2820;
    color: #fff8ee;
    text-decoration: none;
    border: 2px solid #0c2820;
    border-radius: 8px;
    box-shadow: 0 2px 0 #081c17;
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

a.nav-btn:hover,
a.nav-btn.is-active,
a.nav-btn[aria-current="page"] {
    background: #8d2030;
    border-color: #8d2030;
    color: #fff8ee;
}

.ico {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    flex: none;
}

.icon-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.8rem 0 0;
    padding: 0;
}

.icon-row li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.95rem 0.35rem 0.35rem;
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
}

.ico-badge {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--green);
    color: #f3d48a;
    display: grid;
    place-items: center;
}

.ico-badge .ico {
    width: 1.15rem;
    height: 1.15rem;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.view { display: none; }
.view.is-on { display: block; }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.kicker {
    font-family: var(--ui);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 0.8rem;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--green);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
}

h1 {
    font-size: clamp(2.7rem, 5.6vw, 4.7rem);
}

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

h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); }

h3 { font-size: 1.7rem; }

.lede {
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--ink);
    max-width: 38rem;
}

.note {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

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

.btn {
    display: inline-block;
    font-family: var(--ui);
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 1.2rem;
    border-radius: 4px;
    border: 2px solid var(--green);
}

.btn-solid {
    background: var(--green);
    color: var(--cream);
}

.btn-solid:hover { background: var(--wine); border-color: var(--wine); color: white; }

.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }

.photo {
    margin: 0;
}

.photo img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.photo figcaption {
    margin-top: 0.55rem;
    font-family: var(--ui);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
    align-items: start;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.5rem 1.5rem;
}

.panel-sand { background: var(--paper-deep); }

.rule {
    width: 4.5rem;
    height: 4px;
    background: var(--wine);
    border: 0;
    margin: 0 0 1rem;
}

ul.clean, ol.clean {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

ul.clean li, ol.clean li {
    position: relative;
    padding-left: 1.2rem;
    margin: 0.7rem 0;
}

ul.clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--wine);
}

.score {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--wine-deep);
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.operator {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 5px solid var(--green);
    border-radius: 8px;
    padding: 1.35rem 1.35rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.operator header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
}

.card-mark {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 12px;
    background: var(--green);
    color: #f3d48a;
    display: grid;
    place-items: center;
}

.card-mark .ico {
    width: 1.65rem;
    height: 1.65rem;
}

.operator h2 { font-size: 2.15rem; }

.meta {
    font-family: var(--mono);
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
}

th, td {
    text-align: left;
    padding: 0.8rem 0.7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-family: var(--ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.band {
    margin-top: 3rem;
    background: var(--green);
    color: var(--cream);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
}

.band h2, .band h3 { color: var(--cream); }

.band p { color: #f6efe4; font-size: 1.12rem; }

.band a { color: #ffe8a3; font-weight: 600; }

.help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    font-family: var(--ui);
    font-size: 1.05rem;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
}

.faq summary {
    font-family: var(--display);
    font-size: 1.45rem;
    color: var(--green);
    cursor: pointer;
}

.faq p { margin-bottom: 0.2rem; }

.site-footer {
    background: #10241e;
    color: #f4efe6;
    font-size: 1.05rem;
}

.site-footer a { color: #ffe8a3; }

.footer-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2rem 1.25rem 2.4rem;
}

.license-statement {
    background: #1c3a30;
    border-left: 5px solid #ffe8a3;
    padding: 0.9rem 1rem;
    margin: 0 0 1.4rem;
    font-family: var(--ui);
    font-size: 1.05rem;
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
}

.site-footer h2 {
    font-size: 1.15rem;
    color: #fff;
    font-family: var(--ui);
    letter-spacing: 0;
    margin-bottom: 0.45rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0.35rem 0; }

.tiny {
    margin-top: 1.4rem;
    font-family: var(--ui);
    font-size: 0.95rem;
    color: #d9d0c2;
}

.page-intro { max-width: 46rem; margin-bottom: 1.6rem; }

.prose p { font-size: 1.15rem; }

.prose h2 { margin: 1.8rem 0 0.6rem; }

@media (max-width: 860px) {
    html { font-size: 17px; }

    .menu-btn { display: inline-block; }

    .site-header {
        position: sticky;
        flex-wrap: nowrap;
        align-items: center;
    }

    #site-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0.75rem;
        right: 0.75rem;
        z-index: 40;
        flex: none;
        width: auto;
        margin: 0;
        padding: 0.55rem;
        background: #10241e;
        border-radius: 12px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .site-header.menu-open #site-nav {
        display: grid !important;
    }

    a.nav-btn {
        width: 100%;
        min-height: 2.45rem;
        padding: 0.4rem 0.55rem;
        background: #fff8ee;
        color: #0c2820;
        border-color: #fff8ee;
        box-shadow: none;
        font-size: 0.95rem;
    }

    a.nav-btn:hover,
    a.nav-btn.is-active,
    a.nav-btn[aria-current="page"] {
        background: #f3d48a;
        border-color: #f3d48a;
        color: #0c2820;
    }

    .hero, .split, .cards, .footer-grid {
        grid-template-columns: 1fr;
    }
}
