:root {
    --paper: #f3ecdf;
    --paper-deep: #e7dccb;
    --ink: #2a231c;
    --ink-soft: #5a5046;
    --brass: #8c6840;
    --brass-deep: #6e4e2c;
    --walnut: #3a2d24;
    --line: #d9cbb8;
    --header-h: 4.6rem;
    --measure: 1120px;
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    hyphens: none;
    -webkit-hyphens: none;
}

::selection {
    background: #e4d0b0;
    color: var(--ink);
}

img {
    max-width: 100%;
}

figure {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 50;
    background: var(--ink);
    color: var(--paper);
    padding: 0.45rem 0.8rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.6rem;
}

:focus-visible {
    outline: 2px solid var(--brass-deep);
    outline-offset: 3px;
}

.wrap {
    width: min(var(--measure), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 236, 223, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    position: relative;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    z-index: 1;
}

.brand-mark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.85rem;
    line-height: 1;
    color: var(--brass-deep);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-role {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.site-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0 0.28rem;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brass-deep);
    border-bottom-color: var(--brass);
}

.lang-switch {
    display: inline-flex;
    align-items: baseline;
    flex: none;
    gap: 0.38rem;
    margin: 0 0 0 auto;
    white-space: nowrap;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.lang-switch .lang-link {
    color: var(--ink-soft);
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.08em;
    padding: 0.2rem 0;
    border: 0;
    background: none;
}

.lang-switch .lang-link.is-current {
    color: var(--ink);
    font-weight: 700;
}

.lang-switch .lang-link:hover {
    color: var(--brass-deep);
}

.lang-switch .lang-link.is-current:hover {
    color: var(--ink);
}

.lang-dot {
    color: var(--brass);
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1;
}

.nav-toggle,
.nav-button {
    display: none;
}

.site-main {
    min-height: calc(100vh - 22rem);
}

.eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-deep);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    height: calc(100svh - var(--header-h));
    background: var(--paper);
    overflow: hidden;
    padding-left: max(1.25rem, calc((100% - var(--measure)) / 2));
}

.hero-copy,
.hero-photo {
    min-height: 0;
    height: 100%;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(1.25rem, 3vw, 3rem) 2rem 0;
}

.hero h1 {
    margin: 0.45rem 0 0.35rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.hero-role {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    color: var(--brass-deep);
}

.hero-kamara {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    max-width: 24rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.hero-photo {
    background: #cbbba3;
    overflow: hidden;
    min-height: 0;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 34% 2%;
    display: block;
}

.section {
    padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.alongside {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    align-items: start;
    background: var(--paper);
    padding-left: max(1.25rem, calc((100% - var(--measure)) / 2));
}

.alongside-copy {
    padding: clamp(2.4rem, 6vh, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.4rem, 6vh, 4.5rem) 0;
}

.alongside-photo {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    min-height: 28rem;
    background: #cbbba3;
    overflow: hidden;
}

.alongside-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 42%;
    display: block;
}

.prose p,
.person p {
    margin: 0 0 1.05rem;
}

.prose .lede {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 2.5vw, 2.05rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--walnut);
}

.pull {
    margin: 1.6rem 0 0.4rem;
    padding: 0.15rem 0 0.15rem 1.15rem;
    border-left: 1px solid var(--brass);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    line-height: 1.28;
    color: var(--walnut);
}

.pull + p {
    margin-top: 1.15rem;
}

.portrait img {
    position: absolute;
    /* Same inset as the monogram's inner line: 14 units on the 240×320 viewBox. */
    top: calc(14 / 320 * 100%);
    left: calc(14 / 240 * 100%);
    width: calc(100% - 2 * 14 / 240 * 100%);
    height: calc(100% - 2 * 14 / 320 * 100%);
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.portrait:has(img)::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    top: calc(14 / 320 * 100%);
    right: calc(14 / 240 * 100%);
    bottom: calc(14 / 320 * 100%);
    left: calc(14 / 240 * 100%);
    border: 1px solid #c9b79a;
    box-sizing: border-box;
}

.text-link {
    display: inline-block;
    color: var(--brass-deep);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--brass);
    padding-bottom: 0.12rem;
}

.text-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.hours {
    display: grid;
    gap: 1.2rem;
    margin: 1.6rem 0 0;
}

.hours dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-deep);
}

.hours dd {
    margin: 0.1rem 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.25;
    font-weight: 500;
}

.hours a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--brass);
}

.page-head {
    padding: clamp(2.4rem, 6vw, 4.2rem) 0 0;
}

.page-head .wrap {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.page-head h1,
.prose h1 {
    margin: 0.2rem 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.areas-section {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}

.area {
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
}

.area-index {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    color: var(--brass);
    line-height: 1;
}

.area h2 {
    margin: 0.25rem 0 0.9rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.area li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(217, 203, 184, 0.85);
    color: var(--ink-soft);
}

.people-section {
    padding-top: 0.5rem;
}

.person {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: clamp(1.4rem, 4vw, 3.2rem);
    align-items: start;
    padding: clamp(2rem, 4vw, 3.1rem) 0;
}

.person + .person {
    border-top: 1px solid var(--line);
}

.portrait {
    position: relative;
    background: #efe4d4;
    border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
}

.portrait svg {
    width: 100%;
    height: 100%;
    display: block;
}

.person h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.person .role {
    margin: 0.4rem 0 0.85rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--brass-deep);
}

.contact {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.98rem;
}

.contact a:hover {
    color: var(--brass-deep);
}

.contact svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: none;
    fill: none;
    stroke: var(--brass-deep);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.person em {
    font-style: italic;
}

.colophon {
    padding: 0.4rem 0 2.6rem;
}

.colophon .wrap {
    border-top: 1px solid var(--line);
    padding-top: 1.15rem;
}

.colophon p {
    max-width: 46rem;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.colophon-copy {
    margin-top: 0.65rem !important;
}

.colophon a {
    color: var(--brass-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 104, 64, 0.45);
}

.colophon a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.cookie-copy {
    max-width: 52rem;
    padding-bottom: 3rem;
}

.contact-section {
    padding-top: clamp(1.6rem, 3vw, 2.4rem);
    padding-bottom: 3rem;
}

.contact-intro {
    max-width: 40rem;
    margin: 0 0 1.5rem;
}

.contact-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 0.4rem;
}

.contact-people h2,
.contact-place h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.contact-place {
    display: grid;
    grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    margin-top: 0.5rem;
    padding-top: clamp(1.6rem, 3vw, 2.4rem);
    border-top: 1px solid var(--line);
}

.contact-place address {
    display: grid;
    margin: 0.8rem 0 1rem;
    font-style: normal;
    line-height: 1.45;
}

.contact-place p {
    max-width: 38rem;
}

.map-slot {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: var(--paper-deep);
    border: 1px solid var(--line);
}

.map-slot iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-load {
    border: 0;
    background: var(--walnut);
    color: var(--paper);
    font: inherit;
    padding: 0.65rem 1.15rem;
    cursor: pointer;
}

.map-note {
    margin: 0.55rem 0 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cookie-copy h2 {
    margin: 2rem 0 0.6rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 1.8rem;
}

.cookie-table {
    display: grid;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.cookie-row {
    display: grid;
    grid-template-columns: 11rem 1.3fr 0.7fr 1.1fr;
    gap: 0.8rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.45;
}

.cookie-head {
    color: var(--brass-deep);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .contact-people,
    .contact-place {
        grid-template-columns: 1fr;
    }

    .cookie-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .cookie-head {
        display: none;
    }
}

.site-footer {
    background: var(--walnut);
    color: #efe6d6;
    padding: clamp(2.5rem, 5vw, 3.6rem) 0 1.4rem;
}

.site-footer p {
    margin: 0 0 0.2rem;
}

.footer-grid {
    display: block;
}

.footer-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 0.25rem !important;
}

.footer-role {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #e4d0b0;
    margin-bottom: 0.8rem !important;
}

.footer-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e4d0b0;
    margin-bottom: 0.45rem !important;
}

.site-footer a {
    color: #f6f0e6;
    text-decoration: none;
    border-bottom: 1px solid rgba(228, 208, 176, 0.55);
}

.site-footer a:hover {
    border-bottom-color: #f6f0e6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(243, 236, 223, 0.18);
    color: rgba(243, 236, 223, 0.72);
    font-size: 0.88rem;
}

.footer-bottom nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: rgba(243, 236, 223, 0.82);
    border-bottom: none;
}

@media (max-width: 900px) {
    .hero {
        display: block;
        position: relative;
        height: auto;
        overflow: visible;
        padding-left: 0;
    }

    .hero-photo {
        height: 72svh;
    }

    .hero-copy {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        padding: 4.5rem 1.25rem 1.4rem;
        background: linear-gradient(to top, rgba(28, 22, 16, 0.82) 0%, rgba(28, 22, 16, 0.28) 62%, transparent 100%);
    }

    .hero h1,
    .hero-role,
    .hero-kamara,
    .hero .eyebrow {
        color: #f6f0e6;
    }

    .hero-kamara {
        border-top-color: rgba(246, 240, 230, 0.35);
        max-width: none;
    }

    .alongside {
        display: block;
        padding-left: 0;
    }

    .alongside-photo {
        position: static;
        height: 52vh;
        min-height: 0;
    }

    .alongside-copy {
        padding: 2rem 1rem 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .areas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-bar {
        gap: 0.75rem;
    }

    .lang-switch {
        display: inline-flex;
        margin-right: 0.15rem;
        font-size: 0.75rem;
        order: 1;
    }

    .nav-button {
        order: 2;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

    .nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        cursor: pointer;
    }

    .nav-bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 22px;
    }

    .nav-bars span {
        display: block;
        height: 1.5px;
        background: var(--ink);
        transform-origin: center;
    }

    .nav-toggle:checked + .nav-button .nav-bars span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-button .nav-bars span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-button .nav-bars span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .nav-toggle:focus-visible + .nav-button {
        outline: 2px solid var(--brass-deep);
        outline-offset: 3px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.35rem 1rem 0.9rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--line);
    }

    .person {
        grid-template-columns: 1fr;
    }

    .portrait {
        max-width: 190px;
    }

    .brand-role {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.admin-site {
    min-height: 100vh;
}

.admin-wrap {
    width: min(1280px, calc(100% - 2rem));
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.15rem;
    margin-left: 1.5rem;
}

.admin-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0 0.28rem;
    border-bottom: 1px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--brass-deep);
    border-bottom-color: var(--brass);
}

.admin-langbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.6rem;
    margin: 0 0 1.4rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.admin-langbar > p {
    margin: 0;
    color: var(--brass-deep);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-langbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-langbar li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.admin-langbar .is-muted {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.admin-langbar button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
}

.admin-langbar button:hover {
    border-color: var(--brass);
    color: var(--brass-deep);
}

.admin-columns label.is-off textarea,
.admin-panel > .admin-columns span.is-off {
    opacity: 0.45;
}

.admin-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.admin-back {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-logout {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.admin-logout:hover {
    color: var(--brass-deep);
}

.admin-back:hover {
    color: var(--brass-deep);
}

.admin-main {
    padding: 2.2rem 0 6rem;
}

.admin-main h1,
.admin-group h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

.admin-main h1 {
    margin: 0 0 0.35rem;
    font-size: 2.4rem;
}

.admin-login {
    max-width: 26rem;
    margin: 3rem auto;
}

.admin-login form,
.admin-editor-head {
    display: flex;
    gap: 1rem;
}

.admin-login form {
    flex-direction: column;
    margin-top: 1.25rem;
}

.admin-login label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-login input,
.admin-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 0.55rem 0.7rem;
}

.admin-login button,
.admin-savebar button,
.admin-quiet {
    border: 0;
    background: var(--walnut);
    color: var(--paper);
    font: inherit;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
}

.admin-quiet {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.admin-editor-head {
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.admin-editor-head p:not(.eyebrow),
.admin-login p {
    margin: 0;
    color: var(--ink-soft);
}

.admin-alert,
.admin-note {
    padding: 0.7rem 0.9rem;
    margin: 0 0 1rem;
}

.admin-alert {
    background: #f3ddd4;
}

.admin-note {
    background: #e5ead8;
}

.admin-tabbar {
    position: sticky;
    top: var(--header-h);
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 1.15rem;
    margin: 0 0 0.4rem;
    padding: 0.85rem 0 0;
    background: rgba(243, 236, 223, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.admin-tab-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-tabbar label {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 0 0.7rem;
    border-bottom: 1px solid transparent;
    cursor: pointer;
}

.admin-tabbar label:hover {
    color: var(--brass-deep);
}

.admin-tab-radio:focus-visible + label {
    outline: 2px solid var(--brass-deep);
    outline-offset: 3px;
}

.admin-panel {
    display: none;
}

.admin-editor:has(#ful-0:checked) .admin-panel[data-panel="0"],
.admin-editor:has(#ful-1:checked) .admin-panel[data-panel="1"],
.admin-editor:has(#ful-2:checked) .admin-panel[data-panel="2"],
.admin-editor:has(#ful-3:checked) .admin-panel[data-panel="3"],
.admin-editor:has(#ful-4:checked) .admin-panel[data-panel="4"],
.admin-editor:has(#ful-5:checked) .admin-panel[data-panel="5"],
.admin-editor:has(#ful-6:checked) .admin-panel[data-panel="6"],
.admin-editor:has(#ful-7:checked) .admin-panel[data-panel="7"],
.admin-editor:has(#ful-8:checked) .admin-panel[data-panel="8"],
.admin-editor:has(#ful-9:checked) .admin-panel[data-panel="9"],
.admin-editor:has(#ful-10:checked) .admin-panel[data-panel="10"],
.admin-editor:has(#ful-11:checked) .admin-panel[data-panel="11"] {
    display: block;
}

.admin-editor:has(#ful-0:checked) label[for="ful-0"],
.admin-editor:has(#ful-1:checked) label[for="ful-1"],
.admin-editor:has(#ful-2:checked) label[for="ful-2"],
.admin-editor:has(#ful-3:checked) label[for="ful-3"],
.admin-editor:has(#ful-4:checked) label[for="ful-4"],
.admin-editor:has(#ful-5:checked) label[for="ful-5"],
.admin-editor:has(#ful-6:checked) label[for="ful-6"],
.admin-editor:has(#ful-7:checked) label[for="ful-7"],
.admin-editor:has(#ful-8:checked) label[for="ful-8"],
.admin-editor:has(#ful-9:checked) label[for="ful-9"],
.admin-editor:has(#ful-10:checked) label[for="ful-10"],
.admin-editor:has(#ful-11:checked) label[for="ful-11"] {
    color: var(--brass-deep);
    border-bottom-color: var(--brass);
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-panel > .admin-columns {
    position: sticky;
    top: calc(var(--header-h) + 3.15rem);
    z-index: 2;
    padding: 0.7rem 0 0.45rem;
    background: var(--paper);
    color: var(--brass-deep);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-row {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.admin-key {
    margin: 0 0 0.35rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.admin-lang {
    display: none;
}

.admin-row textarea {
    display: block;
    resize: vertical;
    line-height: 1.45;
}

.admin-savebar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0.8rem 0;
    background: linear-gradient(transparent, var(--paper) 30%);
}

.stat-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2.2rem;
    padding: 0;
    list-style: none;
}

.stat-board li {
    padding: 1.1rem 1.2rem 1rem;
    border-top: 1px solid var(--brass);
    background: rgba(255, 253, 248, 0.45);
}

.stat-board strong {
    display: block;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-board span,
.admin-main h2 {
    color: var(--ink-soft);
}

.admin-main h2 {
    margin: 1.6rem 0 0.4rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
}

.stat-chart {
    margin: 0.4rem 0 1.4rem;
}

.stat-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.stat-chart line {
    stroke: var(--line);
    stroke-width: 1;
}

.stat-chart polyline {
    fill: none;
    stroke: var(--brass-deep);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.stat-chart polygon {
    fill: rgba(140, 104, 64, 0.16);
    stroke: none;
}

.stat-chart a {
    cursor: pointer;
}

.stat-chart rect.slot {
    fill: transparent;
}

.stat-chart a:hover rect.slot,
.stat-chart rect.slot.is-selected {
    fill: rgba(140, 104, 64, 0.12);
}

.stat-chart circle {
    fill: var(--paper);
    stroke: var(--brass-deep);
    stroke-width: 2;
}

.stat-chart circle.is-selected {
    fill: var(--brass-deep);
}

.stat-chart text {
    fill: var(--ink-soft);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 12px;
}

.stat-chart figcaption {
    margin-top: 0.35rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.stat-months {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.8rem;
    margin: 0.6rem 0 1.4rem;
}

.stat-month h3 {
    margin: 0 0 0.55rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
}

.stat-cal {
    display: grid;
    grid-template-columns: repeat(7, 2.45rem);
    gap: 0.2rem;
    text-align: center;
}

.stat-cal .wd {
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.8rem;
}

.stat-cal a,
.stat-cal span:not(.wd) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.15rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.stat-cal .has-views,
.stat-cal .is-empty {
    color: #1a1a1a;
}

.stat-cal .is-selected {
    outline: 1px solid var(--brass);
    outline-offset: -1px;
    font-weight: 700;
}

.stat-cal .is-outside {
    color: #cfc3b2;
}

a.stat-row {
    color: inherit;
    text-decoration: none;
}

a.stat-row:hover,
a.stat-row.is-selected {
    background: rgba(140, 104, 64, 0.1);
}

.stat-empty {
    margin: 0.4rem 0 0;
    color: var(--ink-soft);
}

.stat-table {
    border-top: 1px solid var(--line);
}

.stat-row {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.8fr);
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.stat-pages .stat-row {
    grid-template-columns: 1fr 8rem;
}

.stat-head {
    color: var(--brass-deep);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-label {
    display: none;
}

@media (max-width: 800px) {
    .admin-columns,
    .admin-panel > .admin-columns {
        grid-template-columns: 1fr;
    }

    .admin-panel > .admin-columns {
        display: none;
    }

    .admin-editor-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-site .header-bar {
        flex-wrap: wrap;
    }

    .admin-nav {
        order: 3;
        flex: 1 0 100%;
        margin: 0.2rem 0 0;
        justify-content: flex-start;
    }

    .stat-board {
        grid-template-columns: 1fr;
    }

    .stat-head {
        display: none;
    }

    .stat-row,
    .stat-pages .stat-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .stat-label {
        display: inline;
        margin-right: 0.4rem;
        color: var(--brass-deep);
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .admin-lang {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--brass-deep);
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
}
