/* ============================================================
   CELEBRATIONS ARCHIVE — handmade index
   ------------------------------------------------------------
   Same warm paper, dusty rose + sage as the main corner.
   ============================================================ */

:root {
  --paper:      #f3e9d6;
  --ink:        #3c322a;
  --ink-soft:   #6b5d4f;
  --rose:       #cf8585;
  --rose-deep:  #a85a5a;
  --blush-pale: #f6ddd6;
  --green:      #5d6e4e;
  --green-deep: #3f4e34;
  --sage:       #9aa882;
  --ochre:      #cd9a4f;
  --ochre-deep: #a87a35;
  --n-butter:   #f6e6a3;
  --n-sage:     #cdd9b6;
  --shadow-soft: 0 10px 26px rgba(60,50,42,0.18);
  --shadow-lift: 0 18px 40px rgba(60,50,42,0.26);
  --f-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --f-hand:   "Caveat", "Segoe Script", cursive;
  --f-tall:   "Amatic SC", "Caveat", cursive;
  --f-serif:  "Playfair Display", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-serif);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(207,133,133,0.12), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(93,110,78,0.12), transparent 40%),
    radial-gradient(circle at 60% 88%, rgba(205,154,79,0.10), transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  padding: 24px;
}
body::after { /* paper grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

:focus-visible { outline: 3px dashed var(--green); outline-offset: 3px; }

/* ---------- BACK NAV ---------- */
.archive-nav {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  background: var(--n-sage);
  color: var(--ink);
  font-family: var(--f-hand);
  font-size: 1.15rem;
  text-decoration: none;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}
.archive-nav:hover, .archive-nav:focus-visible { transform: rotate(0) scale(1.04); outline: none; }

/* ---------- PAGE LAYOUT ---------- */
.archive-page { max-width: 920px; margin: 0 auto; padding: 80px 0 60px; }

.archive-header { text-align: center; margin-bottom: 56px; }
.archive-eyebrow {
  font-family: var(--f-hand);
  font-size: 1.5rem;
  color: var(--ink-soft);
  transform: rotate(-2deg);
  display: inline-block;
}
.archive-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  margin: 10px 0 18px;
}
.archive-title-script {
  font-family: var(--f-hand);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--rose-deep);
  transform: rotate(-2deg);
}
.archive-title-main {
  font-family: var(--f-marker);
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--green-deep);
}
.archive-sub {
  font-family: var(--f-hand);
  font-size: 1.4rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 auto;
}

/* ---------- CELEBRATION CARDS — collage, not a grid ---------- */
.celebration-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 30px;
  padding: 1rem 0;
}
.celebration-card {
  flex: 0 1 340px;
  background: #fffdf6;
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: rotate(-2.5deg);
  position: relative;
}
.celebration-card::before { /* tape */
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 86px; height: 26px;
  background: rgba(222,205,165,0.55);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.celebration-card:nth-child(even) { transform: rotate(2.5deg); }
.celebration-card:hover, .celebration-card:focus-within {
  transform: rotate(0) translateY(-4px) scale(1.02);
  box-shadow: 0 24px 50px rgba(60,50,42,0.3);
  z-index: 3;
}
.celebration-current { outline: 3px dashed var(--ochre); outline-offset: 5px; }

.celebration-link {
  display: grid;
  grid-template-rows: 150px auto;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}
.celebration-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(150deg, var(--rose), var(--rose-deep));
}
.celebration-current .celebration-cover {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.3), transparent 60%),
    linear-gradient(150deg, var(--ochre), var(--green));
}
.celebration-cover-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.22));
  transition: transform 0.4s ease;
}
.celebration-link:hover .celebration-cover-emoji { transform: scale(1.14) rotate(-7deg); }

.celebration-meta { padding: 18px 14px 20px; }
.celebration-date {
  font-family: var(--f-hand);
  font-size: 1.25rem;
  color: var(--rose-deep);
  margin-bottom: 4px;
}
.celebration-name {
  font-family: var(--f-marker);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.celebration-desc {
  font-family: var(--f-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.celebration-cta {
  display: inline-block;
  font-family: var(--f-marker);
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--green);
  padding: 0.4rem 1rem;
  border-radius: 12px 10px 14px 9px;
  box-shadow: 2px 3px 0 var(--green-deep);
  transition: transform 0.16s ease;
}
.celebration-link:hover .celebration-cta { transform: translate(-1px,-2px) rotate(-1deg); }

.archive-footnote {
  margin-top: 56px;
  text-align: center;
  font-family: var(--f-hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
  transform: rotate(-1deg);
}

.site-credit {
  text-align: center;
  font-family: var(--f-hand);
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 14px 0 24px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  body { padding: 16px; }
  .archive-page { padding-top: 70px; }
  .celebration-card { flex-basis: 100%; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
