@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --ink:     #18100A;
  --paper:   #F3EDE2;
  --wine:    #5C1A28;
  --wine-lt: #7D2438;
  --gold:    #A87828;
  --smoke:   #7A6F66;
  --surface: #EDE6D8;
  --white:   #FDFAF5;
  --border:  rgba(24,16,10,.12);

  --f-display: 'Cormorant Garant', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Reveal animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .32s; }
.reveal.d4 { transition-delay: .46s; }
.reveal.d5 { transition-delay: .6s; }

/* ─── Nav ────────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav-wrap.scrolled {
  background: rgba(253,250,245,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand em { font-style: italic; color: var(--wine); }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
  color: var(--smoke);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--wine); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1rem; font-size: .875rem; }
  .nav-toggle { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: saturate(.7);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,16,10,.75) 30%, rgba(24,16,10,.1) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero__eyebrow {
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: rgba(253,250,245,.7); }
.hero__sub {
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  color: rgba(253,250,245,.7);
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .75rem 1.6rem;
  border-radius: 3px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--wine);
  color: var(--white);
}
.btn-primary:hover { background: var(--wine-lt); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(253,250,245,.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: rgba(253,250,245,.7); background: rgba(253,250,245,.08); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--wine); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ─── Layout ─────────────────────────────────────────── */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 2.5rem;
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .cols-2 { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; }
.display {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.display em { font-style: italic; }
.page-title {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}
.page-title em { font-style: italic; color: var(--wine); }
.page-sub {
  font-size: 1.1rem;
  color: var(--smoke);
  margin-bottom: 3rem;
  font-weight: 300;
}
.section-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.section-h2 em { font-style: italic; color: var(--wine); }
p + p { margin-top: .9em; }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--smoke); }

/* ─── Page header (non-hero pages) ──────────────────── */
.page-head {
  padding: 9rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Photo strip ────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 420px;
  overflow: hidden;
}
.photo-strip a,
.photo-strip-item {
  overflow: hidden;
  cursor: default;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(.85);
}
.photo-strip img:hover { transform: scale(1.04); filter: saturate(1); }
@media (max-width: 768px) {
  .photo-strip { grid-template-columns: 1fr; height: auto; }
  .photo-strip-item { height: 260px; }
}

/* ─── Icon list ──────────────────────────────────────── */
.icon-list { display: flex; flex-direction: column; gap: 1rem; }
.icon-list li { display: flex; gap: .9rem; align-items: flex-start; }
.icon-list .icon { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.icon-list .text { font-size: 1rem; font-weight: 300; }
.list-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.25rem;
}

/* ─── History strip ──────────────────────────────────── */
.history-strip {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 0;
}
.history-strip .wrap { max-width: 720px; }
.history-strip blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: rgba(253,250,245,.85);
}
.history-strip cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Event card (events.html) ───────────────────────── */
.event-date-block {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.event-num {
  font-family: var(--f-display);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--surface);
  pointer-events: none;
  user-select: none;
}
.event-num span { color: var(--wine); }
.event-meta { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.event-meta-row { display: flex; align-items: center; gap: 1rem; }
.event-meta-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--smoke);
  width: 90px;
  flex-shrink: 0;
}
.event-meta-val { font-size: 1rem; font-weight: 400; }

.event-photo {
  position: relative;
  height: clamp(300px, 50vh, 600px);
  overflow: hidden;
  background: var(--ink);
}
.event-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.event-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,26,40,.3), transparent);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 4rem 0;
  border-radius: 4px;
  overflow: hidden;
}
.info-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}
.info-card__num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--wine);
  display: block;
}
.info-card__label {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: .4rem;
}
@media (max-width: 768px) {
  .info-cards { grid-template-columns: 1fr; }
}

/* ─── Archive ────────────────────────────────────────── */
.archive-entry { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.archive-entry:last-child { border-bottom: none; }
.archive-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.archive-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--surface);
  line-height: 1;
  flex-shrink: 0;
}
.archive-info { flex: 1; }
.archive-date {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.archive-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
}
.archive-loc { font-size: .9rem; color: var(--smoke); margin-top: .25rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(.8);
  transition: transform .5s var(--ease), filter .5s var(--ease), box-shadow .5s;
}
.photo-grid img:hover {
  transform: scale(1.03);
  filter: saturate(1);
  box-shadow: 0 12px 40px rgba(24,16,10,.25);
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) { .photo-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .photo-grid { grid-template-columns: 1fr; } }

/* ─── Team ───────────────────────────────────────────── */
.role-section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.role-section:last-child { border-bottom: none; }
.role-header { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 1.5rem; }
.role-num {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--surface);
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
}
.role-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
}
.name-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.name-chip {
  font-size: .875rem;
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.name-chip:hover { border-color: var(--wine); background: var(--surface); }

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.organizer-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow .3s, transform .3s;
}
.organizer-card:hover { box-shadow: 0 8px 24px rgba(24,16,10,.1); transform: translateY(-2px); }
.organizer-name { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; margin-bottom: .4rem; }
.organizer-role { font-size: .875rem; color: var(--smoke); font-weight: 300; }

.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.team-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; filter: saturate(.85); }
@media (max-width: 600px) { .team-photos { grid-template-columns: 1fr; } }
.team-note {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--smoke);
  font-style: italic;
  text-align: center;
}

/* ─── Finance ────────────────────────────────────────── */
.finance-intro {
  background: var(--surface);
  border-left: 3px solid var(--wine);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 3rem;
  border-radius: 0 3px 3px 0;
  font-size: 1rem;
  font-weight: 300;
}
.expense-group { margin-bottom: 3rem; }
.expense-group-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.expense-table { width: 100%; border-collapse: collapse; }
.expense-table tr { border-bottom: 1px solid var(--border); }
.expense-table tr:last-child { border-bottom: none; }
.expense-table td { padding: 1rem .5rem; font-size: .9375rem; vertical-align: top; }
.expense-table td:nth-child(2) {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--wine);
  white-space: nowrap;
  width: 120px;
  text-align: right;
}
.expense-table td:nth-child(3) { color: var(--smoke); font-size: .85rem; padding-left: 1.5rem; }
.total-row { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.total-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); }
.total-amount { font-family: var(--f-display); font-size: 2rem; font-weight: 500; color: var(--wine); }

/* ─── Rules ──────────────────────────────────────────── */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 3rem 0; }
@media (max-width: 768px) { .rules-grid { grid-template-columns: 1fr; gap: 2rem; } }
.rules-col-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.rules-list { display: flex; flex-direction: column; gap: .75rem; }
.rules-list li {
  display: flex;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.5;
  align-items: flex-start;
}
.rules-list li .r-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.5; }
.rules-quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-style: italic;
  font-weight: 300;
  color: var(--wine);
  text-align: center;
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.35;
}

/* ─── Playlist ───────────────────────────────────────── */
.playlist-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin: 2rem 0 3.5rem;
}
@media (max-width: 600px) { .playlist-tips { grid-template-columns: 1fr; } }
.playlist-tip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  font-size: .875rem;
  font-weight: 300;
  line-height: 1.55;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.playlist-tip .tip-icon { font-size: 1.1rem; flex-shrink: 0; }

.song-list { display: flex; flex-direction: column; }
.song-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  border-radius: 3px;
}
.song-row:first-child { border-top: 1px solid var(--border); }
.song-row:hover { background: var(--surface); padding-left: .5rem; padding-right: .5rem; margin: 0 -.5rem; }
.song-num {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--smoke);
  text-align: right;
}
.song-title { font-size: .9375rem; font-weight: 400; }
.playlist-cta { margin-top: 3rem; text-align: center; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(253,250,245,.65);
  padding: 4rem 0 2.5rem;
  margin-top: 6rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-tag { font-size: .875rem; font-weight: 300; max-width: 340px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.footer-links a {
  font-size: .8125rem;
  font-weight: 400;
  color: rgba(253,250,245,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-line {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(253,250,245,.1);
  font-size: .75rem;
  color: rgba(253,250,245,.3);
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { align-items: flex-start; }
}
