/* ============================================================
   London Dance Festival — design tokens
   Warm, grassroots, outdoor-community-festival feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Color — distinct from London Dance Festival but same family (warm paper base) */
  --paper:        #FBF6EC;   /* warm cream background, shared with sibling site */
  --paper-deep:   #F1EAE0;   /* slightly deeper cream for cards/sections */
  --ink:          #241F2B;   /* near-black plum-tinted text */
  --brick:        #5B3A5C;   /* deep plum, primary accent (replaces LDF's brick red) */
  --brick-deep:   #432A44;   /* hover/active state for plum */
  --pine:         #5E7A4A;   /* sage green, secondary accent + links (replaces LDF's pine) */
  --pine-deep:    #46602F;
  --marigold:     #C99A3E;   /* muted gold for highlight / tag color */
  --paper-edge:   #E3D8C9;   /* hairline / border tone */
  --white:        #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Karla', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: rgba(43, 92, 75, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--pine-deep); text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-weight: 700; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brick);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.wordmark:hover { color: var(--brick); }
.wordmark span.accent { color: var(--brick); }

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
}
.main-nav a:hover { background: var(--paper-deep); color: var(--brick); }
.main-nav a.is-active { color: var(--brick); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 4px;
  }
  .main-nav.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ============================================================
   Hero — pinned bulletin board
   ============================================================ */

.hero {
  position: relative;
  padding: 64px 24px 96px;
  background: var(--paper-deep);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 20px;
}

.hero__text .eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--brick);
  margin-bottom: 14px;
  display: block;
}

.hero__text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.hero__text p.lede {
  font-size: 1.15rem;
  max-width: 480px;
  color: #4a4038;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2.5px solid var(--ink);
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brick); color: var(--white); border-color: var(--brick); }
.btn--primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero photo — single grounded image rather than LDF's scattered flyer board */
.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 14px 0 var(--paper-edge);
}
.hero__photo img { width: 100%; height: 420px; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo img { height: 280px; }
}

/* ============================================================
   Program cards (homepage + /programs/ hub)
   ============================================================ */

.program-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 920px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .program-grid { grid-template-columns: 1fr; } }

.program-card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.program-card__img { aspect-ratio: 16/10; overflow: hidden; border-bottom: 2.5px solid var(--ink); background: var(--paper-deep); }
.program-card__img img { width: 100%; height: 100%; object-fit: cover; }
.program-card__body { padding: 20px 22px 24px; }
.program-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.program-card__blurb { font-size: 0.92rem; color: #5b5048; }

/* ============================================================
   Section scaffolding
   ============================================================ */

.section {
  padding: 64px 24px;
}
.section--alt { background: var(--paper-deep); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.section__header h2 { font-size: 1.9rem; margin: 0; }
.section__header .see-all { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* ============================================================
   Card grid — news / events
   ============================================================ */

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 920px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }

.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); border-bottom: 2.5px solid var(--ink); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--paper-edge);
}

.card__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card__date { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brick); margin-bottom: 6px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; line-height: 1.25; }
.card__excerpt { font-size: 0.92rem; color: #5b5048; flex: 1; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 24px 32px;
  margin-top: 0;
}
.site-footer a { color: var(--paper); text-decoration-color: rgba(251,246,236,0.4); }
.site-footer a:hover { color: var(--marigold); }

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.footer__brand .wordmark { color: var(--paper); }
.footer__brand .wordmark:hover { color: var(--marigold); }
.footer__brand p { color: #c9beb0; max-width: 320px; margin-top: 12px; }

.footer h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--marigold);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 0.95rem; }

.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(251,246,236,0.15);
  font-size: 0.82rem;
  color: #9b8f80;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Page content (single post / page template)
   ============================================================ */

.page-header {
  background: var(--paper-deep);
  border-bottom: 3px solid var(--ink);
  padding: 48px 24px 40px;
}
.page-header__inner { max-width: 760px; margin: 0 auto; }
.page-header .eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; color: var(--brick); display: block; margin-bottom: 10px;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-header .meta { color: #6b6055; font-size: 0.95rem; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.prose img {
  border-radius: var(--radius);
  margin: 8px auto 24px;
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.prose figure { margin: 8px 0 28px; }
.prose figcaption { font-size: 0.85rem; color: #6b6055; margin-top: 8px; text-align: center; font-style: italic; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 4px solid var(--brick);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  color: #4a4038;
  font-style: italic;
}
.prose hr { border: none; border-top: 2px solid var(--paper-edge); margin: 2.5em 0; }
.prose a { word-break: break-word; }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--marigold); color: var(--ink); padding: 5px 11px; border-radius: 999px;
  text-decoration: none;
}
.tag:hover { background: var(--brick); color: var(--white); }

/* ============================================================
   Archive / index listing
   ============================================================ */

.archive-intro { max-width: var(--max-width); margin: 0 auto; padding: 0 0 28px; color: #5b5048; max-width: 640px; }

.year-jump {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.year-jump a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--ink);
}
.year-jump a:hover { background: var(--ink); color: var(--paper); }

.year-block { max-width: var(--max-width); margin: 0 auto 56px; }
.year-block h2 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* ============================================================
   Evergreen "about" style page extras
   ============================================================ */

.pull-fact {
  background: var(--paper-deep);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 28px 0;
}
.pull-fact h3 { margin-bottom: 8px; font-size: 1.1rem; }

.empty-note {
  background: var(--paper-deep);
  border: 2px dashed var(--paper-edge);
  border-radius: var(--radius);
  padding: 20px;
  color: #6b6055;
  font-size: 0.95rem;
}
