*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.note, .event-meta dd.note {
    color: red;
}

body {
    font-family: sans-serif;
    background: #0a0a0a;
    color: #e8e8e8;
}

/* ── Canvas intro ── */

#canvas-intro {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvas-intro[hidden] {
    display: none;
}

#stage {
    display: block;
    width: min(100vw, 100vh);
    height: min(100vw, 100vh);
    background: #0a0a0a;
}

#start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#start-overlay[hidden] {
    display: none;
}

.start-prompt {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}

#start-overlay:hover .start-prompt {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}

#skip-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#skip-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ── Header / nav ── */

header {
    border-bottom: 1px solid #2a2a2a;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0a0a0a;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 5rem;
}

.nav-brand {
    height: 3.75rem;
    width: auto;
    display: block;
}

/* Desktop nav */

#nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    flex: 1;
    margin-left: 2rem;
}

header nav a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
}

header nav a:hover {
    color: #e8e8e8;
}

.nav-previous-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-previous-label {
    font-size: 0.9rem;
    color: #555;
}

.nav-years {
    display: flex;
    gap: 1rem;
    list-style: none;
}

/* Hamburger */

#menu-toggle {
    display: none;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

#menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e8e8e8;
    border-radius: 2px;
}

/* Mobile nav */

@media (max-width: 600px) {
    #menu-toggle {
        display: flex;
    }

    #nav-links {
        display: none;
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        background: #111;
        border-bottom: 1px solid #2a2a2a;
        z-index: 10;
    }

    #nav-links.open {
        display: flex;
    }

    #nav-links > li > a {
        display: block;
        padding: 0.85rem 2rem;
        font-size: 1rem;
        border-top: 1px solid #1e1e1e;
    }

    .nav-previous-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-left: 0;
    }

    .nav-previous-label {
        display: block;
        padding: 0.85rem 2rem 0.4rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #555;
        border-top: 1px solid #1e1e1e;
    }

    .nav-years {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-years li a {
        display: block;
        padding: 0.65rem 2rem 0.65rem 3.5rem;
        font-size: 0.95rem;
        border-top: 1px solid #1a1a1a;
    }
}

/* ── Page sections ── */

.page-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #2a2a2a;
}

.section-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* ── Event details ── */

#event-details {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.event-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.section-content p {
    color: #999;
    line-height: 1.7;
}

.section-content p + p,
.section-content p + ul,
.section-content ul + p {
    margin-top: 1rem;
}

.example-list {
    padding-left: 1.5rem;
    color: #999;
    line-height: 1.7;
}

.example-list li + li {
    margin-top: 0.4rem;
}

.event-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.event-meta iframe {
    width: 100%;
    height: 220px;
    margin-top: 0.4rem;
}

.event-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
}

.event-meta dd {
    font-size: 1rem;
    color: #ccc;
}

.event-prelude {
    max-width: 640px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #e8e8e8;
    line-height: 1.4;
}

/* ── Blog posts ── */

.blog-post {
    padding: 1.5rem 0;
    border-bottom: 1px solid #1e1e1e;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 0.75rem;
}

.post-date {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 0.3rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8e8e8;
}

.post-body p {
    color: #999;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.post-body p + p {
    margin-top: 0.75rem;
}

/* ── Intro replay ── */

#intro-replay {
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 2.5rem 2rem;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

#replay-btn {
    padding: 0.75rem 2.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: transparent;
    color: #ccc;
    font-size: 1.05rem;
    cursor: pointer;
}

#replay-btn:hover {
    border-color: #888;
    color: #e8e8e8;
}

/* ── Dev tools ── */

#dev-tools {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 2rem;
    border-top: 1px dashed #222;
    padding-top: 1.5rem;
}

.future-post-label {
    color: red;
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 0.5rem;
}

#reset-btn,
#preview-posts-btn {
    padding: 0.4rem 1rem;
    border: 1px dashed #333;
    border-radius: 4px;
    background: transparent;
    color: #444;
    font-size: 0.8rem;
    cursor: pointer;
}

#reset-btn:hover,
#preview-posts-btn:hover {
    color: #777;
    border-color: #555;
}

/* ── Background wheel ── */

#bg-wheel {
    display: none;
    position: fixed;
    right: 1vw;
    top: 18vh;
    width: 20vw;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

#bg-wheel img {
    display: block;
    width: 100%;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

@media (min-width: 1200px) {
    #bg-wheel {
        display: block;
    }
}

/* Keep page content above the bg wheel */
#app > *:not(#bg-wheel):not(header) {
    position: relative;
    z-index: 1;
}

/* ── Banner ── */

#banner {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

#banner img {
    display: block;
    width: 100%;
    height: auto;
}
