:root {
    --pico-background-color: #0a0a0a;
    --pico-card-background-color: #111;
    --pico-primary: #cc2200;
    --pico-primary-hover: #e62800;
    --pico-primary-focus: rgba(204, 34, 0, 0.25);
    --pico-color: #e8e8e8;
    --pico-muted-color: #888;
    --pico-border-color: #222;
    --pico-font-family: 'Inter', system-ui, sans-serif;
    --pico-font-size: 16px;
    --pico-line-height: 1.6;
    --pico-border-radius: 0;
    --font-display: 'Anton', sans-serif;
}

/* ─── Typography ─────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    color: #fff;
}

h1 {
    font-size: 3rem;
    text-shadow: 4px 3px 0 var(--pico-primary);
}
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        text-shadow: 3px 2px 0 var(--pico-primary);
    }
    h2 { font-size: 1.6rem; }
}

/* ─── Header ─────────────────────────────────────────── */

header {
    background: #0d0a08;
    border-bottom: 3px solid #cc2200;
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner nav {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.header-inner nav ul li {
    padding: 0;
}

a.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

a.brand::after {
    content: "EST. MMXXV";
    font-family: 'Big Shoulders Stencil Display', sans-serif;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    background: #cc2200;
    color: #fff;
    padding: 0.18rem 0.45rem 0.13rem;
    align-self: flex-end;
    margin-bottom: 0.15rem;
}

a.brand:hover {
    color: #cc2200 !important;
    background: transparent !important;
}

.desktop-nav {
    gap: 0;
}

nav ul li a {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    padding: 0.65rem 1.1rem;
    transition: color 0.15s, background 0.15s;
}

nav ul li a:hover {
    color: #fff;
}

nav a:focus-visible,
.nav-dropdown-toggle:focus-visible {
    outline: 2px solid var(--pico-primary);
    outline-offset: 2px;
    color: #fff;
}

.desktop-nav > li > a:not(.nav-cta) {
    position: relative;
}

.desktop-nav > li > a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0;
    height: 3px;
    background: var(--pico-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease-out;
}

.desktop-nav > li > a:not(.nav-cta):hover::after,
.desktop-nav > li > a:not(.nav-cta):focus-visible::after,
.desktop-nav > li > a[aria-current="page"]::after,
.desktop-nav > li.nav-dropdown.open > a::after {
    transform: scaleX(1);
}

.desktop-nav > li.nav-dropdown > a::after {
    right: 0.4rem;
}

.nav-cta {
    background: var(--pico-primary);
    color: #fff !important;
    margin-left: 0.4rem;
}

.nav-cta:hover {
    background: var(--pico-primary-hover) !important;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-dropdown > a {
    padding-right: 0.4rem;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0.65rem 0.9rem 0.65rem 0.35rem;
    color: #777;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

.nav-dropdown-toggle span {
    display: inline-block;
    transition: transform 0.2s ease-out;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: #fff;
}

.nav-dropdown.open .nav-dropdown-toggle span {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0d0a08;
    border: 1px solid #1a1a1a;
    border-top: 3px solid var(--pico-primary);
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 100;
    flex-direction: column !important;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.2rem;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #aaa;
    transition: color 0.12s, background 0.12s;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:focus-visible {
    background: transparent !important;
    color: var(--pico-primary) !important;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

.mobile-menu-toggle {
    display: none !important;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .mobile-menu-toggle label {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        color: #fff;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: #0d0a08;
        z-index: 300;
        overflow-y: auto;
        padding: 0;
        background-image:
            url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    }

    #mobile-menu:checked ~ .mobile-nav {
        display: block;
    }

    .mobile-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.25rem;
        line-height: 1;
        color: #fff;
        cursor: pointer;
        min-width: 48px;
        min-height: 48px;
        padding: 0.5rem 0.95rem;
        background: transparent;
        transition: color 0.15s;
    }

    .mobile-close:active,
    .mobile-close:hover {
        color: var(--pico-primary);
    }

    .mobile-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin: 4.25rem 0 0;
        min-height: 64px;
        padding: 1.4rem 1.75rem;
        background: var(--pico-primary);
        color: #fff !important;
        text-decoration: none !important;
        font-family: var(--font-display);
        font-size: 1.5rem;
        line-height: 1;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--pico-primary-hover);
    }

    .mobile-cta-arrow {
        font-family: var(--pico-font-family);
        font-weight: 400;
        font-size: 1.5rem;
    }

    .mobile-cta:active {
        background: var(--pico-primary-hover) !important;
    }

    .mobile-primary {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-primary > li {
        list-style: none;
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .mobile-primary > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 56px;
        padding: 1.4rem 1.75rem;
        font-family: var(--font-display);
        font-size: 1.5rem;
        line-height: 1;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #fff;
        text-decoration: none;
        transition: background 0.12s;
    }

    .mobile-primary > li > a:active {
        background: rgba(204, 34, 0, 0.14);
    }

    .mobile-sub {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid #1a1a1a;
    }

    .mobile-sub li {
        list-style: none;
        width: 100%;
        border-bottom: 1px solid #1a1a1a;
    }

    .mobile-sub li:last-child {
        border-bottom: none;
    }

    .mobile-sub li a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 1rem 1.75rem;
        border-left: 3px solid var(--pico-primary);
        font-family: var(--font-display);
        font-size: 1.05rem;
        line-height: 1.1;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #c8c8c8;
        text-decoration: none;
        transition: background 0.12s, color 0.12s;
    }

    .mobile-sub li a:active {
        background: rgba(204, 34, 0, 0.14);
        color: #fff;
    }
}

/* ─── Main content ───────────────────────────────────── */

main {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* ─── Home page ──────────────────────────────────────── */

.home-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-tagline {
    color: #888;
    font-size: 1.1rem;
    margin-top: -0.25rem;
}

.home-photo {
    margin-bottom: 2.5rem;
    aspect-ratio: 3 / 1;
    background-size: cover;
    background-color: #111;
    border-radius: 0;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

.home-section {
    background: #111;
    border-radius: 0;
    padding: 1.5rem;
}

.home-section h2 {
    border-bottom: 1px solid #222;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.home-section-text {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.home-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-link-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    background: #cc2200;
    color: #fff;
    transition: background 0.15s;
}

.home-link-btn:hover {
    background: #e62800;
}

.home-link-btn-outline {
    background: transparent;
    border: 1px solid #cc2200;
    color: #cc2200;
}

.home-link-btn-outline:hover {
    background: #cc2200;
    color: #fff;
}

.home-see-all {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cc2200;
    text-decoration: none;
    margin-top: 0.5rem;
}

.home-see-all:hover {
    color: #e62800;
}

.home-section article {
    border-left: 2px solid #222;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
    background: #161616;
}

.home-section article:hover {
    border-color: #cc2200;
}

.home-section article h2 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.home-section .home-links {
    flex-direction: column;
}

/* ─── Article cards ──────────────────────────────────── */

article {
    border-left: 3px solid #cc2200;
    padding: 1rem 1rem 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #111;
    border-radius: 0;
    transition: background 0.15s, border-color 0.15s;
}

article:hover {
    background: #161616;
    border-color: #e62800;
}

article h2 {
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
}

article h2 a {
    color: #fff;
    text-decoration: none;
}

article h2 a:hover {
    color: #cc2200;
}

article p {
    color: #888;
    font-size: 0.875rem;
    margin: 0;
}

/* ─── Forms ──────────────────────────────────────────── */

textarea {
    width: 100%;
    font-family: monospace;
    font-size: 0.85rem;
}

/* ─── Buttons ────────────────────────────────────────── */

button[type="submit"] {
    background: #cc2200;
    border-color: #cc2200;
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

button[type="submit"]:hover {
    background: #e62800;
    border-color: #e62800;
}

.back-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: #cc2200;
}
