/* =========================================================================
   THEME — MUSIC · CANTOCREUM
   Concert poster: dusk-slate cool mid-tones, flyposter Anton, hot pink and
   electric yellow accents, halftone/grain texture, brutal typography.

   Drives every page in the music vertical via design tokens + a small set
   of utility classes. Page-level CSS reads from the variables below; no
   page should hard-code a pink hex outside this file.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;600;700&family=Archivo:wght@500;700;900&display=swap');

:root {
    /* ── SURFACES ────────────────────────────────────────────────────────
       Not pitch black. Dusk slate — last hour before doors open. Cool
       blue-grey base; a hair warmer when elevated. */
    --bg-base:        #1c1f2a;
    --bg-surface:     #232734;
    --bg-elevated:    #2d3142;
    --bg-deep:        #15171f;

    /* ── TYPE ────────────────────────────────────────────────────────────
       Warm cream — concert flyer paper that's been pinned up for a week. */
    --text-primary:   #f5f0e6;
    --text-mute:      rgba(245, 240, 230, 0.72);
    --text-faint:     rgba(245, 240, 230, 0.45);

    /* ── ACCENTS ─────────────────────────────────────────────────────────
       Hot pink for the headliner. Electric yellow for the date. Gold for
       the after-show moments. */
    --accent:         #ff1f8f;   /* hot pink — flyposter scream */
    --accent-2:       #ffd54f;   /* electric yellow — gig date */
    --accent-3:       #00d4d4;   /* cyan — the secret act */
    --accent-warm:    #d4a24c;   /* gold — encore */
    --accent-muted:   #d4a24c;

    /* ── LINES ───────────────────────────────────────────────────────────
       Gaff tape on the dressing-room mirror. */
    --border:         rgba(245, 240, 230, 0.10);
    --border-strong:  rgba(245, 240, 230, 0.28);

    /* ── TYPE STACK ─────────────────────────────────────────────────────
       Anton for the flyposter headlines. Archivo for nav/labels (a more
       refined condensed sans for the smaller stuff). Space Grotesk for
       body copy. */
    --font-heading:   'Anton', 'Impact', 'Oswald', sans-serif;
    --font-label:     'Archivo', system-ui, sans-serif;
    --font-body:      'Space Grotesk', system-ui, sans-serif;

    /* ── Aliases that older templates expect ─────────────────────────── */
    --paper:          var(--bg-base);
    --paper-2:        var(--bg-surface);
    --ink:            var(--text-primary);
    --ink-soft:       var(--text-mute);
    --ink-mute:       var(--text-faint);
    --rule:           var(--border);
    --rule-hi:        var(--border-strong);
    --gold:           var(--accent-warm);
    --gold-bright:    var(--accent);
    --mauve:          var(--accent-3);
    --mustard:        var(--accent-2);
    --serif:          var(--font-heading);
    --sans:           var(--font-body);
    --mono:           'Space Grotesk', monospace;
}

/* ── BODY DEFAULTS ─────────────────────────────────────────────────────
   Force the cool mid-tone background and warm cream text on every page so
   inherited evolum-studio CSS doesn't bleed through. */
body {
    background: var(--bg-base) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── HEADLINE FLYPOSTER MODE ──────────────────────────────────────────
   Anything tagged with .headline or h1.flyposter goes BIG. Tight tracking,
   tight leading — the way a real gig poster screams the headliner's name. */
h1, h2, h3, h4, h5, h6,
.headline, .flyposter, .nav-brand, .prog-title {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.92;
}
.headline em, .flyposter em {
    font-style: normal;
    color: var(--accent);
    text-shadow: 0 0 22px rgba(255, 31, 143, 0.45);
}

/* ── LABEL / NAV / MICROTYPE ──────────────────────────────────────────
   Archivo, tracked + all-caps for nav and section labels. */
.nav-link, .nav-edition, .mast-l, .mast-r,
.prog-kicker, .prog-label-l, .prog-label-r,
.doors-mast-l, .doors-mast-r,
.prog-meta, .prog-link {
    font-family: var(--font-label) !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ── GRAIN OVERLAY ─────────────────────────────────────────────────────
   Subtle halftone-dot pattern dragged across the entire viewport. Sits
   above content backgrounds, below interactive surface. Adds the
   "photocopied at 3am" feel without obscuring readability. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 240, 230, 0.04) 1px, transparent 0);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Brand mark in the nav — hot-pink dot punctuation */
.nav-brand .dot {
    color: var(--accent) !important;
    text-shadow: 0 0 14px rgba(255, 31, 143, 0.55);
}

/* ── PIN / TAPE — decorative element for poster-like cards ──────────── */
.is-pinned {
    position: relative;
}
.is-pinned::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    width: 50px; height: 16px;
    background: rgba(255, 213, 79, 0.65);
    border: 1px solid rgba(255, 213, 79, 0.85);
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ── FIT-TO-SCREEN ENFORCEMENT ──────────────────────────────────────────
   Index/home page should not body-scroll. Internal scroll containers (the
   chat box, the program list, etc.) handle their own overflow. */
html, body {
    height: 100%;
    overflow: hidden;
}
.pg, .h2-wrap, .page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
