
/* ===========================
   COLOR VARIABLES
   using CSS custom properties -> root allows to change color only in 1 place
   learned from: MDN docs on custom properties
   =========================== */
:root {
    /* brand colors */
    --coral:      #ffbdb6;   /* lighter coral, used on dark backgrounds */
    --coral-dark: #532123;   /* dark red, used as muted text in light mode */
    --coral-text: #8b1a10;   /* darker coral for text on light backgrounds — passes contrast */

    /* palette */
    --navy:      #163C52;
    --navy-mid:  #2a5a75;
    --cream:     #FFECCC;
    --teal:      #4A9AAA;
    --teal-light: #B4D3C7;

    /* semantic tokens — these are what i actually use in the CSS below
       so if i want to change the whole color scheme i just edit these */
    --bg:      var(--navy);
    --bg-card: var(--navy-mid);
    --text:    var(--cream);
    --accent:  var(--coral);
    --muted:   var(--teal-light);
    --border:  rgba(255,236,204,0.15);

    /* fonts */
    --font-display: 'Playfair Display', serif;
    --font-body:    'Urbanist', sans-serif;

    /* reusable transition for the color scheme switch */
    --transition-color: background-color 0.3s ease, color 0.3s ease;
}

/* light scheme — JS adds this class to body when user scrolls past the hero
   i have two versions of coral because the light one (#ffbdb6) doesn't have
   enough contrast on a cream background, so i switch to the darker one here */
body.scheme-light {
    --bg:      var(--cream);
    --bg-card: #fff8ef;
    --text:    var(--navy);
    --accent:  var(--coral-text);   /* darker coral for contrast on light bg */
    --muted:   var(--coral-dark);
    --border:  rgba(22,60,82,0.15);
}

/* ===========================
   BASE STYLES
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    transition: var(--transition-color);
    overflow-x: hidden;
}

/* ===========================
   SKIP LINK
   this is an accessibility thing — lets keyboard/screen reader users
   jump straight to the main content without tabbing through the nav
   =========================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}

/* only shows up when focused (i.e. when tabbing) */
.skip-link:focus {
    top: 0;
}

/* ===========================
   FOCUS STYLES
   browsers have default focus outlines but they're often hard to see,
   so i'm making a more visible one using :focus-visible (not :focus,
   which would show on mouse clicks too)
   =========================== */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ===========================
   HEADER / NAV
   fixed so it stays at the top when scrolling
   =========================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-color), padding 0.4s ease;
}

/* JS adds this class after scrolling 60px — shrinks the padding a bit */
header.scrolled {
    padding: 0.6rem 5%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-area img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 3px;
    transition: color 0.3s;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

/* ===========================
   HERO — SECTION 1
   min-height: 100vh makes it fill the whole screen
   =========================== */
#section-1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 5%;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 9rem;
    line-height: 1.05;
    color: var(--text);
}

.hero-title span {
    color: var(--accent);
}

/* the little scroll arrow at the bottom of the hero
   using prefers-reduced-motion, shouldn't animate for users who have that setting turned on */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.7;
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll-hint {
        animation: bounce 2s ease-in-out infinite;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   ABOUT — SECTION 2
   two column grid: text on left, photo on right
   =========================== */
#section-2 {
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* used as a section title across the page */
.section-label {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-body {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* the band photo — aspect-ratio + overflow:hidden crops it cleanly */
.about-illustration {
    border: 1px solid var(--border);
    border-radius: 16px;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.about-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* reusable button style used in sections 2 and 4 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ===========================
   PERFORMANCES — SECTION 3
   video thumbnails in a 3-column grid
   =========================== */
#section-3 {
    padding: 6rem 5%;
    background: var(--bg-card);
    transition: background-color 0.3s ease;
}
.lightbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lightbox-grid a:hover,
.lightbox-grid a:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.lightbox-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

/* ===========================
   PRESS & SOCIAL — SECTION 4
   auto-fit grid so cards wrap on smaller screens
   =========================== */
#section-4 {
    padding: 8rem 5%;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s;
}

.media-card:hover {
    transform: translateY(-3px);
}

/* flyer images inside cards */
.media-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 1rem;
}

.media-source {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.media-headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* link states in LVHA order (Link, Visited, Hover, Active)
   visited uses --muted so it's visually distinct but still readable */
.media-headline a:link    { color: var(--text); text-decoration: none; }
.media-headline a:visited { color: var(--muted); text-decoration: none; }
.media-headline a:hover,
.media-headline a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.media-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===========================
   REDUCED MOTION
   if the user has "reduce motion" turned on in their OS settings,
   turn off all transitions and animations
   nothing else moves around
   =========================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    body,
    header,
    .logo-name,
    nav a,
    .hero-title,
    .about-illustration,
    .btn,
    .section-body,
    .media-card,
    .lightbox-item,
    .lightbox-caption,
    .play-btn,
    .modal-overlay,
    #section-3 {
        transition: none;
        animation: none;
    }
}