/* Kartoflanie — shared site styles (index, events, pyrki, donate)
   Dark, photo-led layout with condensed type. Section accents use a thin
   "ribbon" of Kartoflanie colors, echoing folk-costume ribbons. */

:root {
  --ink: #1b1e22;
  --ink-2: #22262b;
  --ink-3: #2c3137;
  --ink-deep: #141619;
  --paper: #e6e6e7;
  --paper-2: #f2f2f3;
  --snow: #f6f4ef;
  --muted: rgba(246, 244, 239, 0.7);
  --line-dark: rgba(246, 244, 239, 0.14);
  --text-light: #1b1e22;
  --text-light-muted: #4a4d52;
  --line-light: rgba(27, 30, 34, 0.16);

  --crimson: #b8242a;
  --crimson-dark: #8c1b1f;
  --gold: #d4a843;
  --forest: #2a7a4e;
  --forest-dark: #1a5c38;
  --cream: #fdf6ec;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-ui: 'Khand', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;

  --ribbon: linear-gradient(90deg,
    var(--forest) 0 30%, transparent 30% 34%,
    var(--gold) 34% 52%, transparent 52% 56%,
    var(--crimson) 56% 76%, transparent 76% 80%,
    var(--cream) 80% 84%, transparent 84% 88%,
    var(--crimson) 88% 100%);

  --gutter: 1.25rem;
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

section[id], header[id], article[id] { scroll-margin-top: 72px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── Sections & headings ───────────────── */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-dark { background: var(--ink); }
.section-deep { background: var(--ink-2); }
.section-light { background: var(--paper); color: var(--text-light); }

.ribbon { display: block; width: 72px; height: 2px; background: var(--ribbon); }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .ribbon { margin: 0 auto 1.1rem; }
.section-head h2 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.section-head p {
  max-width: 640px;
  margin: 1.1rem auto 0;
  color: var(--muted);
}
.section-light .section-head p { color: var(--text-light-muted); }

.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-light .eyebrow { color: var(--crimson); }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.6rem 1.5rem 0.45rem;
  border: 1px solid var(--snow);
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: transparent; color: var(--snow); }
.btn-ghost { background: transparent; color: var(--snow); border-color: rgba(246, 244, 239, 0.55); }
.btn-ghost:hover { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.btn-accent { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn-accent:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: #fff; }
.section-light .btn:not(.btn-accent) { background: var(--ink); border-color: var(--ink); color: var(--snow); }
.section-light .btn:not(.btn-accent):hover { background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row--center { justify-content: center; }
.btn-row--spaced { margin-top: 2rem; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ── Header / navigation ───────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14, 16, 19, 0.85) 0%, rgba(14, 16, 19, 0) 100%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid {
  background: rgba(27, 30, 34, 0.97);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav {
  width: min(1180px, 100% - 2 * var(--gutter));
  min-height: var(--header-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  transition: min-height 0.3s ease;
}
.is-solid .nav { min-height: 74px; }

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.25rem);
  list-style: none;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-group a {
  position: relative;
  display: block;
  padding: 0.4rem 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--snow);
}
.nav-group a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ribbon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-group a:hover::after,
.nav-group a[aria-current="page"]::after { transform: scaleX(1); }

.nav-group .nav-cta {
  padding: 0.45rem 0.95rem 0.3rem;
  border: 1px solid var(--snow);
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-group .nav-cta:hover { background: var(--snow); color: var(--ink); }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--snow);
  text-decoration: none;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand .ribbon { width: 132px; margin-top: 0.55rem; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--snow); transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav { grid-template-columns: 1fr auto; grid-template-rows: 72px; gap: 0 1rem; }
  .is-solid .nav { min-height: 66px; grid-template-rows: 66px; }
  .brand { order: 0; align-items: flex-start; }
  .brand-name { font-size: 1.45rem; }
  .brand-sub { display: none; }
  .brand .ribbon { width: 96px; margin-top: 0.4rem; }
  .menu-toggle { display: inline-flex; order: 1; justify-self: end; }
  .nav-group { display: none; }
  .nav-left { order: 2; }
  .nav-right { order: 3; }

  .site-header.menu-open {
    height: 100dvh;
    overflow-y: auto;
    background: var(--ink);
  }
  .menu-open .nav { align-content: start; }
  .menu-open .nav-group {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu-open .nav-left { margin-top: 1.5rem; }
  .menu-open .nav-group a {
    padding: 0.85rem 0 0.7rem;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.8rem;
  }
  .menu-open .nav-group a::after { display: none; }
  .menu-open .nav-group .nav-cta {
    margin: 1.5rem 0 2rem;
    text-align: center;
    border: 1px solid var(--snow);
  }
}

/* ── Home hero (full-screen slider) ────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 16, 19, 0.55) 0%, rgba(14, 16, 19, 0.08) 28%, rgba(14, 16, 19, 0.2) 52%, rgba(14, 16, 19, 0.8) 74%, rgba(14, 16, 19, 0.96) 100%);
  pointer-events: none;
}

/* Kept compact and low so it sits below faces in group photos */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(940px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 9rem 0 clamp(4rem, 8vh, 5.5rem);
  text-align: center;
}
.hero-kicker {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.85);
}
.hero-title { margin-top: 0.75rem; }
.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 9vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-title-sub {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.92);
}
.hero .ribbon { width: 128px; margin: 1.1rem auto; }
.hero-lead {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  color: rgba(246, 244, 239, 0.86);
}
.hero-actions { justify-content: center; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.75rem;
  display: flex;
  gap: 0.7rem;
  transform: translateX(-50%);
}
.hero-dots[hidden] { display: none; }
.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dots button[aria-current="true"] { background: var(--snow); transform: scale(1.2); }

/* Schedule strip under the hero */
.info-bar { background: var(--ink-2); border-bottom: 1px solid var(--line-dark); }
.info-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.75rem;
  padding: 1.05rem 0 0.9rem;
  list-style: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.info-bar li { display: flex; align-items: center; gap: 0.7rem; }
.info-bar li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-1px);
}
.info-bar li:nth-child(2)::before { background: var(--crimson); }
.info-bar li:nth-child(3)::before { background: var(--forest); }

/* ── Sub-page hero ─────────────────────── */
.page-hero {
  position: relative;
  min-height: clamp(400px, 58vh, 580px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink-deep);
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 19, 0.75) 0%, rgba(14, 16, 19, 0.45) 45%, rgba(14, 16, 19, 0.95) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 9rem 0 3.5rem;
  text-align: center;
}
.page-hero .ribbon { margin: 0 auto 1.1rem; width: 96px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  text-transform: uppercase;
}
.page-hero p { max-width: 620px; margin: 1rem auto 0; color: rgba(246, 244, 239, 0.86); font-size: 1.2rem; }
.breadcrumb {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb:hover { color: var(--snow); }

/* ── Featured event ────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-media {
  display: block;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.feature-media img { width: 100%; transition: transform 0.7s ease; }
.feature-media:hover img { transform: scale(1.03); }

.date-stamp { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.date-stamp .day {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.25rem;
  line-height: 0.85;
}
.date-stamp .rest {
  padding: 0.15rem 0 0 1.1rem;
  border-left: 1px solid rgba(246, 244, 239, 0.45);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature h2,
.feature h3 {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature-tagline {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--gold);
}
.feature-body > p { color: var(--muted); }

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0;
  padding: 1.3rem 0;
  border-block: 1px solid var(--line-dark);
  list-style: none;
}
.facts li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
.facts .label {
  padding-top: 0.2rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts strong { display: block; font-weight: 600; }
.facts .sub { display: block; font-size: 1rem; color: var(--muted); }

.credits { margin-bottom: 1.75rem; font-size: 1rem; color: var(--muted); }
.credits strong { color: var(--snow); font-weight: 600; }
.credits a { color: var(--gold); text-underline-offset: 3px; }

/* Event sponsor logo (ships on white, so it sits on a white plate) */
.sponsor-plate {
  display: inline-flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: -0.5rem 0 1.75rem;
  padding: 0.85rem 1.1rem 1rem;
  background: #fff;
}
.sponsor-plate span {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.sponsor-plate img { width: 250px; max-width: 100%; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { max-width: 440px; margin-inline: auto; }
}

/* ── News cards ────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}
.news-card {
  position: relative;
  grid-column: span 2;
  display: block;
  min-height: 250px;
  overflow: hidden;
  background: var(--ink-3);
  color: var(--snow);
  text-decoration: none;
}
.news-card--lg { grid-column: span 4; min-height: clamp(320px, 34vw, 460px); }
.news-card--md { min-height: clamp(320px, 34vw, 460px); }
.news-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.news-card:hover > img,
.news-card:hover .news-art { transform: scale(1.05); }

/* Folk "sunburst" artwork for cards that don't have a photo yet */
.news-art {
  --art: var(--crimson);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--art) 30%, transparent) 0, transparent 58%),
    repeating-conic-gradient(from 0deg at 50% 40%, color-mix(in srgb, var(--art) 22%, transparent) 0 12deg, transparent 12deg 24deg),
    var(--ink-3);
  transition: transform 0.8s ease;
}
.news-art--gold { --art: var(--gold); }
.news-art--green { --art: var(--forest); }
.news-art span,
.news-art h3 {
  padding: 0 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--snow);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.news-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem 0.8rem;
  background: rgba(18, 20, 23, 0.84);
  backdrop-filter: blur(4px);
}
.news-title {
  flex: 1;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.15;
}
.news-card--lg .news-title { font-size: 1.6rem; }
.news-date {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(246, 244, 239, 0.45);
  white-space: nowrap;
}
.news-date .d { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1; }
.news-date .m { font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.news-card--lg .news-date .d { font-size: 2.6rem; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card, .news-card--md { grid-column: span 1; min-height: 260px; }
  .news-card--lg { grid-column: span 2; min-height: 340px; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-card, .news-card--md, .news-card--lg { grid-column: auto; min-height: 260px; }
  .news-card--lg .news-title { font-size: 1.35rem; }
}

/* ── Story + stats (light band) ────────── */
.story { text-align: center; }
.story-sub {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crimson);
}
.story-text { max-width: 760px; margin: 0 auto; color: var(--text-light-muted); font-size: 1.2rem; }
.story-text + .story-text { margin-top: 1rem; }
.story-text strong { color: var(--text-light); }

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem 3.5rem;
  margin: 0 0 3.25rem;
  list-style: none;
}
.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  text-align: left;
}
.stat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ribbon); }
.stat-value { font-family: var(--font-display); font-weight: 500; font-size: 3.4rem; line-height: 0.9; }
.stat-label { max-width: 8.5rem; font-family: var(--font-ui); font-weight: 500; font-size: 1.05rem; line-height: 1.1; color: var(--text-light-muted); }

/* ── Repertoire carousel ───────────────── */
.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.dance {
  background: var(--ink-2);
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dance.is-current { opacity: 1; transform: none; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.dance-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.dance-art .news-art { padding-bottom: 2.5rem; }
.dance-art .news-art h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.dance-art > img { width: 100%; height: 100%; object-fit: cover; }
.dance-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1.15rem 0.6rem;
  background: rgba(18, 20, 23, 0.84);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dance-body { padding: 1.5rem 1.5rem 1.75rem; }
.dance-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dance-body p { margin: 0.75rem 0 1.1rem; color: var(--muted); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tags li {
  padding: 0.3rem 0.7rem 0.15rem;
  border: 1px solid var(--line-dark);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.carousel-btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 52px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--snow);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn .icon { width: 30px; height: 70px; stroke-width: 1.2; }
.carousel-prev { left: -3.75rem; }
.carousel-next { right: -3.75rem; }

@media (max-width: 1320px) {
  .carousel-prev { left: -0.5rem; }
  .carousel-next { right: -0.5rem; }
}
@media (max-width: 900px) {
  .carousel-track { grid-template-columns: 1fr; }
  .dance { display: none; }
  .dance.is-current { display: block; width: 100%; max-width: 560px; margin-inline: auto; }
  .carousel-controls { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
  .carousel-btn { position: static; width: 52px; height: 52px; }
  .carousel-btn .icon { height: 40px; }
}
@media (min-width: 901px) {
  .carousel-controls { display: contents; }
}

/* ── Why folk dance ────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  list-style: none;
}
.why-item { padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.why-num { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--gold); }
.why-item h3 { margin: 0.35rem 0 0.5rem; font-family: var(--font-ui); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.why-item p { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Classes (light band with map) ─────── */
.map-frame { position: relative; height: clamp(320px, 36vw, 420px); background: #d9d9db; }
#map { position: absolute; inset: 0; z-index: 0; }
.map-frame .leaflet-tile-pane { filter: grayscale(1) contrast(0.9) brightness(1.06); }
.map-card {
  position: absolute;
  z-index: 500;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: calc(100% - 2.5rem);
  padding: 1.1rem 1.25rem 1.2rem;
  background: var(--ink);
  color: var(--snow);
}
.map-card strong { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.map-card span { display: block; margin-bottom: 0.85rem; color: var(--muted); font-size: 1rem; }
.section-light .map-card .btn { background: var(--snow); border-color: var(--snow); color: var(--ink); }
.section-light .map-card .btn:hover { background: transparent; color: var(--snow); }

/* On phones the address card would cover the pin, so it drops below the map */
@media (max-width: 560px) {
  .map-frame { height: auto; }
  #map { position: relative; height: 300px; }
  .map-card { position: static; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
  .map-card span { margin-bottom: 0; }
  .map-card .btn { grid-column: 2; grid-row: 1 / span 2; }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
}
.detail .icon { width: 2rem; height: 2rem; color: var(--crimson); }
.detail h3 { margin: 0.8rem 0 0.4rem; font-family: var(--font-ui); font-weight: 600; font-size: 1.55rem; line-height: 1.1; }
.detail p { color: var(--text-light-muted); font-size: 1.05rem; }
.section-dark .detail .icon,
.section-deep .detail .icon { color: var(--gold); }
.section-dark .detail p,
.section-deep .detail p { color: var(--muted); }

@media (max-width: 900px) { .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .details-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ── Pyrki band ────────────────────────── */
.pyrki-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background:
    repeating-conic-gradient(from 0deg at 88% 50%, rgba(246, 244, 239, 0.05) 0 10deg, transparent 10deg 20deg),
    linear-gradient(120deg, var(--forest-dark), var(--forest));
}
.pyrki-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
}
.pyrki-band h2 {
  margin: 0.9rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pyrki-band p { max-width: 640px; color: rgba(246, 244, 239, 0.88); }
.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem 0.2rem;
  border: 1px solid var(--gold);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 760px) { .pyrki-band-inner { grid-template-columns: 1fr; } }

/* ── FAQ accordion ─────────────────────── */
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0 1.1rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
.faq-item a { color: var(--gold); }

/* ── Director ──────────────────────────── */
.director {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.director-photo { position: relative; }
.director-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.director-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 3px;
  background: var(--ribbon);
}
.director h3 {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.director p { margin-top: 1.25rem; color: var(--muted); }
@media (max-width: 760px) {
  .director { grid-template-columns: 1fr; }
  .director-photo { max-width: 340px; }
}

/* ── Join / forms ──────────────────────── */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.join-intro h2 {
  margin: 0.9rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.join-intro > p { color: var(--muted); }
.check-list { display: grid; gap: 0.75rem; margin: 1.6rem 0 1.25rem; list-style: none; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.check-list a { color: var(--gold); text-underline-offset: 3px; }
.join-intro .fine-print { font-size: 1rem; color: var(--muted); }

.form-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.form-field { display: grid; gap: 0.4rem; min-width: 0; }
.form-wide, .form-panel > .btn, .form-note, .form-status, .form-fallback { grid-column: 1 / -1; }
.form-field label,
.form-field legend {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}
.form-field label span,
.form-field legend span { font-weight: 400; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(246, 244, 239, 0.25);
  border-radius: 0;
  background: var(--ink);
  color: var(--snow);
  color-scheme: dark;
  transition: border-color 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(246, 244, 239, 0.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field textarea { min-height: 96px; resize: vertical; }
.form-panel > .btn { width: 100%; }
.form-note, .form-status, .form-fallback { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.form-status:not(:empty) { padding: 0.75rem 0.9rem; background: rgba(212, 168, 67, 0.12); color: var(--gold); }
.form-fallback a { color: var(--gold); }

.form-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
}
.form-choices legend { float: left; width: 100%; margin-bottom: 0.2rem; }
.form-choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem 0.35rem;
  border: 1px solid rgba(246, 244, 239, 0.25);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.form-choices label:hover { border-color: var(--gold); }
.form-choices label:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.form-choices label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-field .form-choices input[type="checkbox"],
.form-choices input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--crimson);
  color-scheme: light;
}

@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-panel { grid-template-columns: 1fr; } }

/* ── Our friends ───────────────────────── */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}
.friend {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: #fff;
}
/* Monogram tile; swap for the friend's logo or photo when we have one */
.friend-mark { position: relative; aspect-ratio: 1; overflow: hidden; }
.friend-mark > img { width: 100%; height: 100%; object-fit: cover; }
.friend-mark .news-art { padding-bottom: 0; }
.friend-mark .news-art span { padding: 0; font-size: 2.6rem; }
.friend h3 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.friend p { color: var(--text-light-muted); font-size: 1.05rem; }
.friend-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  text-decoration: none;
}
.friend-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) { .friends-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .friend { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
  .friend-mark .news-art span { font-size: 1.7rem; }
}

/* ── Grant / community programs ────────── */
.grant {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.grant h2 {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.grant p { color: var(--text-light-muted); }
.grant p + p { margin-top: 0.85rem; }
.grant strong { color: var(--text-light); }
.grant-programs { display: grid; gap: 0.75rem; margin: 1.1rem 0; list-style: none; }
.grant-programs li { position: relative; padding-left: 1.5rem; color: var(--text-light-muted); }
.grant-programs li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--crimson);
  transform: rotate(45deg);
}
.grant-note { font-size: 1rem; font-style: italic; }

/* The official City of Boise + Arts & History JPG ships on pure white, so it
   sits on a pure-white panel. Gaps and padding keep the brand's clear space:
   half the logo's height on every side. */
.grant-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 1.75rem 2rem 2.5rem;
  background: #fff;
}
.grant-logos-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-align: center;
}
.grant-logo-main { width: min(300px, 100%); }
.grant-logo-main img { width: 100%; }
.grant-logo-mark { width: 150px; }

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

/* ── Embeds (Zeffy) ────────────────────── */
.embed-panel { background: #fff; padding: 0.75rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
.embed-frame { position: relative; width: 100%; overflow: hidden; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Tall enough that each Zeffy form doesn't get its own inner scrollbar */
.embed-frame--donate { height: clamp(720px, 88vh, 920px); }
.embed-frame--tickets { height: clamp(780px, 92vh, 1000px); }
.embed-frame--newsletter { height: 460px; }
.embed-fallback { padding: 0.75rem 0.5rem 0.25rem; text-align: center; font-size: 0.95rem; color: var(--text-light-muted); }
.embed-fallback a { color: var(--crimson); font-weight: 600; }
.embed-narrow { max-width: 760px; margin-inline: auto; }
.embed-slim { max-width: 620px; margin-inline: auto; }

/* ── Event archive ─────────────────────── */
.archive-list { display: grid; gap: 1.25rem; list-style: none; }
.archive-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.6rem 1.75rem;
  background: var(--ink-2);
  border-left: 3px solid var(--gold);
}
.archive-date { min-width: 5.5rem; text-align: center; }
.archive-date .d { display: block; font-family: var(--font-display); font-weight: 500; font-size: 3rem; line-height: 0.9; }
.archive-date .m { display: block; margin-top: 0.35rem; font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.archive-item h3 { margin: 0.3rem 0 0.4rem; font-family: var(--font-ui); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.archive-item p { color: var(--muted); font-size: 1.05rem; }
.archive-item .archive-where { margin-top: 0.5rem; font-size: 1rem; color: var(--snow); }
@media (max-width: 560px) {
  .archive-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .archive-date { display: flex; align-items: baseline; gap: 0.6rem; text-align: left; }
}

/* ── Two-column intro (sub-pages) ──────── */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split h2 {
  margin: 0.8rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.split p { color: var(--muted); }
.split p + p { margin-top: 1rem; }
.section-light .split p { color: var(--text-light-muted); }
.note-box {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(246, 244, 239, 0.05);
  font-size: 1.05rem;
}
.note-box strong { color: var(--gold); }
.section-light .note-box { background: rgba(27, 30, 34, 0.05); border-color: var(--crimson); color: var(--text-light-muted); }
.section-light .note-box strong { color: var(--text-light); }
.stack-list { display: grid; gap: 1.6rem; list-style: none; }
.stack-list .detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; }
.stack-list .detail .icon { margin-top: 0.15rem; }
.stack-list .detail h3 { margin-top: 0; }
.uses-list { display: grid; gap: 0.9rem; margin: 1.5rem 0; list-style: none; }
.uses-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.uses-list .icon { color: var(--crimson); margin-top: 0.1rem; }
.uses-list a { color: var(--crimson); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Footer ────────────────────────────── */
.site-footer {
  padding: 0 0 2.5rem;
  background: var(--ink-deep);
  color: var(--muted);
  font-size: 1rem;
}
.footer-brand {
  width: max-content;
  margin: 0 auto;
  padding: 1.6rem 2.25rem 1.4rem;
  background: #000;
}
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 3.5rem 0 3rem;
}
.footer-cols h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--snow);
}
.footer-cols ul { display: grid; gap: 0.35rem; list-style: none; }
.footer-cols li { padding-left: 0.7rem; border-left: 1px solid rgba(246, 244, 239, 0.3); line-height: 1.35; }
.footer-cols a { text-decoration: none; transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--snow); }

.footer-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.footer-sponsor p { max-width: 560px; font-size: 0.92rem; }
/* White reverse logo; margins keep half-logo-height clear space */
.footer-sponsor a { display: block; width: min(210px, 70%); margin: 0.75rem 0; }
.footer-sponsor img { width: 100%; }
.footer-legal { text-align: center; font-size: 0.9rem; }

.to-top {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 1.75rem auto 0;
  border: 1px solid rgba(246, 244, 239, 0.5);
  color: var(--snow);
  transition: background 0.2s ease, color 0.2s ease;
}
.to-top:hover { background: var(--snow); color: var(--ink); }
.to-top .icon { width: 20px; height: 20px; }

.footer-cols a { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}

/* ── Leaflet tweaks ────────────────────── */
.leaflet-container { font-family: var(--font-body); }
.custom-marker { background: none; border: 0; }

/* ── Reveal on scroll (only when JS runs) ─ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 520px) {
  :root { --gutter: 1rem; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero-content { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide img { transform: none; }
}
