/* assets/css/style.css */

:root {
  --green: #0c3b28;
  --green-deep: #071910;
  --green-mid: #145c3d;
  --gold: #d4b04c;
  --gold-bright: #f0d78c;
  --gold-dim: #9a7b2f;
  --cream: #f6efe0;
  --ink: #f4efe4;
  --muted: rgba(246, 239, 224, 0.72);
  --line: rgba(212, 176, 76, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Figtree", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      1200px 700px at 80% -10%,
      rgba(212, 176, 76, 0.14),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 0% 20%,
      rgba(20, 92, 61, 0.55),
      transparent 50%
    ),
    linear-gradient(165deg, #0a2418 0%, var(--green-deep) 42%, #06140d 100%);
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.logo-ring {
}

.logo-ring img {
  width: 300px;
  height: 100%;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name strong {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.brand-name em {
  font-family: "Great Vibes", cursive;
  font-style: normal;
  color: var(--gold);
  font-size: 1.45rem;
  margin-top: 0.08rem;
}

.header-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 2.4rem 6vw 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background-image: linear-gradient(
    90deg,
    var(--green-deep) 50%,
    var(--gold) 50%
  );
  background-size: 18px 18px;
  opacity: 0.55;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}

h1 {
  margin: 0 0 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.script {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  margin: 0.15rem 0 1.2rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.lede {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1.8rem;
}

.upload-btn {
  --btn-bg: linear-gradient(180deg, #f3d98a 0%, var(--gold) 48%, #b8902c 100%);
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.35rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #1a1406;
  font-family: "Oswald", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 16px 40px rgba(212, 176, 76, 0.28);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.upload-btn:hover,
.upload-btn:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 22px 50px rgba(212, 176, 76, 0.4);
}

.upload-btn.is-drag {
  outline: 3px dashed var(--gold-bright);
  outline-offset: 8px;
}

.upload-btn svg {
  width: 1.45rem;
  height: 1.45rem;
}

.hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-mark {
  justify-self: center;
  position: relative;
  width: min(100%, 440px);
}

.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    #f3d98a 0%,
    var(--gold) 48%,
    #b8902c 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 22px 50px rgba(0, 0, 0, 0.38);
  cursor: zoom-in;
}

.hero-photo img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  object-position: center top;
  border-radius: 13px;
  background: #fff;
  transition: transform 0.22s ease;
}

.hero-photo:hover img,
.hero-photo:focus-visible img {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 2px var(--gold),
    0 28px 58px rgba(0, 0, 0, 0.42);
}

.hero-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(7, 25, 16, 0.82);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.orb {
  position: absolute;
  inset: 6% 2% 10%;
  border-radius: 24px;
  background: radial-gradient(
    circle,
    rgba(212, 176, 76, 0.22),
    transparent 68%
  );
  filter: blur(18px);
  z-index: -1;
}

.events {
  padding: 3.2rem 6vw 1rem;
}

.section-title {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.event-card {
  background: rgba(10, 36, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.event-card h2 {
  margin: 0.15rem 0 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.92rem;
}

.gallery-wrap {
  padding: 2.4rem 6vw 6.5rem;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.gallery-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.view-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.view-toggle button.is-active {
  background: rgba(212, 176, 76, 0.18);
  color: var(--gold-bright);
}

.gallery-head h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-note {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffb0;
  box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.8);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(125, 255, 176, 0);
  }
}

.gallery {
  display: grid;
  gap: 0.75rem;
}

.gallery.view-sm {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery.view-md {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery.view-lg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery.view-masonry {
  display: block;
  columns: 4;
  column-gap: 0.75rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0b2418;
  border: 1px solid rgba(212, 176, 76, 0.16);
  aspect-ratio: 1;
  cursor: zoom-in;
  animation: pop-in 0.45s ease;
}

.gallery.view-masonry figure {
  display: inline-block;
  width: 100%;
  aspect-ratio: auto;
  margin: 0 0 0.75rem;
  break-inside: avoid;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery.view-masonry img {
  height: auto;
  object-fit: contain;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figure.is-new {
  box-shadow: 0 0 0 2px var(--gold);
}

.photo-delete {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 25, 16, 0.82);
  color: var(--cream);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.photo-delete:hover {
  background: #8b1e1e;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

.gallery.view-masonry .empty {
  display: block;
  width: 100%;
  column-span: all;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(16px);
  background: #10281c;
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.progress {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 13, 0.72);
  display: none;
  place-items: center;
  z-index: 40;
}

.progress.show {
  display: grid;
}

.progress-card {
  width: min(92vw, 360px);
  background: #10281c;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  text-align: center;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #1c3d2d;
  overflow: hidden;
  margin-top: 0.9rem;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 0.2s ease;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 8, 0.96);
  display: none;
  place-items: center;
  padding: 3rem 1rem 1.25rem;
  overflow: auto;
  z-index: 50;
}

.lightbox.show {
  display: grid;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 3.5rem);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
}

.sticky-upload {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1.5rem;
  }

  .hero-mark {
    width: min(92vw, 360px);
  }

  .kicker {
    justify-content: center;
  }

  .lede,
  .hint {
    margin-left: auto;
    margin-right: auto;
  }

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

  .gallery.view-sm {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery.view-md {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery.view-lg {
    grid-template-columns: 1fr;
  }

  .gallery.view-masonry {
    columns: 2;
  }

  .header-links {
    display: none;
  }

  .sticky-upload {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(6, 20, 13, 0.94) 30%);
    z-index: 20;
  }

  .sticky-upload .upload-btn {
    width: 100%;
    min-height: 3.6rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  .gallery {
    gap: 0.5rem;
  }

  .gallery.view-sm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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