:root {
  --paper: #f1eee7;
  --paper-soft: #f8f5ef;
  --ink: #17221d;
  --pine: #17251e;
  --pine-soft: #24362c;
  --muted: #545e58;
  --line: rgba(23, 34, 29, 0.18);
  --cream: #f5f1e8;
  --cream-soft: rgba(245, 241, 232, 0.78);
  --cream-line: rgba(245, 241, 232, 0.18);
  --accent: #16707a;
  --accent-light: #8fc0bd;
  --max: 1180px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

.shell {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.section-heading {
  margin-top: 0.8rem;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.body {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  background: var(--cream);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: #fff;
}

/* Hero */

.hero {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background: var(--pine);
  color: var(--cream);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.event-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--cream);
  text-decoration: none;
}

.event-mark {
  width: 40px;
  height: 32px;
  background: currentColor;
  -webkit-mask: url(holler-duck.png?v=2) center / contain no-repeat;
          mask: url(holler-duck.png?v=2) center / contain no-repeat;
}

.event-brand span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.event-brand small,
.event-brand strong {
  line-height: 1;
  text-transform: uppercase;
}

.event-brand small {
  color: var(--cream-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.event-brand strong {
  font-size: 0.74rem;
  letter-spacing: 0.11em;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.head-link {
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.76rem;
  text-decoration: none;
}

.head-link:hover,
.head-link:focus-visible {
  color: #fff;
}

.head-link.primary {
  border-bottom: 1px solid rgba(245, 241, 232, 0.56);
  padding-bottom: 0.22rem;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    ".     mosaic"
    "title mosaic"
    "lede  mosaic"
    "copy  mosaic"
    ".     mosaic";
  grid-template-rows: 1fr auto auto auto 1fr;
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 6vh, 4rem);
}

.hero-title {
  grid-area: title;
}

.hero h1 {
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 0.9rem;
  color: var(--cream-soft);
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-lede {
  grid-area: lede;
  margin-top: 1.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.3;
}

.hero-copy {
  grid-area: copy;
  margin-top: 1.2rem;
}

.hero-copy > p {
  max-width: 470px;
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  align-items: center;
  margin-top: 1.8rem;
}

/* One photo on top, two below, on every screen size. */
.hero-mosaic {
  display: grid;
  grid-area: mosaic;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-self: center;
}

.hero-mosaic img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-mosaic img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

/* Why The Holler */

.why {
  padding: var(--section) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pine);
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.portrait-caption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  left: 1.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(245, 241, 232, 0.62);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 12px rgba(8, 14, 11, 0.6);
  text-transform: uppercase;
}

/* Why it matters */

.matters {
  padding: var(--section) 0;
  background: var(--pine);
  color: var(--cream);
}

.matters .eyebrow,
.champions .eyebrow,
.field-wheel .eyebrow {
  color: var(--accent-light);
}

.matters .section-heading {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
}

.matters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: start;
}

.matters-copy {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.6rem;
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* The Spirit of The Holler */

.spirit {
  padding: var(--section) 0;
  background: var(--paper-soft);
}

.spirit-layout {
  max-width: 820px;
}

.spirit-body {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.35;
}

/* Recap */

.recap {
  padding: var(--section) 0;
  scroll-margin-top: 1rem;
}

.recap-head {
  max-width: 760px;
  text-wrap: balance;
}

.recap-group {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.recap-group img {
  height: auto;
  background: var(--pine);
}

.recap-group figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.day-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pine);
}

.day-photo img {
  height: 100%;
  object-fit: cover;
}

.day-copy {
  padding-top: 1.4rem;
}

.day-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.day-copy h3 {
  margin: 0.5rem 0 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.day-copy p:not(.day-label) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Champions */

.champions {
  padding: var(--section) 0;
  background: var(--pine);
  color: var(--cream);
}

.champions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.champions-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.champions-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.final-score {
  margin-top: 1.4rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.final-score span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Photo story and gallery grid */

.story {
  padding: var(--section) 0;
}

.story-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.story-label {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-label::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.story-label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.story-label a:hover,
.story-label a:focus-visible {
  color: var(--ink);
}

.story-head + .story-label {
  margin-top: 0;
}

.story .shell,
.gallery-section {
  container-type: inline-size;
}

.photo-grid {
  --cols: 3;
  --gap: clamp(0.5rem, 1.2vw, 0.9rem);
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--gap);
}

.photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pine-soft);
  cursor: zoom-in;
}

.photo.wide {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
}

/* Rows sized from the grid width so wide and tall photos line up exactly */
@supports (height: 1cqw) {
  .photo-grid {
    grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.25);
  }

  .photo,
  .photo.wide {
    aspect-ratio: auto;
  }
}

.photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo:hover img,
.photo:focus-visible img {
  transform: scale(1.03);
}

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

/* Organizations wheel */

.field-wheel {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.logo-carousel {
  overflow: hidden;
  margin-top: 1rem;
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.logo-track,
.logo-set {
  display: flex;
  width: max-content;
  align-items: center;
}

.logo-set {
  gap: clamp(2.2rem, 4vw, 4rem);
  padding-right: clamp(2.2rem, 4vw, 4rem);
}

.logo-track {
  animation: field-scroll 64s linear infinite;
}

.field-logo {
  display: flex;
  width: clamp(130px, 14vw, 180px);
  height: clamp(76px, 7vw, 96px);
  flex: none;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

/* A fixed box keeps SVGs without their own width from collapsing. */
.field-logo img {
  width: 100%;
  height: 36px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.72;
}

.field-logo.logo-text img {
  width: 40px;
}

.field-logo.logo-icon img {
  width: 32px;
  border-radius: 5px;
  filter: grayscale(1) contrast(1.15);
}

.field-logo span {
  color: var(--cream-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@keyframes field-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Footer */

.follow {
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--pine);
  color: var(--cream);
  text-align: center;
}

.follow-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.follow-link .event-mark {
  width: 50px;
  height: 40px;
}

.follow-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.follow-sub {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--cream-line);
  color: var(--cream-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.follow-link:hover .follow-sub,
.follow-link:focus-visible .follow-sub {
  border-color: var(--cream-soft);
  color: var(--cream);
}

.site-foot {
  padding: 1.6rem 0 2rem;
  background: var(--pine);
  color: var(--cream-soft);
  font-size: 0.72rem;
}

.site-foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-line);
}

.site-foot a {
  text-decoration: none;
}

/* Gallery page */

.gallery-page {
  background: var(--paper);
}

.gallery-head {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--pine);
  color: var(--cream);
}

.gallery-head .eyebrow {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  color: var(--accent-light);
}

.gallery-head h1 {
  margin-top: 0.8rem;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.gallery-head p:last-child {
  max-width: 560px;
  margin-top: 1.2rem;
  color: var(--cream-soft);
  line-height: 1.7;
}

.gallery-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--pine);
  border-top: 1px solid var(--cream-line);
}

.gallery-nav ul {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: none;
}

.gallery-nav a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(245, 241, 232, 0.3);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.gallery-nav a:hover,
.gallery-nav a:focus-visible {
  border-color: var(--cream);
}

.gallery-nav small {
  color: var(--cream-soft);
  font-size: 0.72rem;
  font-weight: 400;
}

.gallery-section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 4rem;
}

.gallery-section:last-of-type {
  padding-bottom: var(--section);
}

.gallery-section h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.gallery-section h2 + p {
  margin: 0.6rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-page .photo-grid {
  --cols: 4;
}

.gallery-nav-inner {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.gallery-nav ul {
  flex: 1;
  min-width: 0;
}

.select-toggle {
  flex: none;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.select-toggle[aria-pressed="true"] {
  background: transparent;
  color: var(--cream);
}

.selecting {
  padding-bottom: 6rem;
}

.selecting .photo {
  cursor: pointer;
}

.selecting .photo::after {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: rgba(8, 14, 11, 0.35);
  content: "";
}

.selecting .photo.selected {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.selecting .photo.selected::after {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f1e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.select-bar {
  position: fixed;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cream-line);
  background: var(--pine);
  color: var(--cream);
  font-size: 0.9rem;
}

.select-bar[hidden] {
  display: none;
}

.select-download {
  border: 0;
  cursor: pointer;
}

.select-download:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Lightbox */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(8, 12, 10, 0.96);
  color: var(--cream);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(8, 12, 10, 0.96);
}

.lightbox img {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: clamp(0.5rem, 3vw, 2rem) clamp(0.5rem, 3vw, 2rem) 0;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.8rem clamp(0.8rem, 3vw, 2rem) max(0.8rem, env(safe-area-inset-bottom));
}

.lightbox-count {
  margin-right: auto;
  color: var(--cream-soft);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-download,
.lightbox button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 241, 232, 0.3);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.lightbox button {
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-download {
  padding: 0 1.1rem;
  background: var(--cream);
  color: var(--pine);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: var(--cream);
}

@media (max-width: 1000px) {
  .gallery-page .photo-grid {
    --cols: 3;
  }
}

@media (max-width: 900px) {
  .split,
  .matters-grid,
  .champions-grid,
  .days {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "lede" "mosaic" "copy";
    grid-template-rows: none;
  }

  .hero-mosaic {
    margin-top: 1.8rem;
  }
}

@media (max-width: 700px) {
  .hero .head-link:first-child {
    display: none;
  }

  .hero-mosaic {
    gap: 0.4rem;
  }

  .hero-mosaic img {
    aspect-ratio: 4 / 5;
  }

  .hero-mosaic img:first-child {
    aspect-ratio: 1;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .photo-grid,
  .gallery-page .photo-grid {
    --cols: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .photo img {
    animation: none;
    transition: none;
  }

  .logo-track {
    animation: none;
  }

  .logo-carousel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-set[aria-hidden="true"] {
    display: none;
  }
}
