/* ===== THE THIRTY-LOVE CLASSIC — Design Tokens ===== */

:root {
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors — Thirty-Love Classic palette */
  --color-bg:         #F5F0E8;
  --color-surface:    #FBF8F2;
  --color-surface-2:  #EDE8DE;
  --color-clay:       #C2703E;
  --color-clay-dark:  #9B5730;
  --color-green:      #4A6741;
  --color-green-dark: #3A5234;
  --color-gold:       #D4A94B;
  --color-gold-light: #E8C96A;
  --color-cream:      #F5F0E8;
  --color-charcoal:   #2C2C2C;
  --color-text:       #2C2C2C;
  --color-text-muted: #6B6455;
  --color-text-faint: #A09882;
  --color-divider:    #D9D2C4;
  --color-white:      #FEFDFB;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44,44,44,0.06);
  --shadow-md: 0 4px 12px rgba(44,44,44,0.08);
  --shadow-lg: 0 12px 32px rgba(44,44,44,0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ===== Typography ===== */

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* ===== Navigation ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-charcoal);
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-clay);
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.nav__links a:hover {
  color: var(--color-clay);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-clay);
  transition: width 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 44, 44, 0.15) 0%,
    rgba(44, 44, 44, 0.4) 50%,
    rgba(44, 44, 44, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 169, 75, 0.4);
  padding: var(--space-1) var(--space-4);
  border-radius: 2rem;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(254, 253, 251, 0.85);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
}

.hero__date {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__crest {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* ===== Countdown ===== */

.countdown {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding-block: var(--space-8);
}

.countdown__inner {
  display: flex;
  justify-content: center;
  gap: clamp(var(--space-6), 4vw, var(--space-16));
  text-align: center;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 232, 0.6);
  margin-top: var(--space-1);
}

/* ===== Section Headers ===== */

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-clay);
  margin-bottom: var(--space-2);
  max-width: none;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

.section-header__divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== About / The Event ===== */

.about {
  background: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.highlight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.highlight-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.highlight-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-charcoal);
}

.highlight-card__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.about__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== Schedule ===== */

.schedule {
  background: var(--color-bg);
}

.schedule__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.schedule__tab {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-xl);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule__tab:hover {
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.schedule__tab--active {
  background: var(--color-clay);
  border-color: var(--color-clay);
  color: var(--color-white);
}

.schedule__tab--active:hover {
  color: var(--color-white);
}

.schedule__day {
  display: none;
  max-width: var(--content-default);
  margin: 0 auto;
}

.schedule__day--active {
  display: block;
}

.schedule__event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}

.schedule__event:last-child {
  border-bottom: none;
}

.schedule__time {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-clay);
  min-width: 90px;
  font-variant-numeric: tabular-nums;
}

.schedule__event-title {
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.schedule__event-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== Player Profiles ===== */

.players {
  background: var(--color-surface);
}

.players__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: var(--content-default);
  margin: 0 auto;
}

.player-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-clay), var(--color-gold));
}

.player-card__number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  color: rgba(194, 112, 62, 0.08);
  line-height: 1;
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
}

.player-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--color-gold);
}

.player-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.player-card__role {
  font-size: var(--text-sm);
  color: var(--color-clay);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.player-card__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.player-card__stat {
  text-align: center;
}

.player-card__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
}

.player-card__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Location ===== */

.location {
  background: var(--color-bg);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.location__info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

.location__info p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.location__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.location__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.location__detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.location__detail-text strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.location__detail-text span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.location__map {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Packing List ===== */

.packing {
  background: var(--color-surface);
}

.packing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.packing__category {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.packing__category-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.packing__category-title span {
  font-size: 1.25rem;
}

.packing__list {
  list-style: none;
}

.packing__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(217, 210, 196, 0.5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.packing__list li:last-child {
  border-bottom: none;
}

.packing__list li::before {
  content: '○';
  color: var(--color-clay);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== Merch Preview ===== */

.merch {
  background: var(--color-bg);
}

.merch__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: var(--content-default);
  margin: 0 auto;
}

.merch__grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--content-wide);
}

.merch__item {
  text-align: center;
}

.merch__image {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-4);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merch__image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.merch__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
}

.merch__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ===== FAQ ===== */

.faq {
  background: var(--color-surface);
}

.faq__list {
  max-width: var(--content-default);
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
}

.faq__question {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-charcoal);
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
}

.faq__question::after {
  content: '+';
  font-size: var(--text-lg);
  color: var(--color-clay);
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item--open .faq__question::after {
  content: '−';
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Footer ===== */

.footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding-block: var(--space-12);
  text-align: center;
}

.footer__crest {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-4);
  opacity: 0.7;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.footer__date {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: var(--space-6);
}

.footer__credit {
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.35);
}

.footer__credit a {
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
}

.footer__credit a:hover {
  color: rgba(245, 240, 232, 0.8);
}

/* ===== Scroll Animations ===== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ===== Mobile Responsive ===== */

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-divider);
    gap: var(--space-3);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .about__grid,
  .location__grid,
  .merch__grid,
  .merch__grid--three {
    grid-template-columns: 1fr;
  }

  .packing__grid {
    grid-template-columns: 1fr;
  }

  .countdown__inner {
    gap: var(--space-4);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .about__highlights {
    grid-template-columns: 1fr 1fr;
  }

  .schedule__tabs {
    gap: var(--space-1);
  }

  .schedule__tab {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }
}

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

/* ===== Venue Photo Gallery ===== */

.venue-gallery {
  margin-bottom: var(--space-12);
}

.venue-gallery__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.venue-gallery__main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.venue-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.venue-gallery__grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .venue-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .venue-gallery__main img {
    height: 250px;
  }
  
  .venue-gallery__grid img {
    height: 140px;
  }
}

/* ===== Decorative Elements ===== */

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-block: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: var(--color-divider);
}
