        @font-face {
          font-family: "Lobster";
          src: url("fonts/Lobster-Regular.ttf") format("truetype");
        /*  font-weight: normal;
          font-style: normal; */
          font-display: swap;
        }
        
        @font-face {
          font-family: "Poppins";
          src: url("fonts/Poppins-Regular.ttf") format("truetype");
        /*  font-weight: normal;
          font-style: normal; */
          font-display: swap;
        }

        @font-face {
          font-family: "Playpen Sans";
          src: url("fonts/PlaypenSans-VariableFont_wght.ttf") format("truetype");
        /*  font-weight: normal;
          font-style: normal; */
          font-display: swap;
        }
        
        /* ===== TOKENS ===== */
        :root {
            --yellow: #fde892;
            --coral:  #ff8861;
            --black:  #000000;
            --white:  #ffffff;
            --font-display: 'Lobster', cursive;
            --font-body:    'Poppins', sans-serif;
            --font-note:    'Playpen Sans', cursive;
        }

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

        body {
            background: var(--yellow);
            color: var(--black);
            font-family: var(--font-body);
            font-size: 1rem;
            line-height: 1.6;
        }

        a { color: var(--coral); }

        #mainTitle {
            width: 400px;
        }

        /* Screen-reader-only utility */
        .sr-only {
            position: absolute; width: 1px; height: 1px;
            padding: 0; margin: -1px; overflow: hidden;
            clip: rect(0,0,0,0); white-space: nowrap; border: 0;
        }

        /* ===== STICKY BAR ===== */
        .sticky-bar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--yellow);
            border-bottom: 2px solid var(--black);
        }

        .sticky-bar-inner {
            max-width: 680px;
            margin: 0 auto;
            padding: 0.45rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        /* Title fades in once the main h1 scrolls off screen */
        .sticky-title {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 500;
            color: var(--coral);
            -webkit-text-stroke: 0.8px var(--black);
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
            white-space: nowrap;
            width: 300px;
        }

        .sticky-title img {
            padding-top: 5px;
        }

        .sticky-title.visible { opacity: 1; }

        /* ===== SHARED BUTTON STYLES ===== */
        /* Filled coral pill — default */
        .btn-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: var(--coral);
            color: var(--white);
            border: 2px solid var(--black);
            border-radius: 2rem;
            padding: 0.4rem 1rem;
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .btn-pill:hover     { background: var(--black); border-color: var(--black); }
        .btn-pill:disabled  { opacity: 0.4; cursor: not-allowed; }

        /* Outline modifier — transparent background, shows on hover */
        .btn-outline {
            background: none;
            color: var(--black);
        }
        /* outline hover and active states — override the filled hover */
        .btn-outline:hover,
        .btn-outline.active {
            background: var(--coral);
            color: var(--white);
            border-color: var(--coral);
        }

        /* ===== PAGE CONTENT WRAPPER ===== */
        .content {
            max-width: 680px;
            margin: 0 auto;
            padding: 0 1.25rem 4rem;
        }

        /* ===== SITE HEADER ===== */
        .site-header {
            text-align: center;
            padding: 2.25rem 0 1.25rem;
        }

        .site-title {
            font-family: var(--font-display);
            font-size: clamp(3.2rem, 14vw, 8rem);
            font-weight: 500;
            color: var(--coral);
            -webkit-text-stroke: 0.8px var(--black);
            line-height: 1.05;
        }

        .site-subtitle {
            font-family: var(--font-display);
            font-size: clamp(1.1rem, 4.5vw, 1.6rem);
            color: var(--black);
            margin-top: 0.4rem;
        }

        .dit-tagline {
            font-family: var(--font-note);
            font-size: clamp(0.88rem, 3.5vw, 1rem);
            font-weight: 700;
            margin-top: 0.85rem;
        }
        .dit-tagline em { color: var(--coral); font-style: normal; }

        hr { border: none; border-top: 2px solid var(--black); margin: 1.75rem 0; }

        /* ===== TABS ===== */
        .tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }

        .tab-btn {
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 0.88rem;
            background: none;
            border: 2px solid var(--black);
            border-radius: 2rem;
            padding: 0.35rem 1rem;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .tab-btn.active,
        .tab-btn:hover {
            background: var(--coral);
            color: var(--white);
            border-color: var(--coral);
        }

        .tab-panel         { display: none; }
        .tab-panel.active  { display: block; }

        /* ===== UPCOMING TAB CONTROLS ===== */
        /* Row holding the two events-TTS button and the ICS controls */
        .upcoming-controls {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
            margin-bottom: 1rem;
        }

        .ics-area {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .select-all-label {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }

        /* ===== SCROLLABLE EVENT CONTAINER ===== */
        /* max-height shows ~2.5 cards; rest scrolls */
        .events-scroll {
            max-height: 22rem;
            overflow-y: auto;
            padding-right: 0.25rem;
            /* Thin coral scrollbar */
            scrollbar-width: thin;
            scrollbar-color: var(--coral) transparent;
        }
        .events-scroll::-webkit-scrollbar       { width: 5px; }
        .events-scroll::-webkit-scrollbar-track { background: transparent; }
        .events-scroll::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 3px; }

        /* ===== EVENT CARDS ===== */
        .upcoming-list { list-style: none; }

        .event-card {
            background: var(--white);
            border: 2px solid var(--black);
            border-radius: 0.75rem;
            padding: 1rem 1.25rem;
            margin-bottom: 0.75rem;
            position: relative;
        }
        .event-card.next { border-color: var(--coral); border-width: 3px; }

        /* Checkbox sits top-right of the card */
        .event-checkbox-wrap {
            position: absolute;
            top: 0.8rem;
            right: 0.85rem;
        }
        .event-checkbox-wrap input[type="checkbox"] {
            width: 1.1rem;
            height: 1.1rem;
            accent-color: var(--coral);
            cursor: pointer;
        }

        .next-badge {
            font-family: var(--font-note);
            font-size: 0.72rem;
            font-weight: 700;
            background: var(--coral);
            color: var(--white);
            border-radius: 1rem;
            padding: 0.15rem 0.65rem;
            display: inline-block;
            margin-bottom: 0.45rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .event-date {
            font-family: var(--font-display);
            font-size: clamp(1.3rem, 5vw, 1.6rem);
            color: var(--coral);
            -webkit-text-stroke: 0.6px var(--black);
            line-height: 1.2;
            padding-right: 1.75rem; /* clear the checkbox */
            font-weight: 500;
        }
        .event-time     { font-weight: 600; font-size: 0.95rem; margin-top: 0.1rem; }
        .event-location { font-size: 0.95rem; margin-top: 0.3rem; }
        .event-address  { font-size: 0.82rem; color: #444; }
        .event-theme {
            font-family: var(--font-note);
            font-size: 0.87rem;
            font-weight: 700;
            color: var(--coral);
            margin-top: 0.45rem;
        }
        .event-desc { font-size: 0.88rem; margin-top: 0.3rem; }

        .empty-state {
            font-family: var(--font-note);
            font-size: 0.95rem;
            color: #555;
            padding: 1.25rem 0;
        }

        /* ===== LOG / PAST EVENTS ===== */
        .past-list  { list-style: none; }
        .past-card  { border-top: 2px solid var(--black); padding: 1rem 0; }
        .past-date  { font-family: var(--font-display); font-size: 1.2rem; color: var(--coral); }
        .past-notes { font-size: 0.9rem; margin-top: 0.3rem; }

        /* ===== ABOUT & CONTENT SECTIONS ===== */
        .section-heading {
            font-family: var(--font-display);
            font-size: clamp(1.6rem, 6vw, 2rem);
            color: var(--coral);
            -webkit-text-stroke: 0.8px var(--black);
            font-weight: 500;
            margin-bottom: 0.75rem;
        }

        .about-section p { font-size: 0.95rem; margin-bottom: 0.75rem; }

        .callout {
            font-family: var(--font-note);
            font-size: 0.92rem;
            font-weight: 700;
            border-left: 4px solid var(--coral);
            padding-left: 0.85rem;
            margin: 1rem 0 1.25rem;
            line-height: 1.55;
        }

        .participate-list { list-style: none; margin: 0.75rem 0; }
        .participate-list li {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
            margin-bottom: 0.65rem;
            font-size: 0.95rem;
        }
        .participate-list .icon { flex-shrink: 0; margin-top: 0.1rem; }

        .find-us p { font-size: 0.95rem; margin-bottom: 0.3rem; }

        /* ===== VOICE OVERLAY ===== */
        /* Shown when device has no fi-FI TTS voice */
        .voice-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            z-index: 200;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }
        .voice-overlay.visible { display: flex; }

        .voice-overlay-inner {
            background: var(--yellow);
            border: 2px solid var(--black);
            border-radius: 0.75rem;
            padding: 1.5rem;
            max-width: 400px;
            width: 100%;
            position: relative;
            /* Text is selectable so users can copy-paste to translators */
            user-select: text;
        }
        .voice-overlay-inner p          { font-size: 0.95rem; margin-bottom: 0.75rem; }
        .voice-overlay-inner p:last-child { margin-bottom: 0; }

        .overlay-close {
            position: absolute;
            top: 0.65rem;
            right: 0.75rem;
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.2rem;
            line-height: 1;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            font-family: var(--font-note);
            font-size: 0.78rem;
            text-align: center;
            margin-top: 3rem;
            color: #555;
        }
        .site-footer a { color: inherit; }

        /* Mobile Portrait: always 1 column */
        @media (max-width: 768px) and (orientation: portrait) {
            #mainTitle {
                width: 330px;
            }
            .sticky-title {
                width: 170px;
            }
        }

        /* ===== ACCESSIBILITY ===== */
        @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
        :focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
