:root {
    --cream: #f6e7c6;
    --gold: #e2b56a;
    --ember: #ffb089;
    --glass: rgba(16, 10, 6, 0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--cream);
    background: #120c08 url("/images/background.jpg") center 40% / cover no-repeat fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8,5,3,0.18), rgba(8,5,3,0.04) 35%, rgba(8,5,3,0.22) 100%);
}

.stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.stage-home {
    grid-template-columns: minmax(280px, 340px) minmax(280px, 1fr) minmax(280px, 340px);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "title title title"
        "left hole right"
        "foot foot foot";
}

.stage-essay {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "title"
        "hole"
        "main"
        "foot";
}

.title {
    grid-area: title;
    text-align: center;
}

.title h1 {
    font-family: Cinzel, serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff6e4;
    text-shadow: 0 2px 0 #2a160e, 0 12px 28px rgba(0,0,0,0.45);
}

.title h1 a {
    color: inherit;
    text-decoration: none;
}

.title h1 span { color: var(--ember); }

/* ---------- FIXED: SUBHEAD NOW VISIBLE ---------- */
.title p {
    font-family: Cinzel, serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #f0e0c0;  /* lighter, warm cream — visible on dark backgrounds */
    margin-top: 6px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);  /* adds contrast against any background */
    opacity: 0.95;  /* keeps it bright but not harsh */
}

.hole {
    grid-area: hole;
    min-height: 62vh;
    border: 1px solid rgba(226,181,106,0.28);
    background: rgba(10, 6, 4, 0.28);
    clip-path: polygon(14px 0, calc(100% - 28px) 0, 100% 14px, 100% calc(100% - 18px), calc(100% - 14px) 100%, 18px 100%, 0 calc(100% - 14px), 0 18px);
    box-shadow: inset 0 0 80px rgba(8,5,3,0.35), inset 0 0 0 7px rgba(18,10,6,0.12);
}

.stage-essay .hole { min-height: 36vh; }

.box {
    background: var(--glass);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(226,181,106,0.28);
    padding: 20px 18px 18px;
    clip-path: polygon(10px 0, calc(100% - 22px) 0, 100% 12px, 100% calc(100% - 16px), calc(100% - 12px) 100%, 16px 100%, 0 calc(100% - 12px), 0 16px);
}

.left, .right { overflow: auto; max-height: calc(100vh - 170px); }
.left { grid-area: left; }
.right { grid-area: right; }
.main { grid-area: main; max-width: 920px; width: 100%; margin: 0 auto; }

.box h2, .main h2 {
    font-family: Cinzel, serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    margin: 18px 0 10px;
}

.box h2:first-child,
.main h2:first-child { margin-top: 0; }

.box p, .main p {
    margin-bottom: 14px;
    color: rgba(246,231,198,0.94);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.main p { text-align: justify; text-indent: 1.6em; }
.main p:first-of-type { text-indent: 0; }

strong { color: #ffd7a6; }

table.essays {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    background: transparent;
    margin-top: 8px;
}

table.essays td {
    background: transparent;
    border: 1px solid rgba(226,181,106,0.22);
    text-align: center;
}

table.essays a,
.foot a {
    font-family: Cinzel, serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
}

table.essays a {
    display: block;
    padding: 9px 6px;
    font-size: 0.74rem;
}

table.essays a:hover,
.foot a:hover {
    color: #fff6e4;
    background: rgba(184,67,42,0.2);
}

.foot {
    grid-area: foot;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    padding: 6px 0 8px;
}

.foot a {
    font-size: 0.74rem;
    padding: 4px 7px;
}

.essay-kicker {
    font-family: Cinzel, serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

@media (max-width: 980px) {
    .stage-home {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "hole"
            "left"
            "right"
            "foot";
    }
    .hole { min-height: 42vh; }
    .left, .right { max-height: none; }
}