/* ─────────────────────────────────────────────────────────────
   WNHS Class of 2006 — 20 Year Reunion
   Editorial/yearbook styling, carried over from the Class of '76 site
   ───────────────────────────────────────────────────────────── */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Design tokens ─── */
:root {
  /* School colors, refined */
  --green: #295236;
  --green-deep: #1e3d28;
  --gold: #b89a3c; /* aged brass */
  --gold-soft: #d7c580;
  --gold-bright: #e8b71e; /* flyer gold, for the crest */
  --white: #ffffff;
  --paper: #faf6ed; /* warm cream */
  --paper-2: #f3ecd9;
  --rule: #e5ddc9;
  --rule-soft: #efe8d5;
  --text-dark: #2a2620;
  --text-soft: #5c554b;
  --text-mute: #8a8278;

  /* Typography */
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ─── Navigation ─── */
.navbar {
  background-color: var(--green);
  padding: 0.9rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--gold-soft);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ─── Container ─── */
.container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.content-box {
  background-color: var(--white);
  border-radius: 8px;
  padding: 3.5rem 3rem 3rem;
  box-shadow: 0 4px 18px rgba(40, 30, 15, 0.06);
  border-top: 4px solid var(--green);
}

/* ─── Hero / seal ─── */
.hero-logo {
  text-align: center;
  margin-bottom: 0.75rem;
}

.hero-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 230px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(41, 82, 54, 0.05) 10px 11px
  );
}

.hero-plate .ring {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  pointer-events: none;
}

.hero-plate .seal {
  width: 212px;
  height: 212px;
  position: relative;
  z-index: 1;
}

/* ─── Typography ─── */
.kicker {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.5rem;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Welcome text */
.welcome-text {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 1.25rem auto 0;
  max-width: 46ch;
}

.welcome-date {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.9rem;
  text-align: center;
}

.welcome-date em {
  color: var(--gold);
  font-style: italic;
}

.nowrap {
  white-space: nowrap;
}

/* ─── Countdown ─── */
.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.countdown .n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green);
  padding: 0 0.2em;
}

.countdown .sep {
  color: var(--rule);
  padding: 0 0.1em;
}

.countdown .cd-unit {
  white-space: nowrap;
}

/* ─── CTA section ─── */
.cta-section {
  text-align: center;
  margin: 2.25rem 0 2rem;
}

.cta-note {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin-top: 0.9rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--green);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  border: 2px solid var(--green);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-register-now {
  font-size: 1.1rem;
  padding: 1.05rem 2.75rem;
}

/* ─── Ornamental divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem auto 1.5rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.divider span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ─── The night / details block ─── */
.save-the-date {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 22px rgba(30, 61, 40, 0.18);
  border: 1px solid rgba(216, 197, 128, 0.35);
  position: relative;
}

.save-the-date::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 197, 128, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.save-the-date-header {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  position: relative;
}

.save-the-date-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Detail grid */
.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.event-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.15rem;
  border-radius: 4px;
  border: 1px solid rgba(216, 197, 128, 0.22);
  transition: all 0.3s ease;
}

.event-item:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.event-date {
  font-size: 0.72rem;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.event-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.event-location {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.event-location a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 197, 128, 0.35);
  font-weight: 500;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.event-location a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.event-cost {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--gold-soft);
  font-weight: 600;
  font-style: italic;
  margin-top: 0.4rem;
}

.event-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Section headers ─── */
.section-header {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
}

.section-intro {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ─── Ticket steps ─── */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.step {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.step-text a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.step-text a:hover {
  border-bottom-color: var(--green);
}

.venmo-handle {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  margin-top: 0.35rem;
}

/* ─── Callout ─── */
.callout {
  background-color: var(--paper);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  margin-top: 1.5rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.callout strong {
  color: var(--green);
}

.callout-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.2rem;
}

/* ─── Sign-off ─── */
.signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  margin-top: 2.75rem;
}

/* ─── Footer ─── */
.footer {
  background-color: var(--green);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
}

.footer p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    flex-wrap: wrap;
    padding: 0 1.25rem;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-item {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item:first-child {
    margin-top: 1rem;
  }

  .container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .content-box {
    padding: 2.25rem 1.5rem;
  }

  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.4rem;
  }

  .hero-plate {
    width: 190px;
    height: 190px;
  }
  .hero-plate .seal {
    width: 172px;
    height: 172px;
  }

  .save-the-date {
    padding: 2rem 1.25rem;
  }
  .save-the-date-header {
    font-size: 1.4rem;
  }

  .event-details {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .step {
    padding: 1.1rem 1.15rem;
    gap: 0.9rem;
  }

  .signoff {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .content-box {
    padding: 1.75rem 1.15rem;
  }
  h1 {
    font-size: 1.65rem;
  }
  .btn-primary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
  .hero-plate {
    width: 168px;
    height: 168px;
  }
  .hero-plate .seal {
    width: 152px;
    height: 152px;
  }
  .nav-logo {
    font-size: 1.15rem;
  }
  .nav-logo-img {
    height: 36px;
    width: 36px;
  }
  .step {
    padding: 1rem;
    gap: 0.75rem;
  }
}
