/* ---------- Tokens ---------- */
:root {
  --pine: #1f3b2c;
  --pine-deep: #142720;
  --cranberry: #a32638;
  --cream: #f4ecd8;
  --cream-soft: #ece0c4;
  --gold: #c9a24b;
  --ink: #2b2420;
  --paper-shadow: rgba(31, 59, 44, 0.18);
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 0.4em;
  color: var(--pine-deep);
}

a { color: inherit; }

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

/* ---------- Signature element: the garland ---------- */
.garland {
  height: 14px;
  width: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--pine) 0 2px,
      transparent 2px 26px
    );
  background-position: 13px 0;
  position: relative;
}
.garland::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pine-deep);
}

.brand-mark {
  color: var(--cranberry);
  font-size: 1.4rem;
}

.main-nav {
  display: flex;
  gap: 26px;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--cranberry);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--cranberry);
}

/* ---------- Hero ---------- */
.hero, .page-intro {
  max-width: 760px;
  margin: 6vh auto 4vh;
  padding: 0 6vw;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--cranberry);
  font-weight: 600;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.hero-copy, .section-sub {
  font-size: 1.05rem;
  color: #4a4136;
  max-width: 56ch;
  margin: 0 auto 26px;
}

.cta {
  display: inline-block;
  background: var(--cranberry);
  color: var(--cream);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(163, 38, 56, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(163, 38, 56, 0.3);
}

/* ---------- Featured / cards ---------- */
.featured {
  max-width: 1040px;
  margin: 0 auto 8vh;
  padding: 0 6vw;
  text-align: center;
}

.card-row, .year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.year-card {
  background: var(--cream-soft);
  border: 1px solid rgba(31,59,44,0.12);
  border-radius: var(--radius);
  padding: 20px 10px;
  text-decoration: none;
  color: var(--pine-deep);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.3rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 3px 0 var(--paper-shadow);
}

.year-card::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 -14px 0 -3px var(--pine);
}

.year-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  background: #fff8e8;
}

/* ---------- Sign-off ---------- */
.signoff {
  text-align: center;
  padding: 6vh 6vw 10vh;
}
.signoff-script {
  font-family: "Caveat", cursive;
  font-size: 2rem;
  color: var(--cranberry);
  margin: 0;
}
.signoff-name {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--pine-deep);
  margin-top: 4px;
}

/* ---------- Year video embed ---------- */
.year-video-wrap {
  max-width: 800px;
  margin: 0 auto 6vh;
  padding: 0 6vw;
}

.year-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31,59,44,0.22);
  background: var(--pine-deep);
}

.year-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Photo wall (year page) ---------- */
.year-intro h1 {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
}

.photo-wall {
  max-width: 1400px;
  margin: 0 auto 6vh;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
}

.photo-card {
  background: #fff;
  padding: 14px 14px 20px;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(31,59,44,0.18);
  transform: rotate(var(--tilt, -1.2deg));
  position: relative;
}

.photo-card::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 12px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.photo-card img {
  border-radius: 1px;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.photo-card img:hover {
  transform: scale(1.015);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 39, 32, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 3px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox-close:hover {
  color: var(--gold);
}

.empty-state {
  text-align: center;
  color: #6b6152;
  max-width: 56ch;
  margin: 0 auto 6vh;
  padding: 0 6vw;
}
.empty-state code {
  background: var(--cream-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Per-year sizing overrides ---------- */

/* 2023: first photo full-width and much bigger, rest smaller below it */
.photo-wall.year-23 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.photo-wall.year-23 .photo-card:first-child {
  grid-column: 1 / -1;
}
.photo-wall.year-23 .photo-card:first-child img {
  width: 100%;
}

/* 2024: bump every photo up a bit */
.photo-wall.year-24 {
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

/* ---------- Year pager ---------- */
.year-pager {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 2vh 6vw 10vh;
  flex-wrap: wrap;
}
.pager-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--pine-deep);
}
.pager-link:hover { color: var(--cranberry); }
.pager-all {
  color: var(--cranberry);
  border-bottom: 1px solid var(--cranberry);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 24px 6vw 40px;
  font-size: 0.85rem;
  color: #7a715f;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .year-pager { gap: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .year-card { transition: none; }
}
