/* Palette pulled from the club logo */
:root {
  --cream: #faf4e8;
  --paper: #fffdf8;
  --sand: #ebdac7;
  --tan: #c5ad93;
  --sage: #7e8a72;
  --forest: #394132;
  --ink: #2e2b1e;
  --muted: #6f6c5c;
  --peach: #e3a081;
  --peach-dark: #b8694a;
  --border: #e6dccb;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }

a { color: var(--peach-dark); }

[hidden] { display: none !important; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: "Young Serif", serif; font-size: 1.1rem; color: var(--forest); text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.nav nav { display: flex; gap: 1.25rem; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--peach-dark); }

/* --- hero --- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}
.eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--sage); margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
.hero-copy > p:not(.eyebrow) { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-logo {
  width: 100%; max-width: 360px; justify-self: center;
  filter: drop-shadow(0 18px 30px rgba(57, 65, 50, .18));
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--forest); color: var(--forest); background: transparent;
  font: 700 1rem "DM Sans", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--forest); color: var(--cream); }
.btn.primary:hover { background: var(--ink); }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--forest); }
.btn.small { padding: .55rem 1.1rem; font-size: .9rem; margin-top: 1.25rem; }

/* --- sections --- */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.more { font-weight: 700; text-decoration: none; }

/* --- upcoming events --- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.event-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(57, 65, 50, .14); }

.event-media { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(160deg, var(--sage), var(--forest)); }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.date-badge {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border-radius: 12px; padding: .35rem .75rem; line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.date-badge .month { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--peach-dark); }
.date-badge .day { font-family: "Young Serif", serif; font-size: 1.4rem; color: var(--forest); }

.event-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { font-size: 1.25rem; }
.event-body p { margin: 0 0 .4rem; }
.when { font-weight: 700; }
.where, .summary { color: var(--muted); font-size: .95rem; }
.summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tags { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.tag { font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: #e4e8dc; color: var(--forest); }
.tag.soldout { background: #f6ddd2; color: var(--peach-dark); }
.cta { margin-left: auto; font-weight: 700; color: var(--peach-dark); }

/* --- gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery-item {
  padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sand);
  aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item { position: relative; }
.gallery-item.is-video::after {
  content: "▶"; position: absolute; top: .5rem; right: .5rem;
  width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: rgba(30, 28, 20, .6); color: var(--cream); font-size: .8rem;
}

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(30, 28, 20, .85); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: var(--cream); text-align: center; margin: .75rem 0 0; }
.lightbox p { max-width: 40rem; margin-inline: auto; white-space: pre-line; }
.lightbox-link a { color: var(--peach); font-weight: 700; }
.lightbox .close {
  position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--forest); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* --- past events --- */
.past-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.past-list a {
  display: flex; align-items: center; gap: 1rem; padding: .75rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  color: inherit; text-decoration: none;
}
.past-list a:hover { border-color: var(--tan); }
.past-list img, .past-placeholder {
  width: 96px; height: 60px; flex-shrink: 0; border-radius: 8px; object-fit: cover;
  background: linear-gradient(160deg, var(--sand), var(--tan));
}
.past-list div { display: flex; flex-direction: column; min-width: 0; }
.past-date { font-size: .8rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .05em; }
.past-name { font-weight: 500; }
.past-venue { font-size: .85rem; color: var(--muted); }

/* --- merch --- */
.merch {
  background: var(--forest); color: var(--cream); border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  background-image: radial-gradient(circle at calc(100% - 110px) 100px, var(--peach) 0 56px, transparent 57px);
}
.merch h2 { color: var(--cream); }
.merch p { color: var(--sand); max-width: 32rem; }

/* --- about --- */
.about p { max-width: 42rem; }
.socials { display: flex; gap: 1.5rem; }
.socials a { font-weight: 700; }

.muted { color: var(--muted); }

.footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.footer img { opacity: .85; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; max-width: 220px; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .nav { flex-direction: column; gap: .3rem; }
  .past-list { grid-template-columns: 1fr; }
  .merch { background-image: radial-gradient(circle at calc(100% - 44px) 44px, var(--peach) 0 26px, transparent 27px); }
}
