:root {
    --color-bg: #0f1116;
    --color-surface: #171b22;
    --color-surface-strong: #202631;
    --color-text: #f3efe7;
    --color-muted: #b8b0a3;
    --color-line: rgba(255, 255, 255, 0.12);
    --color-accent: #e7382f;
    --color-accent-strong: #ff5a3d;
    --color-sand: #f0e6d2;
    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shell: min(1160px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -120px;
    z-index: 9999;
    padding: 10px 14px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
}

.skip-link:focus {
    top: 16px;
}

.section-shell {
    width: var(--shell);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-line);
    background: rgba(15, 17, 22, 0.88);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--color-text);
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-accent), #8f1717);
    box-shadow: 0 12px 34px rgba(231, 56, 47, 0.28);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand__logo img {
    max-width: 180px;
    max-height: 62px;
    object-fit: contain;
}

.brand__text {
    display: grid;
    line-height: 1.15;
}

.brand__text strong {
    font-size: clamp(1rem, 2vw, 1.18rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand__text span {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.94rem;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    padding: 10px 14px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.menu--mobile {
    display: grid;
    gap: 6px;
}

.menu--mobile a {
    justify-content: flex-start;
    border-radius: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-line);
}

.hero--home {
    min-height: 650px;
    display: grid;
    align-items: center;
}

.hero--small,
.hero--page {
    padding: 90px 0 50px;
    background: radial-gradient(circle at 10% 10%, rgba(231, 56, 47, 0.23), transparent 34%), linear-gradient(135deg, #111318 0%, #1b2028 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 17, 22, 0.96) 0%, rgba(15, 17, 22, 0.72) 46%, rgba(15, 17, 22, 0.22) 100%),
        radial-gradient(circle at 70% 22%, rgba(231, 56, 47, 0.42), transparent 27%),
        linear-gradient(135deg, #161a21 0%, #090a0d 100%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: auto -10% -22% 42%;
    height: 420px;
    transform: rotate(-8deg);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 12px, transparent 12px 28px);
    opacity: 0.16;
}

.hero__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.52fr);
    align-items: center;
    gap: 44px;
    padding: 86px 0;
}

.hero__copy {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-accent-strong);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 860px;
    font-size: clamp(2.5rem, 7vw, 6.2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.hero p {
    max-width: 720px;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
}

.button--primary,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--color-accent), #ff7a3c);
    color: #fff;
    box-shadow: 0 16px 34px rgba(231, 56, 47, 0.28);
}

.button--ghost {
    border-color: var(--color-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

.text-link {
    color: var(--color-accent-strong);
    font-weight: 900;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.status-card {
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(23, 27, 34, 0.82);
    box-shadow: var(--shadow-card);
}

.status-card__label {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-card strong {
    display: block;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.status-card p {
    margin: 16px 0 0;
    font-size: 1rem;
}

.status-card small {
    display: block;
    margin-top: 16px;
    color: var(--color-sand);
    font-weight: 800;
}

.status-card--open {
    border-color: rgba(40, 190, 110, 0.42);
}

.status-card--closed {
    border-color: rgba(231, 56, 47, 0.42);
}

.status-card--limited {
    border-color: rgba(255, 190, 80, 0.42);
}

.section {
    padding: 78px 0;
}

.section--lift {
    position: relative;
    z-index: 2;
    margin-top: -80px;
    padding-top: 0;
}

.section--muted {
    background: #12151b;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quick-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.quick-card span {
    display: block;
    color: var(--color-accent-strong);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.quick-card strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.1;
}

.quick-card:hover,
.content-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: transform 180ms ease, border-color 180ms ease;
}

.content-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #252a34, #151820);
    text-decoration: none;
}

.content-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.content-card:hover .content-card__media img {
    transform: scale(1.04);
}

.media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.28);
    font-size: 1.8rem;
    font-weight: 1000;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.content-card__body {
    padding: 22px;
}

.content-card h3 a {
    text-decoration: none;
}

.content-card h3 a:hover {
    color: var(--color-accent-strong);
}

.card-meta {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.content-card__excerpt {
    color: var(--color-muted);
}

.content-card__excerpt p {
    margin-bottom: 0;
}

.event-card__date {
    display: grid;
    gap: 4px;
    padding: 22px;
    background: linear-gradient(135deg, var(--color-accent), #672020);
    color: #fff;
    text-decoration: none;
}

.event-card__date span {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-card__date strong {
    font-size: 1.8rem;
    line-height: 1;
}

.cta-band {
    padding: 0 0 86px;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border: 1px solid rgba(231, 56, 47, 0.32);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 15%, rgba(231, 56, 47, 0.24), transparent 30%),
        var(--color-surface);
    box-shadow: var(--shadow-card);
}

.cta-band__inner p {
    color: var(--color-muted);
}

.content-layout {
    padding-top: 58px;
    padding-bottom: 86px;
}

.featured-media {
    overflow: hidden;
    margin-bottom: 38px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.featured-media img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.entry-content {
    max-width: 820px;
    margin-inline: auto;
    color: #e5ded3;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.6em;
    margin-bottom: 0.55em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.1em;
}

.entry-content a {
    color: var(--color-accent-strong);
    font-weight: 800;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border: 1px solid var(--color-line);
}

.entry-content th {
    background: var(--color-surface-strong);
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.meta-line span {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-sand);
    font-weight: 800;
}

.pagination-wrap {
    margin-top: 36px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-text);
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 820px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    color: var(--color-muted);
    background: var(--color-surface);
}

.search-form {
    display: flex;
    max-width: 640px;
    gap: 10px;
    margin-top: 22px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

.search-submit {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.site-footer {
    padding: 56px 0 22px;
    border-top: 1px solid var(--color-line);
    background: #0b0d11;
    color: var(--color-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
}

.footer-kicker {
    margin: 0 0 8px;
    color: var(--color-text);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-menu {
    justify-content: end;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 800;
}

.footer-menu a:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
    font-size: 0.9rem;
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hero__content {
        grid-template-columns: 1fr;
    }

    .status-card {
        max-width: 620px;
    }

    .quick-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 720px) {
    :root {
        --shell: min(100vw - 22px, 1160px);
    }

    .site-header__inner {
        min-height: 68px;
    }

    .brand__text span {
        display: none;
    }

    .brand__logo img {
        max-width: 140px;
    }

    .hero--home {
        min-height: auto;
    }

    .hero__content {
        padding: 54px 0 104px;
    }

    .hero--small,
    .hero--page {
        padding: 58px 0 38px;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading,
    .cta-band__inner,
    .footer-grid,
    .footer-bottom {
        display: grid;
        align-items: start;
    }

    .quick-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: 122px;
    }

    .content-card__body,
    .event-card__date {
        padding: 18px;
    }

    .cta-band__inner {
        padding: 24px;
    }

    .search-form {
        display: grid;
    }

    .post-nav {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
