:root {
  --ink: #1d1430;
  --ink-soft: #4a4060;
  --paper: #fffaf2;
  --sun: #ffd23f;
  --tomato: #ff5a36;
  --bubblegum: #ff8ad8;
  --blush: #ffd3ef;
  --sky: #5cc8ff;
  --mint: #3ddc97;
  --font: "Bricolage Grotesque", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* A bouncy spring; browsers without linear() fall back to the cubic-bezier. */
  --spring-fallback: cubic-bezier(0.3, 1.6, 0.5, 1);
  --spring: linear(0, 0.1 4.8%, 0.46 12.5%, 0.86 20.5%, 1.08 27.6%, 1.16 33%, 1.13 39.4%, 1.03 47.5%, 0.98 55.5%, 0.98 63%, 1.005 77%, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sun);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { background: var(--paper); }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h2 { font: 400 clamp(34px, 8.5vw, 64px)/1.05 Caprasimo, Georgia, serif; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.wrap, section, .top, .foot { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Buttons: chunky, and they squash when pressed ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 500ms var(--spring-fallback), box-shadow 500ms var(--spring-fallback);
  transition-timing-function: var(--spring);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px) scale(1.05, 0.9); box-shadow: 0 1px 0 var(--ink); transition-duration: 70ms; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 var(--tomato); border-color: var(--ink); }
.btn-ink:hover { box-shadow: 0 8px 0 var(--tomato); }
.btn-ink:active { box-shadow: 0 1px 0 var(--tomato); }
.btn-sun { background: var(--sun); }
.btn-paper { background: var(--paper); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; box-shadow: 0 4px 0 var(--ink); }
.btn-small:hover { box-shadow: 0 6px 0 var(--ink); }
.btn-big { min-height: 64px; padding: 0 32px; font-size: 21px; }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; margin: 0 auto;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 8px;
}
.wordmark { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; }
.wordmark .pill { display: inline-block; background: var(--tomato); color: var(--paper); border: 3px solid var(--ink);
  border-radius: 999px; padding: 1px 10px 3px; transform: rotate(-5deg); transition: transform 500ms var(--spring-fallback);
  transition-timing-function: var(--spring); }
.wordmark:hover .pill { transform: rotate(4deg) scale(1.08); }
.wordmark.small { font-size: 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--sun); padding-top: 40px; padding-bottom: 80px; }
.hero-copy { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.top { position: relative; z-index: 2; }
.chip { display: inline-block; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 14px;
  font-weight: 600; font-size: 14px; }
h1 { margin: 24px 0 24px; max-width: 11em; font: 400 clamp(42px, 10.5vw, 104px)/1 Caprasimo, Georgia, serif;
  letter-spacing: -0.01em; }
.lede { max-width: 34em; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.45;
  text-shadow: 0 0 14px var(--sun), 0 0 5px var(--sun); /* keeps it readable over passing confetti */ }
.actions { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 30px; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) { .hero { padding-top: 64px; padding-bottom: 112px; } }

/* Covers the header and hero; main.js sizes it to the hero's bottom edge. */
.hero-confetti { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 1; pointer-events: none; }

/* ---------- Past work ---------- */
.work { background: var(--ink); color: var(--paper); padding-top: 72px; padding-bottom: 88px;
  display: grid; gap: 40px; }
.work > * { width: 100%; max-width: 1200px; margin: 0 auto; }
.work-copy { display: flex; flex-direction: column; gap: 14px; }
.work-copy h2 { color: var(--sun); margin-bottom: 6px; }
.work-copy p { font-size: 19px; max-width: 30em; color: #e9e3f5; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 4vw, 40px); max-width: 640px; }
.shot { --r: -4deg; transform: rotate(var(--r)); transition: transform 600ms var(--spring-fallback); transition-timing-function: var(--spring); }
.shot + .shot { --r: 3deg; margin-top: 36px; }
.shot:hover { transform: rotate(0deg) scale(1.03); }
.frame { border: clamp(4px, 1.2vw, 7px) solid var(--paper); border-radius: clamp(20px, 6vw, 36px); overflow: hidden;
  aspect-ratio: 9 / 19; background: #000; box-shadow: 10px 10px 0 var(--tomato); }
.shot + .shot .frame { box-shadow: 10px 10px 0 var(--sky); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.shot figcaption { margin-top: 18px; font-weight: 700; font-size: 15px; text-align: center; color: var(--sun); }
@media (min-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; max-width: none;
    padding-left: max(40px, calc((100vw - 1200px) / 2)); padding-right: max(40px, calc((100vw - 1200px) / 2)); }
  .work > * { margin: 0; }
}

/* ---------- How it goes ---------- */
.how { padding-top: 80px; padding-bottom: 88px; max-width: 1240px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.step { --c: var(--tomato); --r: -2deg;
  background: var(--c); border: 3px solid var(--ink); border-radius: 30px; padding: 26px 24px 28px;
  box-shadow: 7px 7px 0 var(--ink); transform: rotate(var(--r));
  transition: transform 600ms var(--spring-fallback); transition-timing-function: var(--spring); }
.step:nth-child(2) { --c: var(--sky); --r: 1.5deg; }
.step:nth-child(3) { --c: var(--mint); --r: -1deg; }
.step:hover { transform: rotate(0deg) translateY(-4px); }
.step .n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--ink); font-weight: 800; font-size: 24px; margin-bottom: 18px; }
.step h3 { font-size: 27px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font-size: 17px; }

/* ---------- Host view ---------- */
.host { background: var(--blush); padding-top: 80px; padding-bottom: 88px; display: grid; gap: 44px; justify-items: center; }
.host > * { width: 100%; max-width: 1200px; }
.notes { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 18px; max-width: 32em; }
.notes li { position: relative; padding-left: 38px; font-size: 18px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; background: var(--tomato);
  border: 2.5px solid var(--ink); border-radius: 50%; }
.notes li:nth-child(2)::before { background: var(--sky); border-radius: 7px; transform: rotate(12deg); }
.notes li:nth-child(3)::before { background: var(--sun); }
.notes li:nth-child(4)::before { background: var(--mint); border-radius: 7px; transform: rotate(-10deg); }
.shot-admin { max-width: 340px; justify-self: center; transform: rotate(2deg); }
.frame-admin { border: 6px solid var(--ink); border-radius: 40px; overflow: hidden; background: #fff;
  box-shadow: 10px 10px 0 var(--ink); aspect-ratio: 780 / 1688; }
.frame-admin img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-admin figcaption { margin-top: 20px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 900px) {
  .host { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; justify-items: stretch;
    padding-left: max(40px, calc((100vw - 1200px) / 2)); padding-right: max(40px, calc((100vw - 1200px) / 2)); }
  .host > * { max-width: none; }
}

/* ---------- Closing ---------- */
.closing { background: var(--tomato); color: var(--ink); padding-top: 88px; padding-bottom: 96px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.closing h2 { max-width: 12em; }
.closing > p { font-size: 19px; max-width: 28em; }
.rsvp { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; }
@media (max-width: 480px) { .rsvp .btn { flex: 1 1 100%; } }
.btn.shy { animation: shy 600ms ease; }
@keyframes shy { 20% { transform: translateX(-10px) rotate(-4deg); } 45% { transform: translateX(9px) rotate(3deg); } 70% { transform: translateX(-4px); } }
.mail { margin-top: 6px; font-weight: 600; }
.mail a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

.foot { background: var(--ink); color: #e9e3f5; display: flex;
  padding-left: max(20px, calc((100vw - 1200px) / 2)) !important; padding-right: max(20px, calc((100vw - 1200px) / 2)) !important; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px 24px; padding-top: 26px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot .wordmark { color: var(--paper); }
.foot a { color: var(--sun); text-underline-offset: 3px; }

/* Privacy page */
.legal { padding: 24px 0 72px; }
.prose { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.prose h1 { font: 400 clamp(44px, 11vw, 80px)/1 Caprasimo, Georgia, serif; color: var(--ink); }
.prose h2 { font-size: clamp(26px, 6vw, 36px); color: var(--ink); margin-top: 22px; }
.prose .updated { font-size: 15px; font-weight: 600; }
.prose .lead { font-size: 21px; color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--tomato); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* Confetti pieces (created by main.js) */
.confetti { position: fixed; left: 0; top: 0; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 3px;
  pointer-events: none; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
.nowrap { white-space: nowrap; }
