/* ═══════════════════════════════════════════════════════════════
   The Man & His Failures — Theme Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & ROOT ─────────────────────────────────────────────── */

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

:root {
    --black:       #000000;
    --fuchsia:     #E8007A;
    --fuchsia-dim: #9B0050;
    --white:       #F0EDE8;
    --grey:        #1C1C1C;
    --font-display: 'UnifrakturMaguntia', serif;
    --font-serif:   'Special Elite', serif;
    --font-mono:    'Share Tech Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body.tmahf-body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ── GRAIN & SCANLINES ────────────────────────────────────────── */

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.025) 2px,
        rgba(0,0,0,0.025) 4px
    );
}

/* ── NAVIGATION ───────────────────────────────────────────────── */

.tmahf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.93);
    border-bottom: 1px solid var(--fuchsia);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    backdrop-filter: blur(4px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--fuchsia);
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.8; }

.tmahf-nav ul {
    display: flex;
    gap: 24px;
    align-items: center;
}

.tmahf-nav ul a {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.6;
    transition: color 0.2s, opacity 0.2s;
}

.tmahf-nav ul a:hover {
    color: var(--fuchsia);
    opacity: 1;
}

/* ── HERO ─────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: contrast(1.25) brightness(0.6) grayscale(0.1);
}

/* Gradient overlay — fade to black at bottom */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.85) 75%,
        rgba(0,0,0,0.98) 100%
    );
}

.hero-bg--fallback {
    background: #0d0d0d;
}

/* Fuchsia glow — top left atmospheric */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(232,0,122,0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 28px 64px;
    width: 100%;
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fuchsia);
    margin-bottom: 14px;
    opacity: 0.9;
}

.hero-band-name {
    font-family: var(--font-display);
    font-size: clamp(52px, 12vw, 80px);
    line-height: 0.9;
    color: var(--white);
    text-shadow:
        2px 2px 0 var(--fuchsia),
        -1px -1px 0 rgba(232,0,122,0.25);
    margin-bottom: 10px;
    word-break: break-word;
}

.hero-band-name .amp {
    color: var(--fuchsia);
}

.hero-album {
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.6;
    margin-bottom: 32px;
}

.hero-album span {
    color: var(--fuchsia);
    opacity: 1;
}

.hero-cta {
    display: inline-block;
    background: var(--fuchsia);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 28px;
    box-shadow: 3px 3px 0 rgba(232,0,122,0.4);
    transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
    background: var(--white);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 rgba(232,0,122,0.5);
}

/* ── DIVIDER ──────────────────────────────────────────────────── */

.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--fuchsia);
    opacity: 0.35;
    display: block;
}

.divider-skull {
    color: var(--fuchsia);
    font-size: 14px;
    opacity: 0.6;
    display: block;
}

/* ── SECTIONS — SHARED ────────────────────────────────────────── */

.tmahf-section {
    padding: 64px 24px 48px;
    position: relative;
}

.section-album,
.section-bio,
.section-physical {
    background: var(--black);
}

.section-stream,
.section-live {
    background: var(--grey);
}

.section-label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--fuchsia);
    margin-bottom: 24px;
    opacity: 0.85;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 38px);
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
}

.section-heading .accent {
    color: var(--fuchsia);
}

.fuchsia-rule {
    width: 100%;
    height: 2px;
    background: var(--fuchsia);
    opacity: 0.55;
    margin: 8px 0 28px;
    transform: rotate(-0.2deg) scaleX(1.01);
    transform-origin: left;
    display: block;
}

/* ── ALBUM SECTION ────────────────────────────────────────────── */

.album-cover-wrap {
    position: relative;
    margin-bottom: 28px;
    display: inline-block;
    width: 100%;
}

.album-cover-img {
    width: 100%;
    filter: contrast(1.08);
    transform: rotate(-0.4deg);
    box-shadow:
        6px 6px 0 var(--fuchsia-dim),
        12px 12px 0 rgba(232,0,122,0.12);
}

.album-stamp {
    position: absolute;
    top: 14px;
    right: -4px;
    background: var(--fuchsia);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 10px;
    transform: rotate(3deg);
}

.debut-badge {
    display: inline-block;
    border: 1px solid var(--fuchsia);
    color: var(--fuchsia);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.album-name {
    font-family: var(--font-display);
    font-size: clamp(34px, 9vw, 48px);
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.album-meta {
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--fuchsia);
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}

.album-desc {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(240,237,232,0.72);
    border-left: 2px solid var(--fuchsia);
    padding-left: 16px;
    margin-bottom: 28px;
    font-style: normal;
}

/* Tracklist */
.tracklist {
    border-top: 1px solid rgba(232,0,122,0.2);
}

.track-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.track-num {
    color: var(--fuchsia);
    font-size: 9px;
    min-width: 24px;
    opacity: 0.65;
}

.track-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex: 1;
}

/* ── STREAMING ────────────────────────────────────────────────── */

.stream-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.stream-btn {
    display: block;
    text-align: center;
    padding: 14px 10px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(232,0,122,0.28);
    transition: border-color 0.2s, color 0.2s;
    position: relative;
}

.stream-btn:hover {
    border-color: var(--fuchsia);
    color: var(--fuchsia);
}

/* ── BIO SECTION ──────────────────────────────────────────────── */

.bio-photo-wrap {
    position: relative;
    margin-bottom: 28px;
}

.bio-photo {
    width: 100%;
    filter: contrast(1.3) brightness(0.8) grayscale(0.15);
    transform: rotate(0.3deg);
}

.bio-photo-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--fuchsia);
    z-index: 1;
}

.bio-founded-stamp {
    position: absolute;
    bottom: 16px;
    right: 0;
    background: var(--fuchsia);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.bio-members {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--fuchsia);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.5;
}

.bio-text {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(240,237,232,0.72);
    margin-bottom: 16px;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid var(--fuchsia);
    color: var(--fuchsia);
}

/* ── LIVE ─────────────────────────────────────────────────────── */

.live-subheading {
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fuchsia);
    opacity: 0.7;
    margin-bottom: 12px;
    margin-top: 24px;
}

.live-list {
    border-top: 1px solid rgba(232,0,122,0.15);
}

.live-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(232,0,122,0.1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.live-act {
    color: var(--white);
    flex: 1;
}

.live-tag {
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 3px 7px;
}

.live-tag--past {
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

.live-tag--upcoming {
    background: var(--fuchsia);
    color: var(--black);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ── PHYSICAL ─────────────────────────────────────────────────── */

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.format-card {
    border: 1px solid rgba(232,0,122,0.28);
    padding: 24px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background: rgba(232,0,122,0.03);
    gap: 6px;
}

.format-badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--fuchsia-dim);
    color: var(--white);
    font-size: 8px;
    padding: 3px 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.format-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 4px;
    filter: grayscale(0.4);
}

.format-name {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: block;
}

.format-detail {
    font-size: 10px;
    color: var(--fuchsia);
    opacity: 0.8;
    line-height: 1.5;
    display: block;
}

.phys-credits {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.buy-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--fuchsia);
    color: var(--fuchsia);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.buy-btn:hover {
    background: var(--fuchsia);
    color: var(--black);
}

/* ── FOOTER ───────────────────────────────────────────────────── */

.tmahf-footer {
    background: var(--black);
    border-top: 1px solid rgba(232,0,122,0.3);
    padding: 36px 24px 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--fuchsia);
    display: block;
}

.footer-tagline {
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    display: block;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 8px 0;
}

.footer-social a {
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--fuchsia);
}

.footer-copy {
    font-size: 9px;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.1em;
}

.footer-labels {
    color: rgba(232,0,122,0.5);
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media ( min-width: 600px ) {
    .tmahf-section {
        padding: 72px 40px 56px;
    }

    .hero-content {
        padding: 0 40px 80px;
    }

    .tmahf-nav {
        padding: 14px 40px;
    }

    .stream-grid {
        grid-template-columns: repeat( 3, 1fr );
    }
}

@media ( min-width: 900px ) {
    .tmahf-section {
        max-width: 760px;
        margin: 0 auto;
        padding: 80px 0 64px;
    }

    .hero-content {
        padding: 0 0 96px;
        max-width: 760px;
        margin: 0 auto;
        width: 100%;
    }

    .tmahf-nav {
        padding: 14px calc(50% - 380px);
    }

    .section-divider {
        max-width: 760px;
        margin: 0 auto;
        padding: 0;
    }

    .tmahf-footer {
        padding: 40px 0 64px;
    }
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */

@media ( prefers-reduced-motion: reduce ) {
    html { scroll-behavior: auto; }
    .live-tag--upcoming { animation: none; }
    .hero-cta { transition: none; }
}
