/*
 * DARK GALLERY AESTHETIC — BLACK + WHITE + WARM AMBER
 * Background: Deep Black #0A0A0A
 * Text: Crisp White #FFFFFF
 * Accent: Warm Amber #E8A000
 * Moody, gallery-after-dark, high-contrast minimalism.
 *
 * This file loads AFTER inline <style> blocks — overrides via specificity + !important.
 */

/* === ADDITIONAL TYPEFACES === */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* === DESIGN TOKENS === */
:root {
    --void:        #0A0A0A !important;   /* Deep black — used as background color across all pages */
    --carbon:      #1A1A1A !important;   /* Alt section bg — dark grey */
    --concrete:    #0A0A0A !important;   /* Deep black */
    --steel:       #BBBBBB !important;   /* Mid-tone text */
    --bone:        #AAAAAA !important;   /* Body text, muted */
    --warm:        #E8A000 !important;   /* WARM AMBER — warm accent, golden-orange */
    --text-light:  #FFFFFF !important;   /* Primary white text */
    --text-muted:  #AAAAAA !important;   /* Muted text */
    --white:       #FFFFFF !important;   /* Pure white */
    --accent:      #E8A000;
    --accent-text: #0A0A0A;  /* Deep black text on amber bg */
    --accent-glow: rgba(232, 160, 0, 0.2);
    --accent-dim:  rgba(232, 160, 0, 0.5);
    --border-hard: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.06);
}

/* === BASE OVERRIDES === */
html {
    scroll-behavior: auto !important;
    overflow-x: hidden !important;
}

body {
    background: #0A0A0A !important;
    color: #FFFFFF !important;
    font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif !important;
    letter-spacing: 0.01em;
    /* FIX: Override inline word-break: break-word that causes mid-word splits on display type */
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Keep the noise texture but tune for dark bg */
body::after {
    opacity: 0.02 !important;
}

/* === SELECTION COLOR === */
::selection {
    background: var(--accent) !important;
    color: #0A0A0A !important;
}

::-moz-selection {
    background: var(--accent) !important;
    color: #0A0A0A !important;
}

/* =============================================================
   NAVIGATION — lean, sharp, dark gallery elegance
   ============================================================= */
nav {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid var(--border-hard) !important;
    box-shadow: none !important;
    padding: 1.2rem 3rem !important;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

nav.visible {
    background: rgba(10, 10, 10, 0.95) !important;
    display: flex !important;
}

.nav-name {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.35em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
}

.nav-links a {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #AAAAAA !important;
    transition: color 0.15s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FFFFFF !important;
}

/* === HAMBURGER === */
.hamburger-fixed span,
.hamburger span {
    background: #FFFFFF !important;
    height: 1px !important;
}

/* === MOBILE MENU — full-screen, dark gallery === */
.mobile-menu {
    background: #0A0A0A !important;
    overflow: hidden !important;
    overflow-y: auto !important;
    padding: 0 1rem !important;
}

.mobile-menu a {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(1.4rem, 8vw, 3.5rem) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    position: relative !important;
    transition: color 0.15s ease !important;
    max-width: 100% !important;
    text-align: center !important;
}

.mobile-menu a:hover {
    color: var(--accent) !important;
}

.mobile-close {
    color: #AAAAAA !important;
    font-size: 2rem !important;
}

/* =============================================================
   ARTIST NAMEPLATE — MASSIVE, white on black
   ============================================================= */
.artist-nameplate {
    background: #0A0A0A !important;
    padding: 4rem 3rem 3rem !important;
    border-bottom: 2px solid var(--accent) !important;
}

.artist-nameplate h1 {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(4rem, 14vw, 12rem) !important;
    letter-spacing: -0.03em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    line-height: 0.88 !important;
    margin-left: -0.04em !important;
}

/* =============================================================
   HERO — full bleed, paintings pop against black
   ============================================================= */
.hero {
    height: 100vh !important;
    min-height: 600px !important;
    position: relative !important;
}

.hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 30% !important;
    background: linear-gradient(to top, #0A0A0A 0%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Sticker — keep but adjust for dark bg */
.sticker-provincetown {
    z-index: 10 !important;
    mix-blend-mode: screen !important;
    filter: none !important;
    width: clamp(120px, 16vw, 280px) !important;
}

/* =============================================================
   IMPACT ZONE — asymmetric, aggressive white typography
   ============================================================= */
.impact-zone {
    background: #0A0A0A !important;
    padding: 8rem 3rem 10rem 8rem !important;
}

.tagline-line {
    font-family: 'Space Mono', monospace !important;
    font-size: clamp(0.85rem, 1.4vw, 1.1rem) !important;
    font-style: normal !important;
    color: #AAAAAA !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.6 !important;
    margin-bottom: 6rem !important;
    max-width: 500px !important;
    border-left: 2px solid var(--accent) !important;
    padding-left: 1.5rem !important;
}

/* === DOORS — massive, minimal, white text === */
.doors {
    border-top: 1px solid var(--border-hard) !important;
}

.door {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2.5rem 0 !important;
    border-bottom: 1px solid var(--border-hard) !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(2rem, 5.5vw, 4.5rem) !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.door::after {
    content: '\2192' !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.7em !important;
    font-weight: 400 !important;
    color: #666666 !important;
    transition: all 0.2s ease !important;
}

.door:hover {
    color: var(--accent) !important;
    padding-left: 1.5rem !important;
}

.door:hover::after {
    color: var(--accent) !important;
    transform: translateX(0.5rem) !important;
}

/* =============================================================
   BREATHING ROOM — bigger, dark bg
   ============================================================= */
.breathing-room {
    height: 15vh !important;
    min-height: 80px !important;
    background: #0A0A0A !important;
}

/* =============================================================
   EMAIL CAPTURE — amber takeover on black
   ============================================================= */
.email-capture {
    background: var(--accent) !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.email-capture::before {
    content: 'JOIN' !important;
    position: absolute !important;
    top: -0.15em !important;
    right: -0.02em !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(15rem, 30vw, 35rem) !important;
    text-transform: uppercase !important;
    color: rgba(0, 0, 0, 0.08) !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    letter-spacing: -0.04em !important;
}

.email-capture-inner {
    padding: 6rem 4rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.email-capture-label {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: rgba(0, 0, 0, 0.6) !important;
    margin-bottom: 1.5rem !important;
}

.email-capture-headline {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(3.5rem, 8vw, 7rem) !important;
    letter-spacing: -0.04em !important;
    text-transform: uppercase !important;
    color: #0A0A0A !important;
    line-height: 0.9 !important;
}

.email-capture-subhead {
    font-family: 'Space Grotesk', sans-serif !important;
    font-style: normal !important;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem) !important;
    line-height: 1.7 !important;
    color: rgba(0, 0, 0, 0.65) !important;
    font-weight: 300 !important;
}

.email-capture-input-row {
    border: 2px solid rgba(0, 0, 0, 0.25) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.email-capture-input-row:focus-within {
    border-color: #0A0A0A !important;
}

.email-capture-input {
    color: #0A0A0A !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.85rem !important;
    background: transparent !important;
}

.email-capture-input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
    font-style: normal !important;
}

.email-capture-btn {
    background: #0A0A0A !important;
    color: #FFFFFF !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.18em !important;
    padding: 1.25rem 2.5rem !important;
    transition: all 0.15s ease !important;
}

.email-capture-btn:hover {
    background: #333333 !important;
}

.email-capture-notice {
    color: rgba(0, 0, 0, 0.5) !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
}

.email-capture-msg.success { color: #0A0A0A !important; }
.email-capture-msg.error { color: #FF6666 !important; }

/* =============================================================
   PRESS SECTION — stark on dark
   ============================================================= */
.press-section {
    background: #1A1A1A !important;
    padding: 8rem 4rem !important;
    border-top: 1px solid var(--border-hard) !important;
}

.press-inner {
    max-width: 800px !important;
}

.press-label {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.4em !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    margin-bottom: 3rem !important;
}

.press-pub {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.12em !important;
    color: #AAAAAA !important;
}

.press-headline {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    color: #FFFFFF !important;
    letter-spacing: -0.02em !important;
}

.press-quote {
    font-family: 'Instrument Serif', serif !important;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem) !important;
    color: #BBBBBB !important;
    border-left: 2px solid var(--accent) !important;
    padding-left: 1.5rem !important;
    margin-left: 0 !important;
}

.press-link {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.18em !important;
    color: var(--accent) !important;
    border-bottom: 1px solid var(--accent-dim) !important;
}

.press-link:hover {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* =============================================================
   FOOTER — minimal, technical, light text on dark
   ============================================================= */
.footer,
footer {
    background: #0A0A0A !important;
    border-top: 1px solid var(--border-hard) !important;
    padding: 2.5rem 3rem !important;
}

.footer-inner {
    max-width: none !important;
}

.footer-text {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #888888 !important;
}

.footer-left {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    color: #888888 !important;
}

.social-link {
    color: #888888 !important;
    transition: color 0.15s ease !important;
}

.social-link:hover {
    color: var(--accent) !important;
}

.footer-right a {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.65rem !important;
    color: #888888 !important;
}

.footer-right a:hover {
    color: #FFFFFF !important;
}

/* Footer secondary links */
.footer-secondary-links,
.footer-secondary-links a,
[style*="rgba(255,255,255,0.4)"] {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #777777 !important;
}

.footer-secondary-links a:hover {
    color: var(--accent) !important;
}

.footer-secondary-links {
    border-top: 1px solid var(--border-hard) !important;
}

/* =============================================================
   GRID LAYOUTS — maintain structure, dark backgrounds
   ============================================================= */
.grid-4 {
    background: #0A0A0A !important;
}

.grid-item {
    border-bottom: 1px solid var(--border-hard) !important;
}

.grid-item-text {
    color: #FFFFFF !important;
}

.grid-item-meta {
    color: #AAAAAA !important;
}

/* =============================================================
   GALLERY SECTIONS — let images dominate
   ============================================================= */
.gallery-section {
    background: #0A0A0A !important;
    border: 1px solid var(--border-hard) !important;
}

.image-container {
    background: #1A1A1A !important;
    border: 1px solid var(--border-hard) !important;
}

.image-overlay-text {
    color: #FFFFFF !important;
}

.image-overlay-text-meta {
    color: #AAAAAA !important;
}

/* =============================================================
   TEXT ELEMENTS — all white on dark
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
}

p {
    color: #FFFFFF !important;
}

a {
    color: var(--accent) !important;
    transition: color 0.2s ease !important;
}

a:hover {
    color: #FFFFFF !important;
}

/* =============================================================
   FORM ELEMENTS — light inputs on dark
   ============================================================= */
input,
textarea,
select {
    background: #1A1A1A !important;
    border: 1px solid var(--border-hard) !important;
    color: #FFFFFF !important;
}

input::placeholder,
textarea::placeholder {
    color: #777777 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    outline: none !important;
}

button {
    background: var(--accent) !important;
    color: #0A0A0A !important;
    transition: all 0.2s ease !important;
}

button:hover {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
}

/* =============================================================
   BLOCKS & SECTIONS — maintain hierarchy
   ============================================================= */
.section {
    background: #0A0A0A !important;
    border-color: var(--border-hard) !important;
}

.section-alt {
    background: #1A1A1A !important;
}

.section-highlight {
    background: #0A0A0A !important;
    border: 1px solid var(--border-hard) !important;
}

/* =============================================================
   UTILITY OVERRIDES — ensure consistency
   ============================================================= */
.text-dark {
    color: #0A0A0A !important;
}

.text-light {
    color: #FFFFFF !important;
}

.bg-dark {
    background: #0A0A0A !important;
}

.bg-light {
    background: #1A1A1A !important;
}

.border-light {
    border-color: var(--border-hard) !important;
}

/* =============================================================
   PAGE SECTIONS — dark bg overrides for off-white sections
   Some pages have "off-white" sections (background: var(--white))
   that need dark backgrounds to match the gallery-after-dark theme.
   ============================================================= */
.page-hero,
.page-header {
    background: #0A0A0A !important;
}

.journal-list {
    background: #0A0A0A !important;
}

.bio-section {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

.bio-section .bio-label {
    color: var(--accent) !important;
}

.bio-section .bio-heading,
.bio-section .bio-text h2 {
    color: #FFFFFF !important;
}

.bio-section .bio-text,
.bio-section .bio-text p {
    color: #AAAAAA !important;
}

.bio-section .bio-text strong {
    color: #FFFFFF !important;
}

.statement-section {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

.statement-section h2,
.statement-section h3 {
    color: #FFFFFF !important;
}

.statement-section p {
    color: #AAAAAA !important;
}

.context-section {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

.context-section .context-heading {
    color: #FFFFFF !important;
}

.context-section .context-text {
    color: #AAAAAA !important;
}

.context-section .context-text strong {
    color: #FFFFFF !important;
}

.context-section .context-label {
    color: var(--accent) !important;
}

.practice-section {
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

.practice-section .practice-heading {
    color: #FFFFFF !important;
}

.practice-section .practice-text {
    color: #AAAAAA !important;
}

.practice-section .practice-label {
    color: var(--accent) !important;
}

.practice-link-primary {
    background: var(--accent) !important;
    color: #0A0A0A !important;
}

.practice-link-primary:hover {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
}

.practice-link-secondary {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.practice-link-secondary:hover {
    border-color: #FFFFFF !important;
}

/* Amber-background CTA links: force dark text so it doesn't become amber-on-amber */
.post-footer-cta {
    color: #0A0A0A !important;
    background: var(--accent) !important;
}

/* Journal post content area */
.post-wrap {
    background: #0A0A0A !important;
}

/* Footer wrap override */
.footer-wrap {
    background: #0A0A0A !important;
}

/* =============================================================
   RESPONSIVE TWEAKS — mobile first
   ============================================================= */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem !important;
    }

    .artist-nameplate {
        padding: 2rem 1.5rem 1.5rem !important;
    }

    .artist-nameplate h1 {
        font-size: clamp(2rem, 10vw, 4rem) !important;
    }

    .impact-zone {
        padding: 4rem 1.5rem 6rem 1.5rem !important;
    }

    .door {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
        padding: 1.5rem 0 !important;
    }

    .email-capture-inner {
        padding: 3rem 1.5rem !important;
    }

    .email-capture-headline {
        font-size: clamp(2rem, 6vw, 4rem) !important;
    }

    .footer {
        padding: 1.5rem !important;
    }
}

/* =============================================================
   ACCESSIBILITY — maintain contrast ratios
   ============================================================= */
@media (prefers-color-scheme: dark) {
    /* Already dark, no changes needed */
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================================
   PRINT STYLES — preserve readability
   ============================================================= */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    nav,
    footer {
        display: none !important;
    }
}

/* =============================================================
   HIGH CONTRAST MODE — support forced colors
   ============================================================= */
@media (forced-colors: active) {
    body {
        background: Canvas !important;
        color: CanvasText !important;
    }

    a {
        color: LinkText !important;
    }

    button {
        background: ButtonFace !important;
        color: ButtonText !important;
        border: 1px solid ButtonBorder !important;
    }
}
