/* Brno Playback Gathering — design tokens, from design_handoff_playback_brno */
:root {
  --ink-plum: #241726;
  --aubergine: #4A2149;
  --terracotta: #B8452A;
  --terracotta-hover: #C9502F;
  --terracotta-shadow: #7E2C19;
  --spotlight: #F2B33D;
  --sage-teal: #2F6F6B;
  --cream: #FBF3E7;
  --sand: #F3E6D3;
  --bone: #EADCC8;
  --text-secondary: #5A4A52;
  --text-muted: #7A6B72;
  --text-alt: #453741;

  --hairline: rgba(36, 23, 38, 0.14);
  --hairline-2: rgba(36, 23, 38, 0.16);
  --border-cream: rgba(36, 23, 38, 0.08);
  --border-dark: rgba(251, 243, 231, 0.28);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: Karla, system-ui, sans-serif;

  --section-pad-y: clamp(56px, 8vw, 96px);
  --section-pad-x: clamp(16px, 4vw, 48px);
  --content-max: 1440px;

  --transition: 140ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-plum);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
}
a:hover { color: #8F3320; }

::selection { background: var(--spotlight); color: var(--ink-plum); }

/* Focus states — not specified in the prototype, added per handoff (README: "must be added") */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark a:focus-visible,
.on-dark button:focus-visible,
[data-surface="dark"] a:focus-visible {
  outline-color: var(--spotlight);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink-plum);
  color: var(--cream);
  border-radius: 8px;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* Anchor targets should clear the sticky header */
#top, #programme, #practical, #register {
  scroll-margin-top: 110px;
}

/* Layout helpers */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section-tight-top {
  padding: 0 var(--section-pad-x) var(--section-pad-y);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--pill {
  padding: 7px 14px;
  border: 1px solid rgba(36, 23, 38, 0.2);
  border-radius: 999px;
  letter-spacing: 0.12em;
  color: var(--aubergine);
}
.eyebrow--dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--spotlight);
}
.eyebrow--amber { color: var(--spotlight); }
.eyebrow--terracotta { color: var(--terracotta); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.btn-arrow { opacity: 0.7; }

.btn-primary {
  padding: 17px 32px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 17px;
  box-shadow: 0 3px 0 var(--terracotta-shadow);
}
.btn-primary:hover {
  background: var(--terracotta-hover);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 16px 26px;
  border: 1.5px solid rgba(36, 23, 38, 0.25);
  color: var(--ink-plum);
  font-size: 16px;
  font-weight: 600;
}
.btn-secondary:hover {
  border-color: var(--ink-plum);
  background: rgba(36, 23, 38, 0.04);
}

.btn-pill-small {
  padding: 10px 20px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--terracotta-shadow);
}
.btn-pill-small:hover {
  background: var(--terracotta-hover);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-cream-on-terracotta {
  margin-top: 8px;
  padding: 19px 40px;
  background: var(--cream);
  color: var(--ink-plum);
  font-size: 18px;
  box-shadow: 0 3px 0 rgba(36, 23, 38, 0.35);
}
.btn-cream-on-terracotta:hover { background: #fff; transform: translateY(-1px); }
.btn-cream-on-terracotta .btn-arrow { opacity: 0.55; }

.pill-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition);
}
.pill-outline-dark:hover { background: rgba(251, 243, 231, 0.1); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px var(--section-pad-x) 8px;
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink-plum);
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.wordmark__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-plum);
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--terracotta);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 7vw, 88px) var(--section-pad-x) clamp(56px, 8vw, 96px);
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 24px 0 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--aubergine);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.hero__fact-date {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__fact-dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--terracotta);
}
.hero__fact-place {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 500;
  color: var(--text-secondary);
}
.hero__lede {
  max-width: 52ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-alt);
  margin: 22px 0 0;
  text-wrap: pretty;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__reassurance {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 0;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 44px;
}
.stat {
  flex: 1 1 130px;
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}
.stat__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Below ~480px the 130px flex-basis forces the three stats into a
   2-then-1 wrap. Shrinking the basis keeps all three on one row and
   lets the longer label break onto its own lines instead. */
@media (max-width: 480px) {
  .hero__stats { gap: 0 12px; }
  .stat { flex-basis: 84px; }
}

.hero__media {
  position: relative;
  padding: 0 0 72px 0;
}
.hero__media-large {
  width: 80%;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bone);
  box-shadow: 0 24px 60px -30px rgba(36, 23, 38, 0.55);
}
.hero__media-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bone);
  border: 6px solid var(--cream);
  box-shadow: 0 18px 40px -22px rgba(36, 23, 38, 0.6);
}
.hero__media-large img,
.hero__media-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Why we gather (dark, full-bleed) ---------- */
.section-dark {
  background: var(--ink-plum);
  color: var(--cream);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--content-max);
  margin: 0 auto;
}
.why-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.why-grid h2 em { font-style: italic; }
.why-pull {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 26px);
  line-height: 1.5;
  margin: 0;
  max-width: 34ch;
  color: #F7E9D6;
  text-wrap: pretty;
}
.why-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(251, 243, 231, 0.72);
  margin: 28px 0 0;
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Programme ---------- */
.programme-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.programme-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.programme-header h2 em { font-style: italic; color: var(--aubergine); }
.text-link-underline {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 5vw, 52px);
}
.programme-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 22px;
  background: var(--sand);
  border: 1px solid var(--border-cream);
}
.programme-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.programme-card__index {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--terracotta);
}
.tag-pill {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-pill--daytime { background: var(--ink-plum); }
.tag-pill--evenings { background: var(--aubergine); }
.tag-pill--throughout { background: var(--sage-teal); }
.programme-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}
.programme-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Panels (venue / closing CTA share the rounded-panel pattern) ---------- */
.panel {
  border-radius: 28px;
}
.panel-dark {
  background: var(--ink-plum);
  color: var(--cream);
  padding: clamp(24px, 4vw, 48px);
}
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.venue-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.venue-grid h2 em { font-style: italic; }
.venue-grid p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(251, 243, 231, 0.75);
  margin: 22px 0 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.venue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag-outline-dark {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  font-size: 14px;
  font-weight: 600;
}
.venue-image {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #3A2A3C;
}
.venue-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hosts ---------- */
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hosts-image {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bone);
  border: 1px solid rgba(36, 23, 38, 0.1);
}
.hosts-image img { width: 100%; height: 100%; object-fit: cover; }
.hosts-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.host-list {
  display: grid;
  gap: 2px;
  margin-top: 30px;
  border-top: 1px solid var(--hairline-2);
}
.host-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.host-row__name {
  font-family: var(--font-display);
  font-size: 30px;
}
.host-row__role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hosts-closing {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 24px 0 0;
  max-width: 50ch;
}

/* ---------- Closing CTA ---------- */
.panel-terracotta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px);
  background: var(--terracotta);
  color: var(--cream);
}
.panel-terracotta .eyebrow {
  color: rgba(251, 243, 231, 0.75);
}
.panel-terracotta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
}
.panel-terracotta p {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(251, 243, 231, 0.85);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 6vw, 56px) var(--section-pad-x) 64px;
  background: var(--ink-plum);
  color: rgba(251, 243, 231, 0.75);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-brand { max-width: 34ch; }
.footer-brand__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cream);
}
.footer-brand__name { font-family: var(--font-display); font-size: 28px; }
.footer-brand__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.footer-brand__line { font-size: 15px; line-height: 1.6; margin: 14px 0 0; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col--contact { align-items: flex-start; }
.footer-col__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spotlight);
}
.footer-col a { font-size: 15px; color: rgba(251, 243, 231, 0.8); }
