:root {
    --acasf-ink: #17211f;
    --acasf-muted: #6e746d;
    --acasf-paper: #f7f2e8;
    --acasf-linen: #fffaf0;
    --acasf-border: #ded7c7;
    --acasf-clay: #a2482e;
    --acasf-gold: #d79b29;
    --acasf-moss: #63764b;
    --acasf-river: #1f5361;
    --acasf-midnight: #122137;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(18, 33, 55, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 33, 55, 0.035) 1px, transparent 1px),
        var(--acasf-paper);
    background-size: 36px 36px;
    color: var(--acasf-ink);
}

a,
button,
input,
select,
textarea {
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(222, 215, 199, 0.88);
    background: rgba(255, 250, 240, 0.92);
    backdrop-filter: blur(18px);
}

.site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    flex: 1;
    padding: 32px 0 48px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border: 1px solid var(--acasf-border);
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    object-fit: contain;
}

.brand-title {
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--acasf-midnight);
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--acasf-muted);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #39433f;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(31, 83, 97, 0.1);
    color: var(--acasf-river);
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--acasf-border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--acasf-midnight);
    background: rgba(255, 255, 255, 0.52);
}

.mobile-menu {
    border-top: 1px solid var(--acasf-border);
    padding: 10px 16px 16px;
    background: rgba(255, 250, 240, 0.98);
}

.mobile-menu .nav-link,
.mobile-menu .btn {
    width: 100%;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--acasf-river);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--acasf-midnight);
    color: white;
}

.btn-dark {
    background: var(--acasf-midnight);
    color: white;
}

.btn-dark:hover,
.btn-dark:focus-visible {
    background: #080f1c;
    color: white;
}

.btn-ghost {
    border-color: var(--acasf-border);
    background: rgba(255, 250, 240, 0.7);
    color: var(--acasf-ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--acasf-river);
    color: var(--acasf-river);
    background: white;
}

.btn-success {
    background: #477456;
    color: white;
}

.btn-danger {
    background: #ad3838;
    color: white;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: #842626;
    color: white;
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.74rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(162, 72, 46, 0.25);
    border-radius: 999px;
    background: rgba(162, 72, 46, 0.09);
    padding: 6px 10px;
    color: var(--acasf-clay);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-title,
.section-title {
    font-family: "Fraunces", serif;
    color: var(--acasf-midnight);
}

.page-title {
    font-size: clamp(2.15rem, 4vw, 4.7rem);
    line-height: 0.98;
}

.section-title {
    font-size: clamp(1.65rem, 2vw, 2.35rem);
    line-height: 1.08;
}

.muted {
    color: var(--acasf-muted);
}

.hero-editorial {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--acasf-border);
    border-radius: 8px;
    background: var(--acasf-linen);
}

.hero-editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(215, 155, 41, 0.13), transparent 38%, rgba(31, 83, 97, 0.12));
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 5vw, 56px);
}

.hero-mosaic {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 10px;
    min-height: 460px;
    padding: 14px;
}

.hero-mosaic img {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 8px;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.02);
}

.hero-mosaic-stack {
    display: grid;
    gap: 10px;
}

.quick-stat {
    border-left: 3px solid var(--acasf-gold);
    padding-left: 12px;
}

.quick-stat strong {
    display: block;
    color: var(--acasf-midnight);
    font-size: 1.35rem;
    line-height: 1;
}

.card,
.panel {
    border: 1px solid var(--acasf-border);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.88);
    box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
}

.panel {
    padding: clamp(20px, 3vw, 32px);
}

.topic-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 254px;
    border: 1px solid rgba(18, 33, 55, 0.18);
    border-radius: 8px;
    background: var(--acasf-midnight);
    color: white;
    box-shadow: 0 14px 32px rgba(23, 33, 31, 0.14);
}

.topic-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transform: scale(1.01);
    transition: transform 520ms ease, opacity 520ms ease;
}

.topic-card:hover img {
    opacity: 0.9;
    transform: scale(1.055);
}

.topic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 33, 55, 0.1), rgba(18, 33, 55, 0.88));
}

.topic-card-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 18px;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.post-card-title {
    font-family: "Fraunces", serif;
    color: var(--acasf-midnight);
    font-size: 1.55rem;
    line-height: 1.08;
}

.post-card-title a:hover {
    color: var(--acasf-clay);
}

.tag,
.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.tag {
    background: rgba(31, 83, 97, 0.11);
    color: var(--acasf-river);
}

.tag-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-approved {
    background: rgba(71, 116, 86, 0.13);
    color: #356345;
}

.status-pending {
    background: rgba(215, 155, 41, 0.18);
    color: #835e19;
}

.status-rejected {
    background: rgba(173, 56, 56, 0.12);
    color: #983131;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--acasf-ink);
    font-size: 0.84rem;
    font-weight: 800;
}

.form-field {
    width: 100%;
    border-color: var(--acasf-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    min-height: 42px;
    padding: 9px 12px;
}

.form-field:focus {
    border-color: var(--acasf-river);
    box-shadow: 0 0 0 3px rgba(31, 83, 97, 0.16);
}

.table-list {
    display: grid;
    gap: 14px;
}

.admin-card {
    padding: 18px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(222, 215, 199, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.44);
    padding: 9px 10px;
    color: var(--acasf-muted);
}

.alert {
    border: 1px solid var(--acasf-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.86rem;
    box-shadow: 0 8px 22px rgba(23, 33, 31, 0.08);
}

.alert-success {
    border-color: rgba(71, 116, 86, 0.28);
    background: #edf6ee;
    color: #285137;
}

.alert-error {
    border-color: rgba(173, 56, 56, 0.26);
    background: #fff0eb;
    color: #943535;
}

.alert.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
}

.flash-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
}

.site-footer {
    border-top: 1px solid var(--acasf-border);
    background: rgba(255, 250, 240, 0.82);
}

@media (max-width: 900px) {
    .site-main {
        width: min(100% - 24px, 1180px);
        padding-top: 22px;
    }

    .hero-mosaic {
        min-height: 280px;
        grid-template-columns: 1fr;
    }

    .hero-mosaic-stack {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .brand-title {
        font-size: 1.04rem;
    }

    .brand-subtitle {
        display: none;
    }

    .page-title {
        font-size: 2.35rem;
    }

    .hero-mosaic {
        display: none;
    }

    .btn {
        white-space: normal;
    }
}
