:root {
    --bone: #f2efe6;
    --ink: #101010;
    --red: #e11d2e;
    --lime: #c6f432;
    --gray: #5b5b57;
    --line: #101010;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bone);
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .stat b, .countdown b, .btn {
    font-family: 'Anton', Impact, 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--ink);
    color: var(--bone);
    padding: 64px 0 48px;
    border-bottom: 10px solid var(--red);
}
.kicker { color: var(--lime); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; }
.center { text-align: center; }
.hero h1 { font-size: clamp(40px, 12vw, 138px); line-height: .95; margin: 10px 0 6px; }
.forty-one { color: var(--lime); }
.tagline { font-size: clamp(20px, 3.4vw, 30px); font-weight: 500; color: var(--bone); opacity: .85; margin-bottom: 30px; }

.when { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 30px; font-size: 20px; font-weight: 700; }
.when span { display: block; font-size: 12px; letter-spacing: .18em; color: var(--lime); }

.countdown { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.countdown div {
    border: 2px solid var(--bone);
    padding: 10px 6px;
    min-width: 92px;
    text-align: center;
}
.countdown b { display: block; font-size: 52px; line-height: 1; color: var(--lime); }
.countdown span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.oelke { max-width: 640px; color: var(--bone); opacity: .85; font-size: 16px; }
.oelke strong { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 24px;
    font-size: 18px;
    border: 3px solid var(--ink);
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    background: var(--bone);
    transition: transform .08s ease, box-shadow .08s ease;
    box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lime { background: var(--lime); }
.btn-red { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.btn-ghost-dark { background: transparent; }
.btn-block { width: 100%; margin-top: 4px; }
.hero .btn-red, .hero .btn-lime { border-color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.hero .btn-red:hover, .hero .btn-lime:hover { box-shadow: 6px 6px 0 var(--bone); }
.hero .btn-red:active, .hero .btn-lime:active { box-shadow: 1px 1px 0 var(--bone); }

/* ---------- Bands ---------- */
.band { padding: 60px 0; }
.band h2 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 26px; line-height: 1; text-align: center; }
.band-bone { background: var(--bone); }
.band-ink { background: var(--ink); color: var(--bone); }
.band-ink h2 { color: var(--lime); }
.band-lime { background: var(--lime); }
.intro { margin: -12px 0 22px; color: var(--gray); text-align: center; }

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

.card {
    background: #fff;
    border: 3px solid var(--ink);
    padding: 22px;
    box-shadow: 6px 6px 0 var(--ink);
}
.card h3 { font-size: 26px; margin-bottom: 10px; color: var(--red); }
.card h3.sub { margin-top: 18px; }
#pantheonTitle { text-align: center; }
.card p + p { margin-top: 10px; }
.card ul { list-style: none; }
.card li { padding: 6px 0 6px 18px; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--red); }

/* ---------- Last year ---------- */
.stat { border: 2px solid var(--bone); padding: 16px; }
.stat span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.stat b { font-size: 30px; line-height: 1.05; display: block; margin-top: 6px; }
.recap { margin: 26px 0 40px; background: var(--bone); color: var(--ink); border: 3px solid var(--lime); box-shadow: 6px 6px 0 var(--lime); padding: 22px 24px; }
.recap span { display: block; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-size: 22px; margin-bottom: 6px; }
.recap p { font-size: 20px; line-height: 1.45; }


/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    font: inherit;
    border: 3px solid var(--ink);
    background: var(--bone);
    color: var(--ink);
    border-radius: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--red); outline-offset: 0; }
.taunt-row { display: flex; gap: 10px; }
.taunt-row select { flex: 1; min-width: 0; }
.taunt-row .btn { padding: 8px 18px; box-shadow: 3px 3px 0 var(--ink); }

.message-alert { padding: 12px 14px; border: 3px solid var(--ink); margin-bottom: 12px; font-weight: 700; }
.message-alert.success { background: var(--lime); }
.message-alert.error { background: var(--red); color: #fff; }

/* ---------- Pantheon ---------- */
.attendee { border-top: 2px solid var(--ink); padding: 12px 0; }
.attendee:first-child { border-top: 0; padding-top: 0; }
.attendee-name { font-weight: 700; font-size: 18px; cursor: pointer; }
.attendee-name:hover { color: var(--red); }
.attendee-name small { font-weight: 500; color: var(--gray); }
.attendee-gear { font-size: 14px; color: var(--gray); }
.attendee-message { margin-top: 4px; font-style: italic; }

/* ---------- Soundboard ---------- */
.sound-controls { margin-bottom: 20px; text-align: center; }
.sound-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.sound-btn {
    font: inherit; font-weight: 700; font-size: 14px;
    padding: 12px 10px; text-align: left; cursor: pointer;
    background: var(--bone); color: var(--ink);
    border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
    transition: transform .08s ease, box-shadow .08s ease;
}
.sound-btn:hover { background: var(--red); color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.sound-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- Message board ---------- */
.board { margin-top: 24px; display: grid; gap: 14px; }
.message { background: #fff; border: 3px solid var(--ink); padding: 14px 16px; }
.message-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.message-author { font-weight: 700; color: var(--red); }
.message-time { font-size: 13px; color: var(--gray); }
.message-text { white-space: pre-wrap; word-wrap: break-word; }

.loading, .error { color: var(--gray); }

footer { background: var(--ink); color: var(--bone); padding: 26px 0; text-align: center; font-size: 15px; opacity: .95; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .hero { padding: 44px 0 36px; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .countdown div { min-width: 0; flex: 1 1 70px; }
    .countdown b { font-size: 38px; }
    .band { padding: 44px 0; }
    .btn { width: 100%; text-align: center; }
    .taunt-row .btn { width: auto; }
    .sound-grid { grid-template-columns: repeat(2, 1fr); }
}

.band-lime .intro { color: var(--ink); font-weight: 500; }

/* Hero: everything centered */
.hero { text-align: center; }
.when, .countdown, .actions { justify-content: center; }
.oelke { margin-left: auto; margin-right: auto; }

/* Two-line calendar button */
.btn-two { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding-top: 11px; padding-bottom: 9px; }
.btn-two small { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; }

/* Winners etc. centered */
.stat { text-align: center; display: flex; flex-direction: column; justify-content: center; }

/* Team Gaia tree border */
.stat-gaia { position: relative; padding: 72px 6px; overflow: visible; align-items: center; }
.gaia-core { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 96px; padding: 0 28px; }
.stat-gaia .gaia-core > span { letter-spacing: .1em; }
.trees { font-style: normal; font-size: 18px; line-height: 1.15; letter-spacing: 2px; }
.trees-t { position: absolute; top: 2px; left: 0; right: 0; text-align: center; white-space: nowrap; overflow: hidden; }
.trees-b { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; white-space: nowrap; overflow: hidden; }
.trees-l, .trees-r { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; font-size: 16px; }
.trees-l { left: 4px; }
.trees-r { right: 4px; }

/* Lessons learned centered */
.recap { text-align: center; }

/* Background quote stamps (like book-review blurbs, but behind the content) */
.band { position: relative; overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.stamp {
    position: absolute; z-index: 0; pointer-events: none;
    width: 340px; max-width: 70vw;
    background: rgba(16, 16, 16, .06); border-left: 8px solid rgba(225, 29, 46, .35);
    color: rgba(16, 16, 16, .32); padding: 16px 18px;
}
.stamp p { font-size: 19px; line-height: 1.4; }
.stamp cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(16, 16, 16, .32); }
/* Narrow screens: no side margins, so stamps drop into the flow, above and below each section's content */
@media (max-width: 1000px) {
    .band { display: flex; flex-direction: column; }
    .band > .wrap { width: 100%; }
    .stamp { position: static; width: auto; max-width: 86%; margin: 6px 20px 26px; }
    .stamp.stamp-a { order: -1; margin: 0 20px 16px; align-self: flex-start; }
    .stamp.stamp-b { order: 1; margin: 26px 20px 0; align-self: flex-end; }
    .stamp.stamp-c { order: 2; margin: 18px 20px 0; align-self: flex-start; }
    .stamp p { font-size: 16px; }
    .stamp cite { font-size: 12px; }
}

.plan-grid { align-items: stretch; }

/* Dark sections: light variants */
.band-ink .intro { color: var(--bone); opacity: .8; }
.band-ink .card { box-shadow: 6px 6px 0 var(--lime); border-color: var(--bone); }
.band-ink .message { border-color: var(--bone); }
.band-ink .loading { color: var(--bone); opacity: .7; }
.stamp-light { background: rgba(242, 239, 230, .06); color: rgba(242, 239, 230, .30); }
.stamp-light cite { color: rgba(198, 244, 50, .38); }
.band-ink .card, .band-ink .message { color: var(--ink); }
.plan-grid .card h3 { text-align: center; }


/* The Plan has no header gap: wide screens get margin notes beside the cards, sized to the free margin */
@media (min-width: 1280px) {
    #plan .stamp { width: 118px; padding: 10px 10px 10px 12px; border-left-width: 6px; }
    #plan .stamp p { font-size: 14px; line-height: 1.35; }
    #plan .stamp cite { font-size: 11px; margin-top: 6px; }
    #plan .stamp-a { top: 9% !important; right: calc(50% + 506px) !important; left: auto !important; }
    #plan .stamp-b { top: 52% !important; left: calc(50% + 506px) !important; right: auto !important; }
}
@media (min-width: 1480px) {
    #plan .stamp { width: 200px; padding: 12px 14px; }
    #plan .stamp p { font-size: 16px; }
    #plan .stamp cite { font-size: 12px; }
}
@media (min-width: 1700px) {
    #plan .stamp { width: 300px; padding: 14px 16px 14px 18px; border-left-width: 8px; }
    #plan .stamp p { font-size: 19px; line-height: 1.4; }
    #plan .stamp cite { font-size: 14px; margin-top: 8px; }
}
/* Medium screens: the Plan quotes drop into the flow above and below the cards */
@media (min-width: 1001px) and (max-width: 1279px) {
    #plan { display: flex; flex-direction: column; }
    #plan > .wrap { width: 100%; }
    #plan .stamp { position: static; width: auto; max-width: 70%; }
    #plan .stamp.stamp-a { order: -1; margin: 0 20px 16px; align-self: flex-start; }
    #plan .stamp.stamp-b { order: 1; margin: 26px 20px 0; align-self: flex-end; }
}

/* Swaying and spreading Gaia trees */
.tree { display: inline-block; transform-origin: 50% 100%; animation: sway var(--sway, 3.4s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.grown { position: absolute; z-index: 0; pointer-events: none; line-height: 1; transform-origin: 50% 100%; animation: grow .7s ease-out both; }
@keyframes grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: .85; } }
.stat { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tree, .grown { animation: none; } }

.stat .tree { display: inline-block; font-size: inherit; letter-spacing: normal; text-transform: none; color: inherit; margin: 0; }
