/* ==========================================================================
   CRAFTS & DRAFTS FESTIVAL 2026 — design system
   Palette derived from the official festival banner:
   Bavarian blue #2EA9E4 · maroon #8A2439 · gold #B08F2E, on warm white
   Type: Archivo variable — expanded black for display, regular for text
   ========================================================================== */

:root {
  /* bone · espresso · pine · beer-amber · oxblood · Bavarian sky */
  --paper: #FAF7F0;
  --paper-2: #F2EBDD;
  --paper-bright: #FFFFFF;
  --ink: #221C13;
  --ink-soft: #5C5342;
  --pine: #22382B;
  --pine-deep: #1A2C21;
  --maroon: #7D1D2D;
  --maroon-deep: #5E1420;
  --blue: #2EA9E4;
  --blue-ink: #1E6F9C;
  --gold: #DD9A1E;
  --gold-ink: #8A6A14;
  --olive: #5C6047;
  --line: rgba(34, 28, 19, 0.16);
  --line-strong: rgba(34, 28, 19, 0.5);

  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --sec-pad: clamp(64px, 9vw, 120px);

  --shadow-soft: 0 18px 40px -18px rgba(38, 34, 26, 0.35);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--maroon); color: var(--paper); }

:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- primitives ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Bavarian diamond ribbon — the festival banner's signature trim.
   Drifts sideways very slowly, like bunting in a breeze. */
.ribbon {
  height: 11px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='11'%3E%3Cpath d='M11 0 22 5.5 11 11 0 5.5Z' fill='%232EA9E4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 22px 11px;
  animation: ribbon-drift 14s linear infinite;
}
.ribbon--gold {
  background-color: var(--pine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='11'%3E%3Cpath d='M11 0 22 5.5 11 11 0 5.5Z' fill='%23DD9A1E'/%3E%3C/svg%3E");
}
@keyframes ribbon-drift {
  to { background-position-x: 44px; }
}

/* Eyebrow label — small caps with a diamond tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--blue);
  transform: rotate(45deg);
  flex: none;
}
.sec--ink .eyebrow { color: var(--gold); }
.sec--ink .eyebrow::before { background: var(--blue); }
.sec--maroon .eyebrow { color: var(--paper); }
.sec--maroon .eyebrow::before { background: var(--gold); }

/* Display headings — expanded black grotesque, poster voice */
.h-display {
  font-family: var(--font-body);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: 0.55em;
  text-wrap: balance;
}
.h-display em,
.amp {
  font-style: italic;
  font-weight: 700;
  color: var(--maroon);
}
.sec--ink .h-display em, .sec--maroon .h-display em { color: var(--gold); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 1.2em;
}
.sec--ink .lede, .sec--maroon .lede { color: rgba(251, 249, 245, 0.82); }

/* Buttons — festival ticket plates: solid fills with 45-degree notched
   corners (the Bavarian diamond, cut into the shape). Nothing Material:
   no rounding, no outline pills, no elevation, no ripple. Every button
   hovers to amber, like catching the light. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 1.9em;
  font-stretch: 110%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--maroon { background: var(--maroon); color: #FFF; }
.btn--maroon:hover { background: var(--gold); color: var(--ink); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--paper); color: var(--ink); }

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--gold); color: var(--ink); }

/* site-wide announcement bar, filled from js/site-data.js */
.announce {
  background: var(--gold);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.announce .wrap { padding-block: 10px; }
.announce a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce a:hover { color: var(--maroon); }

/* Icons — hand-drawn SVG served from CSS as mask images, so CMS editors
   (WordPress etc.) can never strip them. Color comes from currentColor. */
.icon {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  vertical-align: -0.02em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon--ext { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.icon--star { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.4l1.9 4 4.3.5-3.2 3 .9 4.3L8 11.1l-3.9 2.1.9-4.3-3.2-3 4.3-.5z' fill='%23000'/%3E%3C/svg%3E"); }
.icon--prev { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.8 3.2 5 8l4.8 4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.icon--next { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 3.2 11 8l-4.8 4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.icon--close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.tlink .icon { margin-left: 0.25em; }
.areas .key .icon--star { width: 12px; height: 12px; vertical-align: -0.08em; }
.rail-nav .icon { width: 16px; height: 16px; }
.lb-close .icon { width: 17px; height: 17px; }
.lb-prev .icon, .lb-next .icon { width: 19px; height: 19px; }

/* Text link */
.tlink {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--maroon);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.tlink:hover { color: var(--maroon); }
.sec--ink .tlink { color: var(--paper); text-decoration-color: var(--gold); }
.sec--ink .tlink:hover { color: var(--gold); }

/* Photo plate — bordered print with an offset ink block, like a screenprint.
   The block tucks in a little when you hover: the print "settles". */
.plate { position: relative; }
.plate img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s ease;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  background: var(--maroon);
  z-index: 0;
  transition: transform 0.35s ease;
}
.plate--blue::after { background: var(--blue); }
.plate--gold::after { background: var(--gold); }
.plate--pad { margin-right: 14px; margin-bottom: 14px; }
figure:hover .plate img { transform: translate(3px, 3px); }
figure:hover .plate::after { transform: translate(9px, 9px); }

.figcap {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

/* Sections */
.sec { padding-block: var(--sec-pad); }
.sec--tint { background: var(--paper-2); }
.sec--ink { background: var(--pine); color: var(--paper); }
.sec--ink ::selection { background: var(--gold); color: var(--ink); }
.sec--maroon { background: var(--maroon); color: #FFF; }
.sec--maroon ::selection { background: var(--ink); color: var(--paper); }

.sec-head { max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* Scroll reveal — only ever hides content when our JS is actually running
   (html gets the .js class from an inline script). If scripts are missing,
   e.g. inside a CMS that didn't load them, everything stays visible. */
.js [data-rv] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-rv].in-view { opacity: 1; transform: none; }
.js [data-rv="2"].in-view { transition-delay: 0.12s; }
.js [data-rv="3"].in-view { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rv] { opacity: 1; transform: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(38, 34, 26, 0.45); }

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  line-height: 1.1;
  padding-block: 10px;
}
.brand-mark {
  width: 34px;
  height: auto;
  flex: none;
  transition: transform 0.3s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-title {
  display: block;
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-title .amp { font-weight: 700; }
.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 2px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--maroon); }
.site-nav a[aria-current="page"] {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 77px 0 0 0;
    background: var(--paper);
    padding: 8vh var(--gutter);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 22px 0;
    font-stretch: 118%;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { border-bottom: 0; }
  .site-nav a[aria-current="page"]::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 14px;
    background: var(--blue);
    transform: rotate(45deg);
  }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   HERO (home)
   ========================================================================== */

.hero { padding-block: clamp(52px, 7vw, 104px) clamp(64px, 8vw, 110px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-title {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 0.35em;
}
.hero-title .amp {
  font-weight: 700;
  margin-right: 0.08em;
}

.hero-tag {
  margin-top: 1.1em;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 30em;
}
.hero-tag strong { color: var(--ink); font-weight: 600; }

.hero-when {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.hero-date { display: flex; align-items: baseline; gap: 10px; }
.hero-date .mo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
}
.hero-date .days {
  font-stretch: 122%;
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-hours {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--line);
  font-size: 0.86rem;
  align-self: center;
  display: grid;
  gap: 4px;
}
.hero-hours b {
  display: inline-block;
  width: 3.4em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--maroon);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: clamp(26px, 3.5vw, 40px);
}

.hero-media { position: relative; }
.hero-media .plate { margin: 0 14px 14px 0; }
.hero-crest {
  position: absolute;
  z-index: 2;
  left: -22px;
  bottom: 40px;
  width: clamp(64px, 7vw, 92px);
  height: auto;
  transform: rotate(-5deg);
  filter: drop-shadow(0 10px 16px rgba(38, 34, 26, 0.35));
  transition: transform 0.4s ease;
}
.hero-media:hover .hero-crest { transform: rotate(0deg) scale(1.04); }
.hero-media .figcap { margin-right: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .hero-crest { left: auto; right: -6px; }
}
@media (max-width: 460px) {
  .hero-hours { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
  background: var(--gold);
  color: var(--ink);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  padding-block: 13px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.ticker-track li {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-inline: 1.6em;
  display: flex;
  align-items: center;
  gap: 3.2em;
}
.ticker-track li::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--maroon);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-track ul { flex-wrap: wrap; row-gap: 6px; }
  .ticker-track ul[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   HOME — festival story
   ========================================================================== */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.story-grid > .sticky-col { position: sticky; top: 110px; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid > .sticky-col { position: static; }
}

.program {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: prog;
}
.program li {
  counter-increment: prog;
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 18px;
  align-items: baseline;
  padding-block: 19px;
  border-top: 1px solid var(--line);
}
.program li:last-child { border-bottom: 1px solid var(--line); }
.program li::before {
  content: counter(prog, decimal-leading-zero);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-ink);
}
.program b {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
}
.program span { color: var(--ink-soft); font-size: 0.95rem; }

/* photo collage */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 96px);
  align-items: start;
}
.collage figure:nth-child(1) { grid-column: 1 / span 7; }
.collage figure:nth-child(2) { grid-column: 9 / span 4; margin-top: clamp(40px, 6vw, 90px); }
.collage figure:nth-child(3) { grid-column: 3 / span 6; margin-top: clamp(-30px, -2vw, -16px); }
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(6, 1fr); }
  .collage figure:nth-child(1) { grid-column: 1 / span 6; }
  .collage figure:nth-child(2) { grid-column: 3 / span 4; margin-top: 0; }
  .collage figure:nth-child(3) { grid-column: 1 / span 5; margin-top: 0; }
}

/* ==========================================================================
   HOME — schedule & map
   ========================================================================== */

.sched { margin-top: clamp(36px, 5vw, 56px); }
.sched-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr) minmax(0, 2fr);
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.sched-row:last-of-type { border-bottom: 1px solid var(--line); }
.sched-day {
  font-stretch: 122%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}
.sched-date { color: var(--ink-soft); font-size: 0.95rem; }
.sched-time {
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .sched-row { grid-template-columns: 1fr auto; }
  .sched-date { grid-column: 1 / -1; order: 3; margin-top: -12px; padding-bottom: 4px; }
}

.loc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(30px, 4vw, 44px);
}
.loc-bar address {
  font-style: normal;
  line-height: 1.45;
}
.loc-bar address b {
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.2rem;
  display: block;
}
.loc-bar address span { color: var(--ink-soft); }

/* compact visit teaser on the home page */
.visit-strip {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.visit-strip .hero-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) {
  .visit-strip { grid-template-columns: 1fr; }
  .visit-strip .hero-actions { justify-content: flex-start; }
}

/* map section */
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.areas {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
  font-size: 0.92rem;
}
.areas li {
  break-inside: avoid;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}
.areas .key {
  font-style: italic;
  font-weight: 700;
  color: var(--maroon);
  min-width: 1.2em;
}
@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .areas { columns: 1; }
}

/* ==========================================================================
   HOME — bier band
   ========================================================================== */

.bier-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.bier-crest {
  width: min(230px, 55%);
  height: auto;
  margin-inline: auto;
  transform: rotate(3deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s ease;
}
.bier-grid:hover .bier-crest { transform: rotate(-2deg) scale(1.03); }
.bier-list {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
}
.bier-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(251, 249, 245, 0.18);
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: rgba(251, 249, 245, 0.75);
}
.bier-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  position: relative;
  top: -2px;
}
.bier-list b { display: block; color: var(--paper); }
.bier-list span { font-size: 0.92rem; }
@media (max-width: 860px) {
  .bier-grid { grid-template-columns: 1fr; }
  .bier-crest { margin-top: 10px; }
}

/* same diamond list, for light backgrounds */
.mark-list {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
}
.mark-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-soft);
}
.mark-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  position: relative;
  top: -2px;
}
.mark-list b { display: block; color: var(--ink); }
.mark-list span { font-size: 0.92rem; }

/* ==========================================================================
   HOME — artists rail
   ========================================================================== */

.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.rail-shell { position: relative; }
.rail {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon) transparent;
  cursor: grab;
}
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail figure {
  width: clamp(210px, 22vw, 260px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rail img {
  width: 100%;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s ease;
  cursor: zoom-in;
}
.rail figure:hover img { transform: translateY(-6px); }
.rail figcaption { margin-top: 12px; line-height: 1.35; }
.rail .a-name { display: block; font-weight: 700; font-size: 0.98rem; }
.rail .a-med {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
}

.rail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rail-nav {
  display: flex;
  gap: 10px;
}
[data-zoom] img { cursor: zoom-in; }
.rail-nav button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.rail-nav button:hover { background: var(--gold); color: var(--ink); }
.rail-nav button:active { transform: translateY(1px); }
.rail-nav button:disabled { opacity: 0.3; pointer-events: none; }

/* ==========================================================================
   HOME — community moment
   ========================================================================== */

.moment { position: relative; }
.moment img {
  width: 100%;
  height: clamp(420px, 62vh, 640px);
  object-fit: cover;
}
.moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 24, 17, 0.82) 0%, rgba(28, 24, 17, 0.25) 45%, rgba(28, 24, 17, 0) 70%);
}
.moment-text {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: clamp(36px, 6vw, 72px);
  color: var(--paper);
}
.moment-text .h-display { max-width: 15em; }
.moment-text p {
  margin-top: 1em;
  max-width: 34em;
  color: rgba(251, 249, 245, 0.85);
}

/* ==========================================================================
   HOME — notice board
   ========================================================================== */

.board { margin-top: clamp(36px, 5vw, 56px); }
.notice {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.notice:last-child { border-bottom: 1px solid var(--line); }
.notice h3 { font-size: 1.1rem; font-weight: 700; }
.notice p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 3px; }

.stamp {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: rotate(-5deg);
  transition: transform 0.25s ease;
}
.notice:hover .stamp { transform: rotate(-1deg) scale(1.06); }
.stamp--open { color: var(--blue-ink); }
.stamp--closed { color: var(--maroon); }
.stamp--info { color: var(--gold-ink); }

@media (max-width: 720px) {
  .notice { grid-template-columns: 1fr; gap: 12px; }
  .stamp { order: -1; }
  .notice .btn, .notice .tlink { justify-self: start; }
}

/* ==========================================================================
   SHARED — page intro banner (interior pages)
   ========================================================================== */

.page-intro { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-intro .h-display { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
}

/* stat strip used on interior pages */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.fact-row div { min-width: 130px; }
.fact-row .n {
  display: block;
  font-stretch: 122%;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.fact-row .n em { font-style: italic; color: var(--maroon); }
.fact-row .l {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   ARTISTS page
   ========================================================================== */

.findex {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  align-items: baseline;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}
.findex-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 8px;
}
.findex button {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.findex button:hover { color: var(--ink); }
.findex button[aria-pressed="true"] {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}
.findex button sup {
  font-size: 0.68em;
  color: var(--gold-ink);
  margin-left: 2px;
}

.agrid {
  columns: 4 240px;
  column-gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(36px, 5vw, 56px);
}
.tile {
  break-inside: avoid;
  margin: 0 0 clamp(28px, 3vw, 40px);
}
.tile.hidden { display: none; }
.tile img {
  width: 100%;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.tile:hover img { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.tile.pop { animation: tile-pop 0.45s ease both; }
@keyframes tile-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.tile .a-name { font-weight: 700; font-size: 0.95rem; }
.tile .a-med {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}

.interlude { margin-block: clamp(40px, 6vw, 72px); }
.interlude img {
  width: 100%;
  height: clamp(300px, 46vh, 480px);
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

/* ==========================================================================
   SPONSORSHIP page
   ========================================================================== */

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pillar;
}
.pillar-list > li {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: minmax(70px, 110px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.pillar-list > li::before {
  content: counter(pillar, decimal-leading-zero);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-ink);
  line-height: 1;
}
.pillar-list h3 {
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
}
.pillar-list p { margin-top: 0.6em; color: var(--ink-soft); max-width: 44em; }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) {
  .support-grid { grid-template-columns: 1fr; }
}

.package-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: clamp(28px, 4vw, 40px);
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 1.05rem;
}
.contact-cta a { font-weight: 700; }

/* ==========================================================================
   CONTACT page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.info-block { padding-block: 22px; border-top: 1px solid var(--line); }
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}
.info-block p, .info-block address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }
.info-block a { color: var(--ink); font-weight: 600; text-decoration-color: var(--maroon); text-underline-offset: 3px; }
.info-block a:hover { color: var(--maroon); }

/* form */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field label .opt { color: var(--ink-soft); font-weight: 600; letter-spacing: 0.1em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326221A' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(138, 36, 57, 0.18);
}
.field textarea { min-height: 170px; resize: vertical; }

.form-note { font-size: 0.88rem; color: var(--ink-soft); }
.form-note a { font-weight: 600; }

.form-status {
  display: none;
  padding: 16px 18px;
  border: 1.5px solid var(--blue-ink);
  color: var(--blue-ink);
  font-weight: 600;
  border-radius: 0;
}
.form-status.error { border-color: var(--maroon); color: var(--maroon); }
.form-status.show { display: block; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ==========================================================================
   LIGHTBOX — artwork viewer + festival map zoom
   ========================================================================== */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(24, 20, 14, 0.94);
  overflow: auto;
}
.lb.open { display: block; }
.lb-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  gap: 18px;
}
.lb img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(251, 249, 245, 0.25);
  animation: lb-in 0.3s ease both;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}
.lb.zoomable img { cursor: zoom-in; }
.lb.zoomed { display: block; }
.lb.zoomed .lb-inner { display: block; padding: 0; }
.lb.zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  margin: 0 auto;
  border: 0;
}
.lb-cap {
  color: var(--paper);
  font-size: 0.9rem;
  text-align: center;
}
.lb-cap b { font-weight: 700; }
.lb-cap span {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.lb-hint {
  color: rgba(251, 249, 245, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border: 1.5px solid rgba(251, 249, 245, 0.4);
  border-radius: 0;
  font-size: 1.3rem;
  background: rgba(24, 20, 14, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.lb-close:hover { border-color: var(--paper); transform: rotate(90deg); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--paper);
  border: 1.5px solid rgba(251, 249, 245, 0.4);
  border-radius: 0;
  font-size: 1.4rem;
  background: rgba(24, 20, 14, 0.6);
  transition: border-color 0.2s ease;
}
.lb-prev:hover, .lb-next:hover { border-color: var(--paper); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
body.lb-open { overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-foot {
  background: var(--pine-deep);
  color: rgba(251, 249, 245, 0.78);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(52px, 7vw, 84px) clamp(36px, 5vw, 56px);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand .brand-title { color: var(--paper); font-size: 1.3rem; }
.foot-brand .tagline {
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 10px;
  max-width: 18em;
}
.foot-brand > img { width: 58px; height: auto; margin-bottom: 16px; }

.foot-logo { width: 110px; height: auto; margin-bottom: 14px; }

.site-foot h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.site-foot address { font-style: normal; line-height: 1.7; font-size: 0.95rem; }
.site-foot a { color: rgba(251, 249, 245, 0.9); text-decoration: none; border-bottom: 1px solid rgba(251, 249, 245, 0.28); transition: color 0.2s ease, border-color 0.2s ease; }
.site-foot a:hover { color: var(--gold); border-color: var(--gold); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(251, 249, 245, 0.16);
  font-size: 0.82rem;
  color: rgba(251, 249, 245, 0.55);
}
