:root {
  /* Brea-Olinda High School — official colors from bohs.bousd.us */
  --bohs-green: #023d2f;
  --bohs-green-bright: #156f3b;
  --bohs-gold: #f3b91a;
  --bohs-gold-bright: #fcd40b;

  /* Dark theme derived from BOHS forest green */
  --bg: #021a14;
  --bg-elevated: #032820;
  --bg-soft: #043528;
  --text: #f0f4f2;
  --text-muted: #9bb5ad;
  --accent: var(--bohs-gold);
  --accent-hover: var(--bohs-gold-bright);
  --accent-text: var(--bohs-green);
  --accent-dim: var(--bohs-green-bright);
  --accent-glow: rgba(243, 185, 26, 0.22);
  --warm: var(--bohs-gold);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --carousel-height: min(52vh, 420px);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
}

.container {
  width: min(720px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Hero + Carousel */
.hero {
  position: relative;
  min-height: var(--carousel-height);
}

.carousel {
  position: relative;
  height: var(--carousel-height);
  background: var(--bg-soft);
  overflow: hidden;
}

.carousel__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(2, 26, 20, 0.7);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.carousel__btn:hover {
  background: rgba(2, 26, 20, 0.9);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel__btn--prev {
  left: 0.75rem;
}

.carousel__btn--next {
  right: 0.75rem;
}

.carousel__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel__dot--active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.25rem 1.75rem;
  background: linear-gradient(to top, rgba(2, 26, 20, 0.94) 0%, transparent 100%);
  text-align: center;
  pointer-events: none;
}

.hero__overlay .btn {
  pointer-events: auto;
}

.hero__eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--bohs-gold);
  color: var(--bohs-green);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--bohs-gold-bright);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-soft);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--large {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--message {
  padding-top: 1.5rem;
}

.section--notice {
  padding-top: 1rem;
  padding-bottom: 0;
}

.section--photos {
  padding: 1rem 0 0;
}

.photo-contribute {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.photo-contribute a {
  color: var(--bohs-gold);
  font-weight: 500;
}

.photo-contribute a:hover {
  color: var(--bohs-gold-bright);
}

.notice-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(243, 185, 26, 0.35);
  background: rgba(243, 185, 26, 0.08);
  text-align: center;
}

.notice-banner p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.notice-banner strong {
  color: var(--bohs-gold);
}

.section--note {
  padding-top: 0;
}

.section__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.callout {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.callout--accent {
  border-color: rgba(243, 185, 26, 0.3);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(243, 185, 26, 0.06) 100%);
}

.callout__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.callout p {
  margin: 0;
  color: var(--text);
}

.spread-list {
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.spread-list li {
  margin-bottom: 0.85rem;
}

.spread-list strong {
  color: var(--text);
}

.spread-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.copy-feedback {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.25rem;
}

.details-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.details-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.details-item dt {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}

.details-item dd {
  margin: 0;
  font-weight: 500;
}

.details-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section--rsvp {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--border);
}

.rsvp-block {
  text-align: center;
}

.rsvp-block .lead {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer__mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(155, 181, 173, 0.7);
}

.footer__workday {
  color: var(--bohs-gold);
  opacity: 0.85;
}

@media (min-width: 640px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__overlay {
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
