/* Approved identity: DM Serif Display for display type; Plus Jakarta Sans
   for reading and controls. Keep these fonts self-hosted with their OFL files. */
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display/font.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans/font.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font-main: "Plus Jakarta Sans", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --page-edge: clamp(14px, 2.4vw, 28px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
}

button, input, textarea, select {
  font-family: var(--font-body);
}

/* Display roles win over the older page-specific single-family rules. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.08 !important;
  text-transform: none !important;
  text-wrap: balance;
}

/* The wordmark is real, accessible text. Container units keep its scale
   proportional to the lockup without waiting for a script or font measurement. */
.roots-wordmark,
.benefit-roots-wordmark {
  container-type: inline-size;
}

.roots-wordmark-type {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 0.115em;
  font-family: var(--font-display);
  font-size: 15.6cqw;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.roots-wordmark-type > span { flex: 0 0 auto; }
.wordmark-roots { color: var(--green, #187247); }
.wordmark-music { color: var(--yellow, #f0a000); }
.wordmark-roots,
.wordmark-music {
  -webkit-text-stroke: clamp(0.7px, 0.012em, 1.5px) rgba(255, 253, 248, 0.96);
  paint-order: stroke fill;
}
.wordmark-of {
  color: var(--ink, #171410);
  font-size: 0.31em;
  line-height: 1;
  letter-spacing: -0.015em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-inline: 0.06em;
}
.benefit-roots-wordmark .wordmark-of { color: var(--paper); }

.landing-page .hero-inner {
  --hero-top: clamp(104px, 13svh, 156px);
  --hero-bottom: clamp(40px, 6svh, 72px);
  --hero-gutter: clamp(20px, 4vw, 64px);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: min(1280px, calc(100% - 2 * var(--hero-gutter)));
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--hero-top) 0 var(--hero-bottom);
}
.landing-page .hero-copy {
  display: grid;
  grid-template-rows: auto auto minmax(24px, 1fr) auto;
  align-items: start;
  justify-items: center;
  row-gap: clamp(24px, 4svh, 42px);
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--hero-top) - var(--hero-bottom));
  flex: none;
  text-align: center;
}
.landing-page .hero-brand-row {
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: normal;
  gap: clamp(18px, 2vw, 30px);
  width: min(100%, 1160px);
  margin: 0 auto;
}
.landing-page .roots-wordmark {
  display: block;
  grid-row: auto;
  flex: initial;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.landing-page .roots-wordmark-type { justify-content: center; }
.hero-menu {
  --badge-height: clamp(52px, 6.5vw, 94px);
  --open-badge-height: clamp(44px, 3.4vw, 48px);
  --open-gap: 8px;
  --menu-height: calc(var(--open-badge-height) * 4 + var(--open-gap) * 3);
  --closed-top: calc((var(--menu-height) - var(--badge-height) * 1.22 - 34px) / 2);
  position: relative;
  width: clamp(240px, 26vw, 340px);
  height: var(--menu-height);
}
.stripe-menu-caption {
  position: absolute;
  z-index: 26;
  top: calc(var(--closed-top) + var(--badge-height) * 1.22 + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 44px;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 160ms ease;
}
.stripe-menu-caption:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hero-menu:has(.stripe-menu.is-menu-open) .stripe-menu-caption {
  opacity: 0;
  pointer-events: none;
}
.landing-page .stripe-menu {
  --badge-height: inherit;
  --stripe-width: clamp(12px, 1.6vw, 22px);
  --stripe-gap: clamp(10px, 1.25vw, 18px);
  --open-gap: inherit;
  --open-badge-height: inherit;
  --open-row-height: calc(var(--open-badge-height) + var(--open-gap));
  --open-left: 0px;
  grid-row: auto;
  flex: initial;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  cursor: pointer;
}
.landing-page .stripe-badge {
  top: var(--closed-top);
  left: calc((100% - var(--closed-width)) / 2 + var(--stripe-left));
  height: var(--badge-height);
  transform: translateY(var(--closed-y)) rotate(6deg);
}
.landing-page .stripe-badge:nth-child(2) { --closed-y: calc(var(--badge-height) * 0.13); }
.landing-page .stripe-badge:nth-child(3) { --closed-y: calc(var(--badge-height) * 0.02); }
.landing-page .stripe-badge:nth-child(4) { --closed-y: calc(var(--badge-height) * 0.2); }
/* Restore the four horizontal rows. Reserving their full height in both
   states lets the bars turn sideways without shifting the hero content. */
.landing-page .stripe-menu.is-menu-open .stripe-badge {
  top: calc(var(--stripe-order) * var(--open-row-height));
  left: 0;
  width: 100%;
  height: var(--open-badge-height);
  transform: translateY(0) rotate(0deg);
}
.landing-page .stripe-menu::after { display: none; }
.landing-page .stripe-label,
.landing-page .stripe-flow-inner span {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
}
.landing-page .stripe-badge-yellow .stripe-label,
.landing-page .stripe-badge-yellow .stripe-flow-inner span { color: var(--ink); }
.landing-page .hero-text-stack {
  grid-row: 2;
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}
.landing-page .eyebrow {
  margin: 0 auto 22px;
  max-width: 760px;
  font-size: clamp(0.72rem, 1.08vw, 0.94rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.035em;
}
.landing-page #hero-title {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: min(clamp(84px, 15vw, 166px), 16svh);
  line-height: 0.9 !important;
  white-space: normal;
  text-wrap: initial;
  text-align: center;
}
.hero-title-line { display: block; }
.hero-title-line + .hero-title-line {
  margin-top: 0.02em;
  padding-left: 0;
}
.landing-page .hero-actions {
  position: static;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  transform: none;
}
.landing-page .hero-actions .button {
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  font-size: clamp(0.75rem, 1.02vw, 0.9rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

/* Every page uses the same navigation row, independent of its content width. */
.subpage { --subpage-edge-offset: var(--page-edge); }
.preview-shell { --preview-edge-offset: var(--page-edge); }
.subpage-topbar,
.preview-top { min-height: 44px; }
.site-corner-tools,
.subpage .site-corner-tools,
.preview-shell .site-corner-tools {
  --corner-control-height: 44px;
  top: calc(env(safe-area-inset-top, 0px) + var(--page-edge));
  right: calc(env(safe-area-inset-right, 0px) + var(--page-edge));
  align-items: center;
  gap: 8px;
}
.site-corner-tools .language-switch button { min-width: 38px; min-height: 34px; font-size: 0.74rem; }
.site-search-anchor:not(.is-open) .site-search-bar { grid-template-columns: minmax(0, 1fr); width: 44px; height: 44px; }
.site-search-anchor:not(.is-open) .site-search-trigger { width: 100%; height: 100%; }
.site-search-anchor:not(.is-open) :is(.site-search-input, .site-search-close) { position: absolute; visibility: hidden; }
.site-corner-tools:has(.site-search-anchor.is-open)::before { content: ""; flex: 0 0 44px; width: 44px; height: 44px; }
.site-search-anchor.is-open {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--page-edge) + 54px);
  right: calc(env(safe-area-inset-right, 0px) + var(--page-edge));
  left: auto;
  width: min(620px, calc(100vw - 2 * var(--page-edge)));
  height: 44px;
}
.site-search-anchor.is-open .site-search-bar { width: 100%; height: 44px; }
.site-search-popover { max-height: min(580px, calc(100svh - env(safe-area-inset-top, 0px) - var(--page-edge) - 120px)); }
.subpage .site-back-control,
.site-back-control {
  position: absolute;
  z-index: 150;
  top: calc(env(safe-area-inset-top, 0px) + var(--page-edge));
  left: calc(env(safe-area-inset-left, 0px) + var(--page-edge));
  width: clamp(132px, 16vw, 180px);
  max-width: calc(100vw - 2 * var(--page-edge) - 151px);
  height: 44px;
  min-height: 44px;
  padding: 7px 10px;
  color: var(--paper, #fffdf8);
  background: var(--ink, #171410);
  border: 1px solid var(--ink, #171410);
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.scroll-top { right: calc(env(safe-area-inset-right, 0px) + var(--page-edge)); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--page-edge)); }
.subpage .footer-legal,
.landing-page .footer-legal,
.footer-legal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  justify-content: center;
}
.footer-legal .footer-legal-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px !important; line-height: 1.3; text-align: center; }

/* Longer running text keeps the open rhythm of the selected specimen. */
.diary-festival-copy p,
.benefit-note-copy p,
.about-copy p,
.documentary-detail p {
  font-weight: 400;
  line-height: 1.75;
}
.diary-page .subpage-hero h1,
.partners-page .subpage-hero h1,
.action-page .action-hero h1 {
  line-height: 1.06 !important;
}
.diary-page .subpage-hero h1 { overflow-wrap: normal; hyphens: none; }
.subpage-hero h1,
.action-hero h1 { overflow-wrap: break-word; }

.benefit-concert-page .benefit-concert-hero h1 {
  max-width: 100%;
  font-size: clamp(52px, 7.8vw, 112px);
  line-height: 1.03 !important;
  white-space: normal;
}
.benefit-event-subtitle {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.55rem, 3.1vw, 2.7rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.015em;
  text-transform: none;
}
.benefit-concert-hero .benefit-follow-up,
.benefit-concert-hero .benefit-ticket-note {
  font-weight: 400;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
}
.benefit-hero-event-details { flex-wrap: wrap; }
.benefit-updates h3 { line-height: 1.15 !important; }

/* The full-screen map shares the display and reading roles with the site. */
.live-map-page .live-map-arrival strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-transform: none;
  -webkit-text-stroke: 0;
}
.live-map-page .live-map-arrival > span,
.live-map-page .live-map-readout > span,
.live-map-page .live-map-readout strong { font-weight: 700; }

/* Phones and portrait tablets keep the same stable menu rectangle between
   the wordmark and title. The open menu never adds height to this row. */
@media (max-width: 760px),
  (min-width: 761px) and (max-width: 1100px) and (min-height: 820px) {
  .landing-page .hero-inner {
    --hero-top: calc(env(safe-area-inset-top, 0px) + 96px);
    --hero-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
    --hero-gutter: 20px;
    width: calc(100% - 2 * var(--hero-gutter));
    min-height: 100svh;
  }
  .landing-page .hero-copy {
    grid-template-rows: auto minmax(18px, 0.725fr) auto minmax(18px, 0.725fr) auto minmax(22px, 1.05fr) auto;
    width: min(100%, 620px);
    margin-inline: auto;
    row-gap: 0;
    align-items: center;
  }
  .landing-page .hero-brand-row { display: contents; }
  .landing-page .roots-wordmark { grid-row: 1; width: 100%; max-width: none; }
  .landing-page .hero-menu {
    --badge-height: clamp(38px, 7svh, 64px);
    grid-row: 3;
    width: min(360px, 100%);
  }
  .landing-page .stripe-menu {
    --stripe-width: clamp(12px, 3.6vw, 20px);
    --stripe-gap: clamp(13px, 3.7vw, 24px);
    margin: 0;
    transform: none;
  }
  .landing-page .stripe-label,
  .landing-page .stripe-flow-inner span {
    font-size: clamp(12px, 2.6vw, 13px);
  }
  .landing-page .hero-text-stack { grid-row: 5; display: block; width: 100%; margin: 0; }
  .landing-page .eyebrow { font-size: clamp(11px, 2.65vw, 14px); margin: 0 auto 14px; }
  .landing-page #hero-title { font-size: min(clamp(48px, 18vw, 110px), 15svh); }
  .landing-page .hero-actions { grid-row: 7; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 10px; }
  .landing-page .hero-actions .button { width: 100%; min-height: 48px; padding: 13px 18px; font-size: 0.78rem; }

}

@media (max-width: 760px) {
  .benefit-concert-page .benefit-concert-hero h1 { font-size: clamp(38px, 10.8vw, 66px); }
  .benefit-event-subtitle { font-size: clamp(1.4rem, 6.1vw, 1.9rem) !important; }
  .benefit-concert-hero .benefit-follow-up,
  .benefit-concert-hero .benefit-ticket-note { font-size: 0.85rem; }
  .benefit-hero-event-details { font-size: 0.88rem !important; }
  .diary-page .subpage-hero h1 { font-size: clamp(2.2rem, 8.8vw, 3.6rem) !important; white-space: normal !important; }
}

@media (max-width: 680px) {
  .footer-legal { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-height: 800px) and (min-width: 761px) {
  .landing-page .hero-inner { --hero-top: calc(env(safe-area-inset-top, 0px) + 88px); --hero-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); }
  .landing-page .hero-copy { row-gap: 20px; }
  .landing-page .roots-wordmark-type { font-size: min(15.6cqw, 15svh); }
  .landing-page #hero-title { font-size: min(clamp(52px, 18vw, 144px), 15svh); }
}
@media (max-height: 600px) and (min-width: 761px) {
  .landing-page .hero-inner { --hero-top: calc(env(safe-area-inset-top, 0px) + 76px); --hero-bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); }
  .landing-page .hero-copy { grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: 10px; }
  .landing-page .roots-wordmark-type { font-size: min(15.6cqw, 14svh); }
  .landing-page .hero-menu { --badge-height: clamp(36px, 11svh, 54px); }
  .landing-page .eyebrow { margin-bottom: 12px; font-size: 0.68rem; }
  .landing-page .hero-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .landing-page .hero-actions .button { padding-inline: 10px; font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .stripe-menu,
  .landing-page .stripe-badge,
  .landing-page .stripe-label,
  .landing-page .stripe-flow,
  .stripe-menu-caption { transition: none; animation: none; }
}
@media print {
  .site-corner-tools, .site-back-control { display: none !important; }
}

/* Written dates keep the day before the month in the diary calendar blocks. */
.diary-card-date span,.diary-day-date span:first-of-type{text-transform:none}
