#event {
    min-height: 100vh;
    padding: 118px var(--page-padding) clamp(80px, 9vw, 120px);
    background:
        radial-gradient(circle at 50% 4%, rgba(244,212,124,.12), transparent 32%),
        radial-gradient(circle at 12% 32%, rgba(126,89,56,.10), transparent 29%),
        linear-gradient(180deg, #101827 0%, #182438 48%, #101827 100%);
    color: #3b2618;
}

.event-breadcrumb {
    width: min(1120px, 100%);
    margin: 0 auto 24px;
}

.event-page {
    position: relative;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4.6vw, 52px);
    overflow: hidden;
    background:
        linear-gradient(rgba(248,237,202,.91), rgba(232,211,164,.94)),
        url("../images/parchment.png");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(198,156,74,.76);
    border-radius: 16px;
    box-shadow: 0 26px 65px rgba(0,0,0,.36);
    color: #3b2618;
}

.event-page::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(139,93,31,.18);
    border-radius: 10px;
}

.event-page::after {
    content: "✦  CRUMBLE DOWN HISTORICAL RECORD  ✦";
    position: absolute;
    top: 19px;
    right: -72px;
    width: 275px;
    padding: 7px 0;
    transform: rotate(35deg);
    text-align: center;
    background: rgba(104,65,23,.10);
    border-top: 1px solid rgba(104,65,23,.13);
    border-bottom: 1px solid rgba(104,65,23,.13);
    color: rgba(104,65,23,.36);
    font-family: var(--title-font);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    pointer-events: none;
}

.event-title-header {
    position: relative;
    z-index: 2;
    max-width: 930px;
    margin: 0 auto;
    padding: 5px 10px clamp(30px, 4vw, 42px);
    text-align: center;
}

.event-type {
    display: block;
    margin-bottom: 8px;
    font-family: var(--title-font);
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #8b5d1f;
}

.event-title-header h1 {
    margin: 0 auto;
    max-width: 940px;
    font-family: var(--title-font);
    font-size: clamp(46px, 6.4vw, 76px);
    line-height: 1.01;
    overflow-wrap: anywhere;
    color: #56351a;
    text-shadow: 0 2px 10px rgba(198,156,74,.13);
}

.event-subtitle {
    max-width: 760px;
    margin: 16px auto 0;
    font-family: Georgia, serif;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.45;
    font-style: italic;
    color: #795322;
}

.event-visual-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 42px);
    max-width: 960px;
    margin: 0 auto;
}

.event-artwork-card {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    border: 7px solid #a87525;
    outline: 2px solid rgba(244,212,124,.76);
    outline-offset: -3px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 32%, rgba(244,212,124,.16), transparent 38%),
        linear-gradient(145deg, #182438, #101827);
    box-shadow: 0 15px 34px rgba(55,34,14,.27);
    cursor: zoom-in;
}

.event-artwork-card:focus-visible {
    outline: 3px solid #f4d47c;
    outline-offset: 4px;
}

.event-artwork-card.is-missing {
    cursor: default;
}

.event-artwork-image,
.event-artwork-placeholder {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.event-artwork-image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.event-artwork-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    min-height: 390px;
    padding: 24px;
    color: #ead38d;
    text-align: center;
    text-shadow: 0 0 14px rgba(244,212,124,.28);
}

.event-artwork-placeholder > span {
    font-size: 34px;
}

.event-artwork-placeholder small {
    font-family: var(--title-font);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.event-artwork-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244,212,124,.55);
    border-radius: 50%;
    background: rgba(16,24,39,.88);
    color: #f4d47c;
    font-size: 21px;
    box-shadow: 0 4px 12px rgba(0,0,0,.24);
}

.event-artwork-card.is-missing .event-artwork-zoom {
    display: none;
}

.event-fact-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(24px, 3.2vw, 34px);
    background:
        linear-gradient(rgba(255,250,229,.93), rgba(244,225,176,.86));
    border: 1px solid rgba(139,93,31,.34);
    border-radius: 13px;
    box-shadow: 0 13px 28px rgba(70,45,20,.12);
}

.event-panel-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(139,93,31,.22);
}

.event-panel-heading > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 1px solid rgba(139,93,31,.28);
    border-radius: 50%;
    background: rgba(255,248,220,.8);
    font-size: 23px;
}

.event-panel-heading small,
.event-section-heading small {
    display: block;
    margin-bottom: 2px;
    font-family: var(--title-font);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    color: #9a6b2b;
}

.event-panel-heading h2,
.event-section-heading h2 {
    margin: 0;
    font-family: var(--title-font);
    color: #65401c;
}

.event-panel-heading h2 {
    font-size: clamp(27px, 3vw, 34px);
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.event-meta-card {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(139,93,31,.24);
    border-radius: 9px;
    background: rgba(255,252,237,.68);
}

.event-meta-card:first-child {
    grid-column: 1 / -1;
}

.event-meta-card strong,
.event-meta-card span {
    display: block;
}

.event-meta-card strong {
    margin-bottom: 4px;
    font-family: var(--title-font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #936421;
}

.event-meta-card span {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    color: #4d3827;
}

.event-quick-facts {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(139,93,31,.20);
}

.event-quick-facts h3 {
    margin: 0 0 11px;
    font-family: var(--title-font);
    font-size: 15px;
    line-height: 1.4;
    color: #6c471e;
}

.event-quick-facts ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-quick-facts li {
    position: relative;
    padding-left: 21px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #574432;
}

.event-quick-facts li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 1px;
    color: #a87824;
}

.event-summary-card {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: clamp(30px, 5vw, 48px) auto 0;
    padding: clamp(24px, 3.5vw, 36px);
    text-align: center;
    border-top: 2px solid rgba(139,93,31,.30);
    border-bottom: 2px solid rgba(139,93,31,.30);
    background: rgba(255,250,229,.42);
}

.event-summary-kicker {
    display: block;
    margin-bottom: 10px;
    font-family: var(--title-font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.35px;
    text-transform: uppercase;
    color: #986724;
}

.event-summary-card p {
    max-width: 850px;
    margin: 0 auto;
    font-family: Georgia, serif;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.7;
    color: #4e3b2b;
}

.event-story-stack {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
    max-width: 960px;
    margin: 30px auto 0;
}

.event-story-section {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: clamp(23px, 3vw, 32px);
    background: rgba(255,250,229,.86);
    border: 1px solid rgba(198,156,74,.40);
    border-radius: 12px;
    box-shadow: 0 10px 23px rgba(70,45,20,.09);
}

.event-story-marker {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(139,93,31,.30);
    border-radius: 50%;
    background: linear-gradient(145deg, #f7e9b9, #d8b361);
    color: #66421d;
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.26);
}

.event-story-copy h2 {
    position: relative;
    margin: 0 0 11px;
    font-family: var(--title-font);
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.2;
    color: #65401c;
}

.event-story-copy p,
.event-legacy-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.82;
    color: #4f3d2c;
}

.event-legacy-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 17px;
    max-width: 960px;
    margin: 22px auto 0;
    padding: clamp(23px, 3vw, 31px);
    border: 1px solid rgba(139,93,31,.44);
    border-radius: 12px;
    background:
        radial-gradient(circle at 8% 50%, rgba(244,212,124,.22), transparent 22%),
        linear-gradient(145deg, rgba(238,216,166,.92), rgba(255,247,215,.88));
    box-shadow: 0 11px 25px rgba(70,45,20,.10);
}

.event-legacy-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #6d481f;
    color: #f5d982;
    font-size: 20px;
    box-shadow: 0 5px 12px rgba(70,45,20,.18);
}

.event-legacy-card h2 {
    margin: 0 0 9px;
    font-family: var(--title-font);
    font-size: clamp(24px, 3vw, 30px);
    color: #65401c;
}

.event-connections {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 30px auto 0;
    padding: clamp(24px, 3.5vw, 34px);
    border: 1px solid rgba(198,156,74,.40);
    border-radius: 12px;
    background: rgba(255,250,229,.84);
    box-shadow: 0 10px 24px rgba(70,45,20,.09);
}

.event-section-heading {
    margin-bottom: 21px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(139,93,31,.22);
}

.event-section-heading h2 {
    font-size: clamp(25px, 3vw, 32px);
}

.event-connections-grid {
    display: grid;
    gap: 20px;
}

.event-connection-group h3 {
    margin: 0 0 10px;
    font-family: var(--title-font);
    font-size: 15px;
    color: #775022;
}

.event-connection-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-navigation {
    position: relative;
    z-index: 2;
    padding-top: 34px;
    text-align: center;
}

.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #fff0ad;
    background: linear-gradient(145deg, #101827, #182438);
    border: 1px solid rgba(244,212,124,.65);
    border-radius: 30px;
    font-family: var(--title-font);
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.event-button:hover,
.event-button:focus-visible {
    transform: translateY(-2px);
    border-color: #fff0ad;
    box-shadow: 0 8px 22px rgba(0,0,0,.22), 0 0 14px rgba(244,212,124,.13);
}

.event-button:focus-visible {
    outline: 2px solid #fff0ad;
    outline-offset: 4px;
}

.event-not-found {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(244,212,124,.38);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    color: #f7edd0;
}

.event-not-found h1 {
    margin: 0 0 14px;
    font-family: var(--title-font);
    color: #f4d47c;
}

.event-not-found p {
    margin: 0 0 24px;
    line-height: 1.65;
}

@media (max-width: 820px) {
    .event-visual-row {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .event-artwork-card {
        width: min(430px, 100%);
        min-height: 0;
        aspect-ratio: 4 / 5;
        justify-self: center;
    }

    .event-artwork-placeholder {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    #event {
        padding: 96px 12px 65px;
    }

    .event-breadcrumb {
        width: calc(100% - 8px);
        margin-bottom: 18px;
    }

    .event-page {
        padding: 24px 16px 30px;
        border-radius: 12px;
    }

    .event-page::before {
        inset: 6px;
    }

    .event-page::after {
        display: none;
    }

    .event-title-header {
        padding-left: 3px;
        padding-right: 3px;
    }

    .event-title-header h1 {
        font-size: clamp(37px, 11vw, 54px);
    }

    .event-subtitle {
        font-size: 18px;
    }

    .event-artwork-card {
        width: min(330px, 88vw);
    }

    .event-fact-panel {
        padding: 22px 17px;
    }

    .event-meta-grid {
        grid-template-columns: 1fr;
    }

    .event-meta-card:first-child {
        grid-column: auto;
    }

    .event-summary-card {
        padding: 23px 13px;
    }

    .event-summary-card p {
        font-size: 18px;
        line-height: 1.66;
    }

    .event-story-section {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        padding: 21px 16px;
    }

    .event-story-marker {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    .event-story-copy p,
    .event-legacy-card p {
        font-size: 17px;
        line-height: 1.72;
    }

    .event-legacy-card {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 22px 17px;
    }

    .event-legacy-icon {
        width: 40px;
        height: 40px;
    }

    .event-connections {
        padding: 22px 17px;
    }

    .event-connection-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-button {
        transition: none;
    }
}
