:root {
  --ink: #2f2a35;
  --ink-2: #57505f;
  --ink-3: #8a8290;
  --paper: #fbf8f4;
  --paper-2: #f3ece3;
  --line: #e4dbd0;
  --coral: #e2786c;
  --coral-soft: #f4c2b8;
  --coral-tint: #fbe7e2;
  --teal: #6eb3ab;
  --teal-soft: #bfe0db;
  --teal-tint: #e6f3f1;
  --mustard: #f2c14e;
  --mustard-soft: #fbe6ad;
  --lavender: #b6a2d4;
  --lavender-soft: #e5dcf1;
  --radius: 18px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain */
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 500 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.01em; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }

/* Outlined, flyer-style display text */
.inked {
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 rgba(47, 42, 53, .12);
}
.c-coral { color: var(--coral); }
.c-teal { color: var(--teal); }
.c-mustard { color: var(--mustard); }
.c-lavender { color: var(--lavender); }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 112px) 0; }
.section-title { max-width: 20ch; margin-bottom: 44px; }
.kicker {
  display: inline-block;
  font: 600 15px/1 var(--display);
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--mustard-soft);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px;
  background: var(--coral); color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 600 17px/1.2 var(--display); text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 8px 18px; font-size: 16px; box-shadow: 2px 2px 0 var(--ink); }
.btn-alt { background: var(--teal); }
.btn-light { background: #fff; color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(251, 248, 244, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1.5px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 20px/1 var(--display); color: var(--ink); }
.brand b { font-weight: 600; color: var(--coral); }
.brand-mark { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--coral); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 140px 0 96px; }
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* keep the network clear of the headline and body copy */
  -webkit-mask-image: radial-gradient(60% 75% at 22% 58%, transparent 55%, #000 100%);
  mask-image: radial-gradient(60% 75% at 22% 58%, transparent 55%, #000 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.pill {
  display: inline-block; padding: 9px 20px; border-radius: 14px;
  background: var(--coral-soft); border: 1.5px solid var(--coral);
  font: 600 16px/1.3 var(--display); color: var(--ink);
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: 1.02; color: var(--ink); }
.hero h1 .inked { -webkit-text-stroke-width: 3px; }
.lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }
.hero-facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.hero-facts svg { width: 34px; height: 34px; flex: none; }

/* Sticker-style photos */
.sticker {
  background: #fff; padding: 10px; border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 5px 0 rgba(47, 42, 53, .12);
}
.sticker img { border-radius: 9px; }
.hero-photo { position: relative; margin: 0; transform: rotate(2deg); }
.hero-photo img { aspect-ratio: 4 / 3.3; object-fit: cover; }
.tape {
  position: absolute; width: 96px; height: 28px; background: rgba(242, 193, 78, .75);
  border-left: 2px dashed rgba(255,255,255,.6); border-right: 2px dashed rgba(255,255,255,.6);
}
.tape-1 { top: -14px; left: 28px; transform: rotate(-8deg); }
.tape-2 { top: -12px; right: 24px; transform: rotate(6deg); background: rgba(110, 179, 171, .7); }
.hero-photo figcaption {
  position: absolute; left: -28px; bottom: -22px; transform: rotate(-4deg);
  padding: 10px 18px; border-radius: 14px;
  background: var(--teal-tint); border: 2px solid var(--ink);
  font: 500 17px/1.2 var(--display); color: var(--ink);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-body { display: grid; gap: 18px; color: var(--ink-2); font-size: 18px; }
.about-sign { font: 600 23px/1.3 var(--display); color: var(--coral); }

/* Callout */
.callout {
  display: flex; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 26px;
  background: var(--coral-tint);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--coral-soft);
}
.callout h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 22ch; }
.callout p { margin-top: 12px; color: var(--ink-2); max-width: 46em; }
.callout-art { flex: none; width: 120px; height: 120px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c, var(--teal)); }
.card-icon { width: 68px; height: 68px; margin-bottom: 16px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* Schedule */
.section-tint { background: var(--teal-tint); border-block: 2px solid var(--ink); }
.schedule { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.day {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--c, var(--coral-soft));
}
.day:nth-child(2) { --c: var(--mustard-soft); }
.day:nth-child(3) { --c: var(--lavender-soft); }
.day-n {
  align-self: flex-start; font: 600 14px/1 var(--display); color: var(--ink);
  background: var(--c, var(--coral-soft)); border-radius: 999px; padding: 6px 12px;
}
.day:first-child .day-n { background: var(--coral-soft); }
.day-date { display: flex; flex-direction: column; color: var(--ink-3); font-weight: 700; font-size: 15px; }
.day-date b { font: 600 42px/1 var(--display); color: var(--ink); margin-bottom: 4px; }
.where {
  display: grid; gap: 22px; align-content: center;
  padding: 28px; border-radius: var(--radius);
  background: var(--paper-2); border: 2px solid var(--ink);
}
.where-row { display: flex; gap: 16px; align-items: center; }
.where-row svg { flex: none; width: 46px; height: 46px; }
.where-row b { display: block; font: 600 20px/1.25 var(--display); }
.where-row span { font-size: 15px; color: var(--ink-2); }
.where-row a { color: var(--coral); font-weight: 700; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.person {
  display: flex; gap: 22px; align-items: center;
  padding: 26px; border-radius: var(--radius); background: #fff; border: 2px solid var(--ink);
}
.avatar {
  flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--ink);
  font: 600 28px/1 var(--display); color: var(--ink);
}
.role { color: var(--ink-3); font-weight: 700; font-size: 15px; margin-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 15px; }
.links a { color: var(--coral); font-weight: 700; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.host { margin-top: 30px; color: var(--ink-2); }

/* Gallery */
.section-warm { background: var(--paper-2); border-block: 2px solid var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.g-item { margin: 0; }
.g-item:nth-child(odd) { transform: rotate(-1.2deg); }
.g-item:nth-child(even) { transform: rotate(1.2deg); }
.g-wide { grid-column: span 2; }
.g-full { grid-column: 1 / -1; }
.g-item button { all: unset; display: block; cursor: zoom-in; width: 100%; border-radius: 9px; overflow: hidden; }
.g-item button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.g-item img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s; }
.g-full img { height: 520px; }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption { padding: 12px 6px 4px; font: 500 16px/1.35 var(--display); color: var(--ink); }

/* Contact */
.contact { text-align: center; }
.contact h2 { max-width: 18ch; margin-inline: auto; }
.contact p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* Footer */
.footer { border-top: 2px solid var(--ink); background: var(--teal-tint); color: var(--ink-2); padding: 28px 0; font-size: 15px; font-weight: 600; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer a { text-decoration: none; }
.footer p a:hover { color: var(--coral); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  background: rgba(47, 42, 53, .88); color: #fff; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 12px; border: 8px solid #fff; }
.lightbox figcaption { text-align: center; font: 500 18px/1.4 var(--display); }
.lightbox button {
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: var(--mustard-soft); }
.lb-close { position: absolute; top: 20px; right: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid, .about-grid, .schedule { grid-template-columns: 1fr; gap: 56px; }
  .hero-photo { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { background: rgba(251, 248, 244, .94); box-shadow: 0 1.5px 0 var(--line); }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--teal-soft);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 11px 12px; font-size: 16px; }
  .nav-links .btn { margin-top: 6px; }
  .hero h1 .inked { -webkit-text-stroke-width: 2px; }
  .hero-photo figcaption { left: 8px; bottom: -20px; font-size: 15px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout-art { width: 88px; height: 88px; }
  .cards, .team, .days, .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-full { grid-column: auto; }
  .g-item img, .g-full img { aspect-ratio: 4 / 3; height: auto; }
  .day { min-height: 0; flex-direction: row; align-items: center; }
  .day-date { align-items: flex-end; }
  .day-date b { font-size: 32px; }
  .person { flex-direction: column; align-items: flex-start; }
  .lightbox { grid-template-columns: 1fr; padding: 16px 16px 96px; }
  .lb-prev, .lb-next { position: absolute; bottom: 28px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  * { transition: none !important; }
}
