/* ============================================
   FONT FACE DECLARATIONS
   ============================================ */

/* 
 * Define the main Fat Wandals font for use in header/logo.
 * This is a graffiti-style font loaded from a local TTF file.
 * font-display: swap prevents invisible text during font load.
 */
@font-face {
    font-family: 'Fat Wandals';
    src: url('../fonts/fat_wandals/FatWandals_PERSONAL.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 
 * Define the Sprite Graffiti font for headings.
 * Using woff2 format for better performance and browser support.
 * font-display: swap prevents invisible text during font load.
 */
@font-face {
    font-family: 'Sprite Graffiti';
    src: url('../fonts/SpriteGraffiti/Commercial/WEB/SpriteGraffiti-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #888;
    --color-primary: #00ffff;
    --color-primary-hover: #00d9d9;
    --color-secondary: #ff0080;
    --color-secondary-rgba-03: rgba(255, 0, 128, 0.3);
    --color-secondary-rgba-04: rgba(255, 0, 128, 0.4);
    --color-secondary-rgba-05: rgba(255, 0, 128, 0.5);
    --color-secondary-rgba-08: rgba(255, 0, 128, 0.8);
    --color-primary-rgba-02: rgba(0, 255, 255, 0.2);
    --color-primary-rgba-03: rgba(0, 255, 255, 0.3);
    --color-primary-rgba-04: rgba(0, 255, 255, 0.4);
    --color-primary-rgba-05: rgba(0, 255, 255, 0.5);
    --color-primary-rgba-06: rgba(0, 217, 217, 0.6);
    --color-white-rgba-01: rgba(255, 255, 255, 0.1);
    --color-white-rgba-05: rgba(255, 255, 255, 0.5);
    --color-white-rgba-005: rgba(255, 255, 255, 0.05);
    --color-border-light: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-logo: 'Fat Wandals', cursive;
    --font-heading: 'Sprite Graffiti', cursive;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing */
    --spacing-section: 4rem;
    --spacing-section-mobile: 3rem;
    --spacing-content: 1.5rem;
    --spacing-header: 2rem;
    --spacing-header-mobile: 1.5rem;
}

/* Light theme: respect system preference (prefers-color-scheme) */
@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #f5f5f5;
        --color-text: #1a1a1a;
        --color-text-secondary: #333333;
        --color-text-muted: #666666;
        --color-primary: #008b99;
        --color-primary-hover: #006d79;
        --color-secondary: #c71585;
        --color-secondary-rgba-03: rgba(199, 21, 133, 0.25);
        --color-secondary-rgba-04: rgba(199, 21, 133, 0.35);
        --color-secondary-rgba-05: rgba(199, 21, 133, 0.45);
        --color-secondary-rgba-08: rgba(199, 21, 133, 0.8);
        --color-primary-rgba-02: rgba(0, 139, 153, 0.15);
        --color-primary-rgba-03: rgba(0, 139, 153, 0.25);
        --color-primary-rgba-04: rgba(0, 139, 153, 0.35);
        --color-primary-rgba-05: rgba(0, 139, 153, 0.45);
        --color-primary-rgba-06: rgba(0, 109, 121, 0.5);
        --color-white-rgba-01: rgba(0, 0, 0, 0.06);
        --color-white-rgba-05: rgba(0, 0, 0, 0.35);
        --color-white-rgba-005: rgba(0, 0, 0, 0.04);
        --color-border-light: rgba(0, 0, 0, 0.12);
    }

    /* Logo and header: dark text for light background */
    .header-spoken-words,
    .header-spoken-letter {
        color: #1a1a1a;
    }

    .header-spoken-letter {
        text-shadow:
            2px 2px 0px rgba(0, 139, 153, 0.4),
            4px 4px 0px rgba(0, 139, 153, 0.25),
            0 0 12px rgba(0, 139, 153, 0.35);
    }

    .logo-letter {
        color: #1a1a1a;
        text-shadow:
            2px 2px 0px rgba(199, 21, 133, 0.5),
            4px 4px 0px rgba(199, 21, 133, 0.35),
            -1px -1px 0px rgba(0, 139, 153, 0.5),
            -2px -2px 0px rgba(0, 139, 153, 0.4);
        filter: drop-shadow(0 0 4px rgba(199, 21, 133, 0.3));
    }

    /* Newsletter form: light-theme input */
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"],
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control {
        background-color: rgba(255, 255, 255, 0.9) !important;
        color: #1a1a1a !important;
        border-color: rgba(0, 139, 153, 0.4) !important;
    }

    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]::-webkit-input-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control::-webkit-input-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]::-moz-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control::-moz-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]:-ms-input-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control:-ms-input-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]:-moz-placeholder,
    #mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control:-moz-placeholder {
        color: rgba(0, 0, 0, 0.5) !important;
    }

    .social-link:hover {
        background: rgba(199, 21, 133, 0.12);
    }
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

/* 
 * Universal reset: removes default margins, padding, and sets box-sizing
 * to border-box for more predictable sizing calculations.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   BODY STYLES
   ============================================ */

/* 
 * Main body styling:
 * - Uses system fonts as default (Fat Wandals only used in header/logo)
 * - Dark background (#0a0a0a) for graffiti aesthetic
 * - Allows scrolling for landing page
 * - Full viewport height minimum
 */
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    overflow: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ============================================
   SPRAY PAINT ANIMATION KEYFRAMES
   ============================================ */

/* 
 * Keyframe animation that simulates spray painting:
 * 
 * 0% (Start):
 *   - Letter is invisible, positioned below, rotated 90 degrees, scaled down
 *   - Heavy blur and bright glow simulate spray paint being applied
 * 
 * 50% (Midpoint):
 *   - Letter becomes visible, moves up slightly, rotates to normal
 *   - Slightly oversized (scale 1.1) for emphasis
 *   - Reduced blur, maximum glow intensity
 * 
 * 100% (End):
 *   - Letter fully visible, in final position, normal size
 *   - No blur, subtle glow remains
 * 
 * This creates the effect of letters being "sprayed" onto the wall.
 */
@keyframes sprayPaint {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
        filter: blur(10px) drop-shadow(0 0 20px rgba(255, 0, 128, 0.8));
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) rotateX(0deg) scale(1.1);
        filter: blur(2px) drop-shadow(0 0 30px rgba(255, 0, 128, 1));
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0) drop-shadow(0 0 10px rgba(255, 0, 128, 0.5));
    }
}

/* Animation for Spoken Words - same effect but ends with opacity 0.6 */
/* Uses cyan drop-shadow effects to match the cyan styling */
@keyframes sprayPaintSpoken {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
        filter: blur(10px) drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) rotateX(0deg) scale(1.1);
        filter: blur(2px) drop-shadow(0 0 30px rgba(0, 255, 255, 1));
    }
    100% {
        opacity: 0.6;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0) drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    }
}


/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   LANDING PAGE
   ============================================ */

/* 
 * Landing page content. Inner pages (Events, Archive of Rage) are visible immediately.
 * Homepage uses .home-loading to stay hidden until fonts load, then script sets opacity to 1.
 */
.landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    padding: var(--spacing-header) 1rem 1rem 1rem;
    opacity: 1;
}

.landing-page.home-loading {
    opacity: 0;
}

/* No-JavaScript: show message and hide spinner / show content */
.no-js-message {
    display: none;
}

.no-js .no-js-message {
    display: block;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--color-secondary);
    color: var(--color-text);
    text-align: center;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.no-js .loading-screen {
    display: none !important;
}

.no-js .landing-page.home-loading {
    opacity: 1 !important;
}

/* Site Header with Logo - sticks to top when scrolling (non-landing pages) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    text-align: center;
    padding: var(--spacing-header) 0;
    margin-bottom: 3rem;
}

/* Home page only: logo scrolls away, only nav bar sticks */
.landing-page .site-header {
    position: relative;
    background: transparent;
}
.landing-page .site-nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Fallback: dark glass when no preference or unsupported */
    background: rgba(10, 10, 10, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
    .landing-page .site-nav-bar {
        background: rgba(10, 10, 10, 0.72);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }
}

@media (prefers-color-scheme: light) {
    .landing-page .site-nav-bar {
        background: rgba(245, 245, 245, 0.72);
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }
}

.landing-page .site-nav-bar .site-nav {
    margin-top: 0;
    padding-top: 0;
}

/* Container for both Spoken Words and Raging Writers */
.header-logo-container {
    position: relative;
    display: inline-block;
}

.header-logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.header-logo-link:hover {
    color: inherit;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
}

.site-nav a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-primary-hover);
    text-shadow: 0 0 10px var(--color-primary-rgba-06);
}

/* Current page: underline when nav is horizontal */
.site-nav a.current {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.lang-switcher {
    color: var(--color-text-muted);
    font-size: 0.9em;
}
.lang-switcher a {
    color: var(--color-primary);
    text-decoration: none;
}
.lang-switcher a:hover {
    color: var(--color-primary-hover);
}

/* Desktop: more space below logo and between nav links (mobile unchanged) */
@media screen and (min-width: 769px) {
    .site-nav {
        margin-top: 4.5rem;
        padding-top: 1.25rem;
        gap: 2.25rem;
        font-size: 1.0625rem;
    }
    .landing-page .site-nav-bar .site-nav {
        margin-top: 0;
        padding-top: 0;
    }
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.archive-intro {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Events list and cards */
.events-container {
    margin-top: 0.5rem;
}

.no-js #events-loading {
    display: none;
}

.events-message {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.events-error {
    color: var(--color-secondary);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    font-family: var(--font-body);
    background: var(--color-white-rgba-005);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    color: var(--color-text-secondary);
}

.event-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.event-card-meta {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.event-card-location {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    background: var(--color-primary-rgba-02);
    color: var(--color-primary);
    border-radius: 4px;
}

.event-card-cost {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.event-card-link {
    margin-bottom: 0;
}

.event-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.event-link:hover {
    color: var(--color-primary-hover);
}

/* Spoken Words - Large cyan background text for header */
.header-spoken-words {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1em;
    font-size: clamp(3rem, 12vw, 6rem);
    font-family: var(--font-logo);
    font-feature-settings: "calt" 1;
    font-variant-ligatures: contextual;
    color: #000000;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.header-spoken-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.header-spoken-letter {
    display: inline-block;
    position: relative;
    margin-right: -0.05em;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: sprayPaintSpoken 0.8s ease-out forwards;
    color: #000000;
    font-family: var(--font-logo);
    font-feature-settings: "calt" 1;
    font-variant-ligatures: contextual;
    text-shadow: 
        2px 2px 0px rgba(0, 255, 255, 0.3),
        4px 4px 0px rgba(0, 255, 255, 0.2),
        0 0 15px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3);
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

/* Stack letters so each subsequent letter is behind the previous one */
/* Animation starts after Raging Writers completes (1.4s + 0.8s = 2.2s, so start at 2.3s) */
.header-spoken-line .header-spoken-letter:nth-child(1) { z-index: 13; animation-delay: 2.3s; }
.header-spoken-line .header-spoken-letter:nth-child(2) { z-index: 12; animation-delay: 2.4s; }
.header-spoken-line .header-spoken-letter:nth-child(3) { z-index: 11; animation-delay: 2.5s; }
.header-spoken-line .header-spoken-letter:nth-child(4) { z-index: 10; animation-delay: 2.6s; }
.header-spoken-line .header-spoken-letter:nth-child(5) { z-index: 9; animation-delay: 2.7s; }
.header-spoken-line .header-spoken-letter:nth-child(6) { z-index: 8; animation-delay: 2.8s; }
.header-spoken-line .header-spoken-letter:nth-child(7) { z-index: 7; animation-delay: 2.9s; }
.header-spoken-line .header-spoken-letter:nth-child(8) { z-index: 6; animation-delay: 3.0s; }
.header-spoken-line .header-spoken-letter:nth-child(9) { z-index: 5; animation-delay: 3.1s; }
.header-spoken-line .header-spoken-letter:nth-child(10) { z-index: 4; animation-delay: 3.2s; }
.header-spoken-line .header-spoken-letter:nth-child(11) { z-index: 3; animation-delay: 3.3s; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.1em;
    font-family: var(--font-logo);
    font-size: clamp(2rem, 8vw, 4rem);
    font-feature-settings: "calt" 1;
    font-variant-ligatures: contextual;
    position: relative;
    z-index: 1;
    /* Text-shadow and filter applied to individual letters */
}

.logo-letter {
    display: inline-block;
    position: relative;
    margin-right: -0.05em;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: sprayPaint 0.8s ease-out forwards;
    color: #ffffff;
    font-family: var(--font-logo);
    font-feature-settings: "calt" 1;
    font-variant-ligatures: contextual;
    text-shadow: 
        2px 2px 0px #ff0080,
        4px 4px 0px #ff0080,
        0 0 15px rgba(255, 0, 128, 0.6),
        0 0 30px rgba(255, 0, 128, 0.4),
        -1px -1px 0px #00ffff,
        -2px -2px 0px #00ffff;
    filter: drop-shadow(0 0 8px rgba(255, 0, 128, 0.5));
}

/* Staggered animation delays for logo letters - same as .letter */
/* r, a, g, i, n, g, [space], w, r, i, t, e, r, s */
/* nth-child: 1=r, 2=a, 3=g, 4=i, 5=n, 6=g, 7=space, 8=w, 9=r, 10=i, 11=t, 12=e, 13=r, 14=s */
.logo-letter:nth-child(1) { animation-delay: 0.1s; z-index: 14; }
.logo-letter:nth-child(2) { animation-delay: 0.2s; z-index: 13; }
.logo-letter:nth-child(3) { animation-delay: 0.3s; z-index: 12; }
.logo-letter:nth-child(4) { animation-delay: 0.4s; z-index: 11; }
.logo-letter:nth-child(5) { animation-delay: 0.5s; z-index: 10; }
.logo-letter:nth-child(6) { animation-delay: 0.6s; z-index: 9; }
.logo-letter:nth-child(8) { animation-delay: 0.7s; z-index: 8; } /* w - skip 7 (space) */
.logo-letter:nth-child(9) { animation-delay: 0.8s; z-index: 7; } /* r */
.logo-letter:nth-child(10) { animation-delay: 0.9s; z-index: 6; } /* i */
.logo-letter:nth-child(11) { animation-delay: 1.0s; z-index: 5; } /* t */
.logo-letter:nth-child(12) { animation-delay: 1.1s; z-index: 4; } /* e */
.logo-letter:nth-child(13) { animation-delay: 1.2s; z-index: 3; } /* r */
.logo-letter:nth-child(14) { animation-delay: 1.3s; z-index: 2; } /* s */

.logo-space {
    width: 0.3em;
    display: inline-block;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Styling */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--color-text);
    margin-bottom: var(--spacing-content);
    text-shadow: 
        1px 1px 0px var(--color-secondary),
        0 0 10px var(--color-secondary-rgba-05);
}

.about-section,
.schedule-section,
.newsletter-section,
.what-do-section,
.why-section,
.what-looks-like-section,
.past-events-section,
.details-section {
    margin-bottom: var(--spacing-section);
}

/* Shared content text styling - used across all content sections */
.content-text,
.about-content,
.schedule-content,
.what-do-content,
.why-content,
.what-looks-like-content,
.past-events-content,
.details-content {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.content-text p,
.about-content p,
.schedule-content p,
.what-do-content p,
.why-content p,
.what-looks-like-content p,
.details-content p {
    margin-bottom: var(--spacing-content);
}

/* Archive of Rage (past events) */
.past-event {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.past-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.past-event-date {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.past-event-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.past-events-content p {
    margin-bottom: 1rem;
}

.past-event-poems {
    margin-bottom: 1.25rem;
}

.poem-links {
    list-style: none;
    padding-left: 0;
}

.poem-links .poem-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.poem-links .poem-title-line {
    display: block;
}

.poem-links .poem-by-line {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.poem-links .poem-title-line a {
    color: var(--color-primary);
    text-decoration: underline;
}

.poem-links .poem-title-line a:hover {
    color: var(--color-primary-hover);
}

.poem-links .poem-author-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.poem-links .poem-author-link:hover {
    color: var(--color-primary-hover);
}

.prompt-statements {
    list-style: none;
    padding-left: 0;
}

.prompt-statements li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Spork link styling - highlighted with cyan color */
.spork-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.spork-link:hover {
    color: var(--color-primary-hover);
    text-shadow: 0 0 10px var(--color-primary-rgba-06);
}

.newsletter-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #e0e0e0;
}

.newsletter-content ul {
    margin: 1rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.newsletter-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-shadow: 0 0 10px var(--color-primary-rgba-06);
}

a:visited {
    color: var(--color-primary);
}

/* Footer */
.site-footer {
    margin-top: var(--spacing-section);
    padding: var(--spacing-header) 0 1rem 0;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.country-item {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.writing-against-machine {
    font-family: var(--font-logo);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--color-text);
    margin-bottom: 1rem;
    font-feature-settings: "calt" 1;
    font-variant-ligatures: contextual;
    text-shadow: 
        1px 1px 0px var(--color-secondary),
        0 0 10px var(--color-secondary-rgba-05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: var(--color-secondary);
    background: rgba(255, 0, 128, 0.1);
    box-shadow: 0 0 15px var(--color-secondary-rgba-03);
    transform: scale(1.1);
}

/* ============================================
   NEWSLETTER FORM STYLES (MailerLite)
   ============================================ */

/* LOADER */
.ml-form-embedSubmitLoad {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.g-recaptcha {
    transform: scale(1);
    -webkit-transform: scale(1);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.ml-form-embedSubmitLoad:after {
    content: " ";
    display: block;
    width: 11px;
    height: 11px;
    margin: 1px;
    border-radius: 50%;
    border: 4px solid #fff;
    border-color: #ffffff #ffffff #ffffff transparent;
    animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}

@keyframes ml-form-embedSubmitLoad {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#mlb2-34990230.ml-form-embedContainer {
    box-sizing: border-box;
    display: table;
    margin: 0 auto;
    position: static;
    width: 100% !important;
}

#mlb2-34990230.ml-form-embedContainer h4,
#mlb2-34990230.ml-form-embedContainer p,
#mlb2-34990230.ml-form-embedContainer span,
#mlb2-34990230.ml-form-embedContainer button {
    text-transform: none !important;
    letter-spacing: normal !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper {
    background-color: transparent;
    border-width: 0px;
    border-color: transparent;
    border-radius: 4px;
    border-style: solid;
    box-sizing: border-box;
    display: inline-block !important;
    margin: 0;
    padding: 0;
    position: relative;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper.embedPopup,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper.embedDefault {
    width: 400px;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 100%;
    width: 100%;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-align-left {
    text-align: left;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-align-center {
    text-align: center;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-align-default {
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: center !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-align-right {
    text-align: right;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedHeader img {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: auto;
    margin: 0 auto !important;
    max-width: 100%;
    width: undefinedpx;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
    padding: 0;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent {
    text-align: left;
    margin: 0 0 1.5rem 0;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-align: left;
    word-break: break-word;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 400;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent ul {
    margin: 1rem 0 var(--spacing-content) 2rem !important;
    padding-left: 1rem !important;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.8;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"],
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: rgba(0, 255, 255, 0.5) !important;
    border-radius: 4px !important;
    border-style: solid !important;
    border-width: 1px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 10px 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    transition: all 0.3s ease !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]:focus,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    background-color: var(--color-white-rgba-01) !important;
    box-shadow: 0 0 10px var(--color-primary-rgba-03) !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]::-webkit-input-placeholder,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control::-webkit-input-placeholder {
    color: var(--color-white-rgba-05) !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]::-moz-placeholder,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]:-ms-input-placeholder,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody input[type="email"]:-moz-placeholder,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .form-control:-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody button[type="submit"] {
    background-color: var(--color-primary) !important;
    border: 1px solid var(--color-primary-rgba-05) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px var(--color-primary-rgba-02) !important;
    color: var(--color-bg) !important;
    cursor: pointer !important;
    font-family: var(--font-body) !important;
    font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
#mlb2-34990230.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody button[type="submit"]:hover {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-secondary-rgba-05) !important;
    color: var(--color-text) !important;
    box-shadow: 0 0 15px var(--color-secondary-rgba-04) !important;
    text-shadow: 0 0 10px var(--color-secondary-rgba-08) !important;
}

/* Responsive adjustments for landing page */
@media screen and (max-width: 768px) {
    .landing-page {
        padding: var(--spacing-header-mobile) 1rem 1rem 1rem;
    }
    
    .site-header {
        padding: var(--spacing-header-mobile) 0;
        margin-bottom: 2rem;
    }
    
    /* Scale down Spoken Words on mobile */
    .header-spoken-words {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }
    
    /* Scale down shadows on mobile */
    .header-spoken-letter {
        text-shadow: 
            1.5px 1.5px 0px rgba(0, 255, 255, 0.3),
            3px 3px 0px rgba(0, 255, 255, 0.2),
            0 0 10px rgba(0, 255, 255, 0.4),
            0 0 20px rgba(0, 255, 255, 0.3);
        filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.5));
    }
    
    .about-section,
    .schedule-section,
    .newsletter-section,
    .what-do-section,
    .why-section,
    .what-looks-like-section,
    .past-events-section,
    .details-section {
        margin-bottom: var(--spacing-section-mobile);
    }
    
    .social-links {
        gap: 1rem;
    }
}

/* Nav stacks vertically at 480px and below */
@media screen and (max-width: 480px) {
    .site-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    /* Current page when stacked: left border accent instead of underline */
    .site-nav a.current {
        text-decoration: none;
        padding-left: 0.75rem;
        border-left: 3px solid var(--color-primary);
    }
}

