/* ============================================================
   MUSIKHEIM (formerly "Keenan Harmon Chamber Music") — DESIGN TOKENS
   ============================================================
   Archetype: T6 · Baroque Romantic (custom — not in the standard T1-5 set).
   Candlelit concert-hall register: deep wine, aged gilt, ivory parchment —
   now inverted to a dark theme (2026-08-16); see NEUTRAL PALETTE below.
   Keenan Harmon remains the founder/artistic director (a real person);
   Musikheim is the ensemble/brand name — don't conflate the two when
   editing copy. Ornamented deliberately — this client is the intentional
   exception to the Apple-restraint default; see design-dna T6 note before
   reusing elsewhere.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  /* --- BRAND COLORS ---
     Gold removed entirely, 2026-08-16 (ninth same-day pass). Prior palette
     was "Baroque + gold + luxury"; this is "Baroque + editorial +
     architectural" — the historical reference now comes from material
     (walnut, ivory paper, ink, burgundy velvet) and typography, not
     metallic color. No gold lines, gold type, gold buttons, gold borders,
     or metallic effects anywhere in the system from this point forward.
     Four colors pulled directly from the hero photograph itself (walnut
     wood, ivory highlights, burgundy carpet, ink shadow) plus two neutrals
     derived from them. */
  --color-obsidian:      #171413;   /* INK — dark surfaces, text on ivory, buttons where
                                        appropriate */
  --color-primary:       #4A1822;   /* DEEP BURGUNDY — a subtle accent derived from the
                                        carpet, never a UI/CTA color */
  --color-primary-dark:  #71333A;   /* MUTED ROSE/WINE — optional, very subtle interactive
                                        states only (rare hover tints) */
  --color-burgundy-nav:   #D6536B; /* nav-hover text specifically — brighter again than
                                        --color-burgundy-accent. That token is nearly
                                        unreadable as hover text directly over the hero
                                        photo (a small saturated dark red on a bright/busy
                                        wood background has almost no contrast); this one is
                                        tuned to stay legible there while still reading as
                                        "rich," paired with a stronger text-shadow below
                                        rather than relying on color alone. */
  --color-burgundy-accent: #B0374B; /* richer/more saturated than --color-primary — the
                                        "visible burgundy" tone for interactive states:
                                        hover text color (nav links, outline buttons) AND,
                                        as of the most recent round, the primary CTA's hover
                                        fill too. Brightened slightly from an earlier #9C2C3E
                                        specifically so it holds up as small hover TEXT, not
                                        just a thick accent bar — a solid block reads fine at
                                        lower contrast, small bold text needs more. Earlier
                                        project history rejected a *permanent* saturated-
                                        crimson CTA fill (competed with the hero photo at
                                        rest) — a hover-only accent, requested explicitly, is
                                        a different call and doesn't reopen that decision. */
  --color-primary-light: #F4E9D8;   /* parchment — kept light deliberately: badge/pill
                                        backgrounds read best as a light chip on the dark page */
  --color-secondary:     #2A1C17;   /* WALNUT — used sparingly in backgrounds/gradients */
  --color-cream:         #F3EEE5;   /* WARM IVORY (primary) — hero headline, primary CTA,
                                        logo text. Fixed light value, independent of theme. */
  --color-accent:        #C9C1B7;   /* SOFT STONE (secondary) — navigation, secondary copy,
                                        metadata. Replaces gold as the default "quiet accent." */
  --color-accent-light:  #F3EEE5;   /* same as --color-cream — emphasis/hover states now
                                        brighten to ivory, since there is no brighter-than-
                                        ivory tone in this palette (no metallic highlight). */

  /* --- NEUTRAL PALETTE — dark theme --- */
  --color-bg:            #171413;   /* page base = INK, near-black */
  --color-surface:       #2A1C17;   /* alt-section tint = WALNUT */
  --color-surface-2:     #34241A;   /* card/hover surface, one step up from walnut */
  --color-border:        #4A3B2E;   /* warm, muted — visible on dark without glowing */
  --color-text:          #E8E0D4;   /* WARM WHITE — general/secondary text (not full ivory;
                                        ivory --color-cream is reserved for hero display use) */
  --color-text-muted:    #A8967F;
  --color-text-light:    #7C6C59;

  /* --- SEMANTIC COLORS ---
     --color-error brightened (#8C2F2F -> #D65C4C) during the WCAG AA audit:
     the original only reached 2.24:1 against --color-bg, and every one of
     its usages (required-field asterisks, contact-form error text, the
     newsletter subscribe error message) renders directly on the dark page
     background, not inside a light input field — so this was a real
     accessibility gap, not a false positive from checking an unused
     combination. New value reaches 4.79:1, clearing the 4.5:1 AA-normal-text
     threshold. Still reads as "error red," just legible now. */
  --color-success:       #3F6B3F;
  --color-warning:       #B08D34;
  --color-error:         #D65C4C;
  --color-info:          #4A5E6E;

  /* --- TYPOGRAPHY ---
     Strict two-typeface system, per the 2026-08-16 art-direction brief:
     ONE display serif (Instrument Serif — Canela was preferred but isn't a
     web font available here) for headline/display moments, ONE sans
     (Manrope) for everything else. Inter has been dropped entirely —
     --font-ui now also resolves to Manrope so there's no third typeface
     hiding in card meta/footer/buttons. --font-nav is kept as a separate
     token name only for semantic clarity (nav-specific rules read
     `var(--font-nav)`); it is the same font file as --font-ui.
     Instrument Serif ships only regular 400 + italic — no bold weight —
     so h1–h6 must be explicitly set to font-weight:400 (see ornament.css)
     or browsers will synthesize a fake bold that looks broken on a face
     this delicate. Never use the serif for buttons, nav, or metadata; never
     use the sans for the hero headline or section headings. */
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-hero:    'Instrument Serif', Georgia, serif;
  --font-ui:      'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif; /* buttons, card meta, dates, footer */
  --font-nav:     'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif; /* nav — same font as --font-ui */
  --font-body:    'EB Garamond', Garamond, Georgia, serif; /* long-form prose + hero description */
  --font-mono:    'EB Garamond', Georgia, serif;

  /* --- FONT SIZES --- */
  --text-xs:   0.75rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.5rem;

  /* --- SPACING (generous — a framed, breathing composition) --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.75rem;
  --space-8:   2.5rem;
  --space-12:  3.5rem;
  --space-16:  5rem;
  --space-24:  8rem;

  /* --- LAYOUT ---
     max-width pulled in from 1240 to 1200 (2026-09-01, body-of-page editorial
     pass) — the editorial container the client asked for; --container-pad
     unchanged so gutters stay comfortable at the new width. */
  --max-width:       1200px;
  --max-width-prose: 680px;
  --container-pad:   var(--space-6);

  /* --- SHAPE (sharp, architectural — no soft app-UI rounding) --- */
  --radius-sm:  0.125rem;
  --radius:     0.1875rem;
  --radius-lg:  0.25rem;
  --radius-xl:  0.25rem;
  --radius-full: 9999px;

  /* --- ELEVATION (warm ink shadow, not cool UI shadow) --- */
  --shadow-sm:  0 1px 3px rgba(27,20,15,0.18);
  --shadow:     0 8px 20px rgba(27,20,15,0.20);
  --shadow-md:  0 16px 32px rgba(27,20,15,0.24);
  --shadow-lg:  0 28px 56px rgba(27,20,15,0.30);

  /* --- TRANSITIONS --- */
  --transition: 200ms ease;
  --transition-md: 320ms ease;

  /* --- ORNAMENT (T6 signature layer — the recurring baroque motif) --- */
  --rule-hairline: 1px solid var(--color-accent);
  --rule-heavy: 3px double var(--color-accent);
  --ornament-glyph: "❧";
  --gilt-gradient: linear-gradient(135deg, #F5E7B8 0%, #C9A227 35%, #EED08A 55%, #9C7A1C 75%, #F5E7B8 100%);
  --fresco-sky: radial-gradient(ellipse 90% 60% at 50% -10%, #EED08A 0%, #D9C08F 18%, #F4E9D8 42%, transparent 70%),
                radial-gradient(ellipse 70% 50% at 10% 100%, rgba(155,27,60,0.10) 0%, transparent 60%),
                radial-gradient(ellipse 70% 50% at 90% 100%, rgba(201,162,39,0.14) 0%, transparent 60%);
}
