/* ============================================
   BASE — Tokens, Reset, Typography
   ============================================ */

@font-face {
  font-family: 'AGL';
  src: url('/images/AppleGaramond-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Colors ── */
  --white: #f6f6f4;
  --off-white: #f5f4f2;
  --warm-grey: #e8e6e1;
  --mid-grey: #b5b0a8;   /* decoration only — fails contrast as text */
  --dark-grey: #8a847a;  /* secondary text — light, for quiet meta */
  --charcoal: #4d4841;   /* soft ink — long-form reading text */
  --near-black: #33322f; /* primary ink — a warm 80% grey, never pure black */

  /* Secondary colors — her blues: steel blue ground, dark navy ink */
  --accent: #5c8ca3;
  --accent-deep: #1d2440;

  /* ── Fonts ── */
  --font-serif: 'AGL', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --font-inter: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;

  /* ── Type scale ── */
  --text-caption: 0.75rem;    /* 12px — footer, fine print */
  --text-label: 0.8125rem;    /* 13px — labels, eyebrows, dates */
  --text-sans: 0.875rem;      /* 14px — nav, buttons, form labels, meta */
  --text-body: 1.3125rem;     /* 21px — serif paragraphs */
  --text-lede: 1.75rem;       /* 28px — intro paragraphs, pull-quotes */
  --text-h3: 1.75rem;         /* 28px — list and card titles */
  --text-h2: 2.5rem;          /* 40px — section headings */
  --text-h1: clamp(2.75rem, 5vw, 3.75rem);     /* page titles */
  --text-display: clamp(3.25rem, 8vw, 5.5rem); /* hero name only */



  /* ── Line heights ── */
  --leading-tight: 1.05;   /* display, h1 */
  --leading-snug: 1.2;     /* h2, h3, cards */
  --leading-normal: 1.5;   /* body text */
  --leading-relaxed: 1.7;  /* long-form reading */

  /* ── Spacing ── */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md2: 1.5rem;
  --space-md: 2rem;
  --space-lg2: 3rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* ── Layout ── */
  --nav-height: 4.5rem;
  --width-wide: 1100px;
  --width-content: 50rem;   /* 800px */
  --width-prose: 40rem;     /* 640px */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* Square corners everywhere — buttons are the one pill-shaped exception */
  --radius-sm: 0;
  --radius-lg: 0;

  /* ── Motion ── */
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 600ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (max-width: 768px) {
  :root { --nav-height: 4rem; }
}

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

html {
  font-size: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  background-color: var(--off-white);
  color: var(--near-black);
  line-height: var(--leading-normal);
  letter-spacing: 0.01em; /* a little air in the serif */
  min-height: 100vh;
}

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

a {
  color: var(--near-black);
  text-decoration: none;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

h1 {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  font-size: var(--text-h1);
  font-weight: 300;
  line-height: var(--leading-tight);
}

h2 {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: var(--leading-snug);
}

h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  font-size: var(--text-h3);
  font-weight: 300;
  line-height: var(--leading-snug);
}

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

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

/* ── Prose links — underlined by default, calm hover ── */
.content a,
.footer-links a {
  text-decoration: underline;
  text-decoration-color: var(--mid-grey);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.content a:hover,
.footer-links a:hover {
  text-decoration-color: var(--near-black);
}

/* Buttons inside prose never take the prose underline */
.content a.btn {
  text-decoration: none;
}

/* Safari: strip native input chrome so pills render as designed */
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Inter kerns tighter than the old system sans ── */
button, input, select, textarea,
.label, .btn, .back-link, .footer,
.nav-links a, .lang-switcher a, .socials-list a,
.concert-row-date, .concert-row-place, .concert-row-detail, .concert-row-ticket,
.concert-tab, .concert-search, .concert-year-heading,
.concert-modal-date, .concert-modal-meta, .concert-modal-nav-btn,
.upcoming-item-date, .upcoming-item-place,
.bento-cell-link, .contact-newsletter-hint,
.highlight-card-type, .highlight-card-title,
.bento-highlight-label, .bento-highlight-title, .card-cta,
.concert-detail .date, .concert-detail .meta, .detail-page .meta,
.about-page .content {
  letter-spacing: -0.02em;
}

/* ── Keyboard focus — one visible ring everywhere ── */
:focus-visible {
  outline: 2px solid var(--near-black);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Label — small sans marker, lowercase with air ── */
.label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 400;
  color: var(--dark-grey);
}

/* ── Lede — intro-sized serif ── */
.lede {
  font-family: var(--font-serif);
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ── Scroll reveal (gated behind .js so content is never hidden without it) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards fade in without moving — animating a transform on the card
   breaks its rounded-corner clipping while it runs */
.js .highlight-card.reveal,
.js .bento-highlight.reveal {
  transform: none;
}

/* ── Reduced motion — stillness, everything visible ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Print — clean article on paper ── */
@media print {
  .nav,
  .footer,
  .mobile-nav,
  .page-actions,
  .btn,
  .btn--back,
  .detail-nav,
  .concert-toolbar,
  .concert-modal,
  .card-cta,
  .concert-row-more,
  .content-actions,
  .lang-picker,
  iframe,
  audio {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .js .reveal,
  .js .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }

  main,
  .detail-page,
  .concert-detail,
  .about-page {
    max-width: 42rem;
    margin: 0 auto;
    padding-top: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .about-gallery {
    display: none;
  }

  .concert-list-section[hidden] {
    display: block;
  }

  .concert-row {
    break-inside: avoid;
    padding: 0.8rem 0;
  }

  .highlights-grid,
  .projects-grid {
    display: block;
  }
}
