/* ============================================================
   THEME.CSS — Blue Note Design System
   Personal Website — Express / EJS

   Fonts:    Bebas Neue (headlines) · Barlow Condensed (labels/UI) · Lora (body)
   Palette:  Sampled from Hank Mobley, No Room for Squares
             Blue Note BLP 4149, Reid Miles 1963

   Usage in your EJS layout:
     <link rel="stylesheet" href="/css/theme.css">

   Claude Code note:
     All design decisions live in :root variables below.
     Use the utility classes throughout your EJS templates.
     To change the accent color site-wide, only edit --amber.
   ============================================================ */


/* ─────────────────────────────────────────────
   @FONT IMPORTS
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;900&family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');


/* ─────────────────────────────────────────────
   DESIGN TOKENS — CSS VARIABLES
   ───────────────────────────────────────────── */

:root {

  /* --- Color Palette --- */
  --color-black:        #0c0b09;   /* near-black background */
  --color-deep:         #111009;   /* alternate dark surface */
  --color-surface:      #161410;   /* card / section background */
  --color-border:       #2a2520;   /* subtle dividers */

  --color-amber:        #c98a1a;   /* primary accent — the gold circle */
  --color-amber-light:  #e0a830;   /* hover / highlight state */
  --color-amber-dim:    #7a4e0a;   /* muted accent, borders */

  --color-cream:        #f0e6cc;   /* primary text */
  --color-muted:        #8a7d68;   /* secondary / body text */
  --color-smoke:        #6b6456;   /* tertiary / captions */
  --color-label-red:    #b5341a;   /* accent red — use sparingly */

  /* --- Typography --- */
  --font-display:       'Bebas Neue', sans-serif;
  --font-ui:            'Barlow Condensed', sans-serif;  /* labels, tags, metadata, nav sub-items */
  --font-body:          'Lora', Georgia, serif;

  /* --- Type Scale --- */
  --text-hero:    clamp(64px, 10vw, 120px);
  --text-h1:      clamp(42px, 6vw,   80px);
  --text-h2:      clamp(28px, 4vw,   52px);
  --text-h3:      clamp(20px, 2.8vw, 36px);
  --text-nav:     clamp(14px, 1.8vw, 20px);
  --text-body:    16px;
  --text-small:   13.5px;
  --text-label:   11px;

  /* --- Spacing --- */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   28px;
  --space-lg:   52px;
  --space-xl:   88px;
  --space-2xl:  140px;

  /* --- Layout --- */
  --container-max:   1100px;
  --container-pad:   clamp(24px, 5vw, 64px);

  /* --- Transitions --- */
  --ease:        0.2s ease;
  --ease-slow:   0.4s ease;
}


/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-black);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.8;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-amber);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--color-amber-light);
}

::selection {
  background: var(--color-amber-dim);
  color: var(--color-cream);
}


/* ─────────────────────────────────────────────
   TYPOGRAPHY — BASE ELEMENTS
   ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;           /* Bebas Neue is a single-weight font */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--color-cream);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 62ch;            /* comfortable reading width */
}

p + p {
  margin-top: var(--space-sm);
}

strong {
  font-weight: 700;
  color: var(--color-cream);
}

em {
  font-style: italic;
  color: var(--color-cream);
}

small {
  font-size: var(--text-small);
  color: var(--color-smoke);
}

blockquote {
  border-left: 3px solid var(--color-amber);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--color-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

ul, ol {
  padding-left: var(--space-md);
  color: var(--color-muted);
  line-height: 1.9;
}


/* ─────────────────────────────────────────────
   TYPOGRAPHY — UTILITY CLASSES
   ───────────────────────────────────────────── */

/* Headlines */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.87;
  color: var(--color-cream);
}

.t-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--color-cream);
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--color-cream);
}

.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--color-cream);
}

/* Body text variants */
.t-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-muted);
}

.t-body-italic {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-style: italic;
  line-height: 1.8;
  color: var(--color-muted);
}

.t-body-large {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--color-muted);
}

/* Labels & eyebrows — use Bebas for all-caps labels */
.t-label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-amber);
  line-height: 1;
}

.t-label-muted {
  font-family: var(--font-display);
  font-size: var(--text-label);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-smoke);
  line-height: 1;
}

/* Nav links */
.t-nav {
  font-family: var(--font-display);
  font-size: var(--text-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  transition: color var(--ease);
}

.t-nav:hover,
.t-nav.active {
  color: var(--color-amber);
}

/* Accent / amber text */
.t-amber { color: var(--color-amber); }
.t-cream { color: var(--color-cream); }
.t-muted { color: var(--color-muted); }
.t-smoke { color: var(--color-smoke); }

/* ─────────────────────────────────────────────
   BARLOW CONDENSED — UI / METADATA CLASSES
   Use for: tags, eyebrows, captions, timestamps,
   section dividers, card metadata, stat labels.
   Sits between Bebas headlines and Lora body.
   ───────────────────────────────────────────── */

/* Standard eyebrow — tight tracking, amber */
.t-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-amber);
  line-height: 1;
}

/* Muted eyebrow — for secondary metadata */
.t-eyebrow-muted {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-smoke);
  line-height: 1;
}

/* Tag / pill label — e.g. project category, date */
.t-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-smoke);
  line-height: 1;
}

/* Stat label — for numbers with a descriptor beneath */
.t-stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-smoke);
}

/* UI text — medium weight, readable at small sizes */
.t-ui {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Section divider label — used inline with a rule line */
.t-divider {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-smoke);
  white-space: nowrap;
}

/* Caption — slightly larger, mixed case ok */
.t-caption {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-smoke);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */

/* Main content wrapper */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Full-width section wrapper */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-sm {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* Amber top border accent on sections */
.section-ruled {
  border-top: 2px solid var(--color-amber-dim);
}

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Three-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--container-pad);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-logo:hover {
  color: var(--color-amber);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-smoke);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-amber);
}

@media (max-width: 640px) {
  .nav-links { gap: var(--space-md); }
}


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

.hero {
  padding: var(--space-xl) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  text-transform: uppercase;
  line-height: 0.87;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--color-amber);
  margin-bottom: var(--space-lg);
}


/* ─────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  padding: var(--space-md);
  border-left: 3px solid var(--color-amber-dim);
  transition: border-color var(--ease), background var(--ease);
}

.card:hover {
  border-left-color: var(--color-amber);
  background: #1a1810;
}

.card-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-smoke);
  margin-bottom: var(--space-sm);
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  text-transform: uppercase;
  color: var(--color-cream);
  line-height: 0.92;
  margin-bottom: var(--space-sm);
}

.card-body {
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.8;
  color: var(--color-muted);
}


/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--color-amber-dim);
  color: var(--color-amber);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-amber);
  color: var(--color-black);
  border-color: var(--color-amber);
}

.btn-solid {
  background: var(--color-amber);
  color: var(--color-black);
  border-color: var(--color-amber);
}

.btn-solid:hover {
  background: var(--color-amber-light);
  border-color: var(--color-amber-light);
  color: var(--color-black);
}


/* ─────────────────────────────────────────────
   SECTION DIVIDER
   A ruled line with a Barlow Condensed label —
   the signature Blue Note layout element.
   Usage: <div class="divider"><span>Selected Work</span></div>
   ───────────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider::before {
  display: none; /* left side hidden by default — left-aligned label */
}

.divider span {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-smoke);
  white-space: nowrap;
}

/* Centered variant */
.divider-center::before {
  display: block;
}


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

.footer {
  border-top: 2px solid var(--color-amber-dim);
  padding: var(--space-md) var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-small);
  color: var(--color-smoke);
}


/* ─────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────── */

/* Inline amber gradient rule — fades left to right, use inside sections */
.amber-rule {
  height: 2px;
  background: linear-gradient(to right, var(--color-amber), var(--color-amber-dim) 60%, transparent);
  border: none;
  margin: 0;
}

/* Full-width amber bar — use directly beneath a page header or nav.
   Usage: <div class="amber-bar"></div> */
.amber-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--color-amber), var(--color-amber-dim) 70%, transparent);
}

/* Ambient circle — the ghosted ring echoing the album cover.
   Place <div class="bg-circle"></div> inside any position:relative
   container for subtle background depth. */
.bg-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid var(--color-amber-dim);
  opacity: 0.12;
  bottom: -180px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

/* Smaller variant — better for cards and tighter sections */
.bg-circle-sm {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--color-amber-dim);
  opacity: 0.1;
  bottom: -80px;
  right: -60px;
  pointer-events: none;
  z-index: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ─────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────── */

/* fadeUp — the core entrance animation used throughout.
   Apply .anim-fade-up to any element you want to animate in.
   Use .delay-1 through .delay-5 to stagger siblings.

   Usage:
     <div class="anim-fade-up delay-1">...</div>
     <div class="anim-fade-up delay-2">...</div>
*/

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-up {
  animation: fadeUp 0.5s ease both;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.25s; }
.delay-4 { animation-delay: 0.35s; }
.delay-5 { animation-delay: 0.45s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
