/* ==========================================================================
   GUDU LOPES — stylesheet
   --------------------------------------------------------------------------
   You almost never need to touch this file to update content.
   The one thing worth knowing: the colours are defined ONCE, just below,
   under ":root". Change a value there and it updates everywhere on the site.
   ========================================================================== */

/* --- COLOUR & TYPE TOKENS ------------------------------------------------ */
/* EDIT: COLOURS — change these six values to re-skin the whole site.        */
:root {
    --bg:            #060607;   /* page background (near-black)               */
    --bg-elevated:   #101216;   /* cards, footer, nav                         */
    --text:          #f2f0ea;   /* main text (warm off-white)                */
    --text-muted:    #9aa0a6;   /* secondary text                            */
    --accent:        #7d8b97;   /* highlights, links, active state           */
    --line:          #23262c;   /* hairline borders / dividers               */

    --max-width: 1100px;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Lato', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

h1, h2, h3, .logo {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* Visible keyboard focus everywhere (accessibility) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #000;
    padding: 0.6rem 1rem;
    z-index: 100;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* --- NAVIGATION ----------------------------------------------------------- */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.logo {
    font-size: 1.35rem;
    letter-spacing: 0.22em;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.4rem;
}
.nav-toggle span {
    width: 26px; height: 2px; background: var(--text); display: block;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 20;
}
.nav-links.open { max-height: 340px; }
.nav-links li { border-top: 1px solid var(--line); }
.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}
.nav-links a:hover { color: var(--accent); }
/* Current page marker — underline + full-contrast text (WCAG-safe) */
.nav-links a[aria-current="page"] {
    color: var(--text);
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Desktop nav — breakpoint widened to 940px so the horizontal menu never crowds */
@media (min-width: 940px) {
    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        gap: 2rem;
        max-height: none;
        overflow: visible;
        background: none;
        border: 0;
    }
    .nav-links li { border: 0; }
    .nav-links a { padding: 0.25rem 0; }
    .nav-links a[aria-current="page"] {
        box-shadow: none;
        border-bottom: 2px solid var(--accent);
    }
}

/* --- HERO ----------------------------------------------------------------- */
.hero {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 5vw, 3rem);
}
.hero h1 {
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
}
.hero .tagline {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    max-width: 40ch;
    margin: 0 auto;
}

/* --- STREAMING CARD ------------------------------------------------------- */
.stream-section { padding: 0 1.25rem clamp(2.5rem, 6vw, 4rem); }
.stream-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 640px;
    margin: 0 auto;
}
.stream-card h2 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
}
.stream-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
}
.stream-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s;
}
.stream-link:hover { transform: translateY(-3px); }
.stream-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff;
}
.stream-icon svg { width: 26px; height: 26px; }
/* Brand colours for the icon circles */
.yt    { background: #FF0000; }
.spot  { background: #1DB954; }
.apple { background: linear-gradient(135deg, #FB5C74, #FA243C); }

/* --- LATEST VIDEO --------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    text-align: center;
    margin-bottom: 2rem;
}
.eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;      /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* --- BIO ------------------------------------------------------------------ */
.bio { max-width: 680px; margin: 0 auto; }
.bio p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1.05rem; }
.bio p:last-child { margin-bottom: 0; }

/* --- FOUR DOORS GRID ------------------------------------------------------ */
.doors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}
@media (min-width: 620px) { .doors-grid { grid-template-columns: 1fr 1fr; } }
.door-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.25s, transform 0.25s;
}
.door-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.door-card .roman {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}
.door-card h3 { font-size: 1.4rem; margin: 0.4rem 0 0.5rem; }
.door-card p { color: var(--text-muted); font-size: 0.92rem; }
.door-card.upcoming { opacity: 0.6; }
.door-card .status {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

/* --- DEDICATED DOOR PAGES ------------------------------------------------- */
.page-header { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1.25rem 1rem; }
.page-header .roman { color: var(--accent); letter-spacing: 0.25em; font-size: 0.85rem; }
.page-header h1 { font-size: clamp(2rem, 7vw, 3rem); margin-top: 0.5rem; }
.content-section { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 5rem; }
.backstory { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.backstory p { margin-bottom: 1.1rem; }
.backstory strong { color: var(--text); }

/* --- SOCIAL ROW ----------------------------------------------------------- */
.socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.socials a {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--text); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; }

/* --- FOOTER --------------------------------------------------------------- */
footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    padding: 2.5rem 1.25rem;
    text-align: center;
}
footer .socials { margin-bottom: 1.5rem; }
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ==========================================================================
   ADDITIONS — umbrella/wings structure, album-style door pages, Bandcamp
   ========================================================================== */

/* --- WORLD / WING CARDS (home hub) --------------------------------------- */
.worlds-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 720px) { .worlds-grid { grid-template-columns: 1fr 1fr; } }
.world-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    transition: border-color 0.25s, transform 0.25s;
}
.world-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.world-card .kicker {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.68rem;
    color: var(--accent);
}
.world-card h3 { font-size: 1.6rem; margin: 0.5rem 0 0.6rem; }
.world-card p { color: var(--text-muted); font-size: 0.95rem; }
.world-card .enter {
    display: inline-block; margin-top: 1rem;
    font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent);
}

/* --- BREADCRUMB / SUB-NAV ------------------------------------------------- */
.breadcrumb {
    max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 0;
    font-size: 0.8rem; letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* --- ALBUM HEAD (cover + tracklist) -------------------------------------- */
.album-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
}
@media (min-width: 640px) { .album-head { grid-template-columns: 260px 1fr; align-items: start; } }
.cover {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #16181d, #0b0c0f);
    display: flex; align-items: center; justify-content: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* Graceful placeholder shown until a real cover image is uploaded */
.cover .cover-fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1rem; color: var(--text-muted);
    font-family: var(--font-display); letter-spacing: 0.12em;
}
.cover img { position: relative; z-index: 1; }
.release-meta {
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 0.72rem; margin-bottom: 0.6rem;
}
.tracklist { list-style: none; }
.tracklist li {
    display: flex; gap: 0.75rem; padding: 0.45rem 0;
    border-bottom: 1px solid var(--line); color: var(--text);
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist .num { color: var(--text-muted); width: 1.5rem; text-align: right; flex: none; }
.tracklist .soon { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-left: auto; }

/* --- PER-SONG TRACK SECTIONS --------------------------------------------- */
.tracks { max-width: 820px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
.track { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.track:first-child { border-top: 0; }
.track .track-index {
    font-family: var(--font-display); color: var(--accent);
    letter-spacing: 0.2em; font-size: 0.8rem;
}
.track h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.3rem 0 1.25rem; }
.track-story { color: var(--text-muted); font-size: 1.05rem; margin-top: 1.25rem; }
.track-story p { margin-bottom: 1rem; }
.track-story:empty { margin-top: 0; }

/* --- BANDCAMP / GENERIC CTA BUTTON --------------------------------------- */
.btn-listen {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent); color: #05070a;
    text-decoration: none; font-weight: 700;
    padding: 0.8rem 1.4rem; border-radius: 8px;
    letter-spacing: 0.02em; transition: opacity 0.2s;
}
.btn-listen:hover { opacity: 0.88; }
.embed-slot {
    max-width: 700px; margin: 1.5rem auto 0;
    border: 1px dashed var(--line); border-radius: 10px;
    padding: 1.25rem; color: var(--text-muted); font-size: 0.9rem; text-align: center;
}
