/* Christmas Hang Out — crayon doodle invite.
   Artwork is cut straight from the Canva invite; everything else is
   hand-drawn-feeling: wobbly crayon outlines, paper grain, loose tilts. */
@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&family=Patrick+Hand&display=swap');

:root {
  --ink: #2a1d14;
  --red: #d8272b;
  --green: #17803d;
  --deep: #0f5a2b;
  --gold: #f6c431;
  --paper: #fffffd;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
html { background: #f2eee5; }
@media (max-width: 480px) { html { background: var(--paper); } }
body {
  color: var(--ink);
  font-family: "Patrick Hand", "Gochi Hand", cursive;
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- paper sheet ---------- */
.sheet {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 34px 34px;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .2  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.1'/></svg>");
}
@media (min-width: 481px) { .sheet { box-shadow: 0 0 40px rgba(60,40,10,.14); } }

/* crayon frame: green outline with a thin red dashed line inside it */
.sheet::before, .sheet::after { content: ""; position: absolute; pointer-events: none; z-index: 6; filter: url(#rough); }
.sheet::before { inset: 9px; border: 4px solid var(--green); border-radius: 26px 10px 28px 12px / 12px 28px 10px 26px; }
.sheet::after  { inset: 19px; border: 2px dashed var(--red); border-radius: 20px 8px 22px 9px / 9px 22px 8px 20px; opacity: .75; }
.sprinkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sprinkles img { position: absolute; height: auto; filter: drop-shadow(1px 2px 0 rgba(42,29,20,.12)); }
.content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }

/* ---------- stickers (all in normal flow, so nothing can overlap text) ---------- */
.lights { display: block; width: 72%; height: auto; margin: 26px auto 0; }
.hero { width: 100%; margin: 8px 0 0; transform: rotate(-.6deg); }
.row { display: flex; align-items: flex-end; justify-content: center; gap: 4%; width: 100%; margin-top: 4px; }
.row img { flex: 0 1 auto; min-width: 0; height: auto; filter: drop-shadow(2px 3px 0 rgba(42,29,20,.12)); }
.row .w-tree { width: 27%; transform: rotate(-3deg); }
.row .w-gift { width: 24%; transform: rotate(3deg); }
.row .w-ginger { width: 21%; transform: rotate(-4deg); }
.row .w-orn { width: 19%; transform: rotate(3deg); }
.row .w-cane { width: 17%; transform: rotate(5deg); }
.row .w-holly { width: 29%; margin-bottom: 6px; }
.row .w-snow { width: 20%; }
.row .w-canes { width: 22%; transform: rotate(4deg); }
.mini { display: flex; justify-content: center; align-items: center; gap: 4%; width: 100%; margin-top: 2px; }
.mini img { height: 34px; width: auto; }
.row .w-cocoa { width: 22%; transform: rotate(-3deg); }

/* ---------- text ---------- */
.join { margin: -10px 0 -14px; font-size: 24px; line-height: 1.12; text-wrap: balance; transform: rotate(-2deg); }
.closing { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; }
.closing .heart { display: inline-block; width: 30px; vertical-align: -6px; margin-left: 4px; }
.directions { display: block; margin-top: 2px; font-family: "Gochi Hand", cursive; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

/* trio: popcorn / board / cocoa, labels are part of the art */
.trio { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: end; gap: 2px; width: 100%; }
.trio img:nth-child(1) { transform: rotate(-3deg); }
.trio img:nth-child(2) { transform: rotate(2deg); }
.trio img:nth-child(3) { transform: rotate(-2deg); }

/* date + time: live text on a candy-cane-striped tag (no outlined red lettering) */
.when { position: relative; width: 86%; margin: 0 auto 10px; padding: 14px 0 6px; transform: rotate(-1deg); }
.when-card {
  position: relative; padding: 18px 24px 18px; text-align: center;
  background: #fffdf4;
  border-radius: 26px 10px 28px 12px / 12px 28px 10px 26px;
  box-shadow: 0 0 0 7px #fffdf4, 0 0 0 14px transparent;
}
.when-card::before { border-color: var(--green); border-width: 4px; }
.when-card::after {
  content: ""; position: absolute; inset: -11px; z-index: -1; pointer-events: none;
  border-radius: 32px 14px 34px 16px / 16px 34px 14px 32px;
  background: repeating-linear-gradient(135deg, var(--red) 0 10px, #fff 10px 20px);
  filter: url(#rough);
}
.when-day { margin: 0; font-family: "Gochi Hand", cursive; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.05; color: var(--deep); letter-spacing: .01em; }
.when-time { margin: 8px 0 0; }
.btn.big { display: block; width: fit-content; margin: 0 auto; padding: 13px 44px; font-size: 28px; }
.whos { margin: -8px 0 0; font-family: "Gochi Hand", cursive; font-size: 22px; line-height: 1.15; color: var(--deep); transform: rotate(-1deg); }
.ask .whos { margin: 4px 0 0; }
.whos.under { margin: 16px 0 0; text-align: center; }
.whos .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.whos .chip { font-style: normal; font-size: 19px; line-height: 1; padding: 6px 14px 7px; color: var(--ink); background: #fff; border: 3px solid var(--green); border-radius: 16px 8px 18px 9px / 9px 18px 8px 16px; }
.whos .chip.m { border-color: var(--gold); border-style: dashed; }
.whos .lbl { display: block; width: fit-content; margin: 0 auto 6px; padding: 0 6px 2px; font-style: normal; font-size: 30px; line-height: 1.1; color: var(--green); border-bottom: 3px dashed var(--red); }
.whos b { color: var(--red); font-weight: 400; font-size: 26px; }
.whos span { display: block; font-size: 18px; color: var(--ink); }
.btn.small { margin-top: 12px; padding: 6px 16px; font-size: 16px; }
.when-time span {
  display: inline-block; padding: 4px 28px 6px; font-family: "Gochi Hand", cursive; font-size: 40px; line-height: 1.1; color: var(--ink);
  background: var(--gold); border: 3px solid var(--ink); border-radius: 18px 8px 20px 9px / 9px 20px 8px 18px;
}
.when-holly { position: absolute; top: -18px; width: 13%; z-index: 2; pointer-events: none; }
.when-holly.l { left: -5%; transform: rotate(-18deg); }
.when-holly.r { right: -5%; transform: scaleX(-1) rotate(-18deg); }

.place { display: flex; align-items: center; gap: 14px; text-decoration: none; text-align: left; }
.place .pin { width: 44px; flex: none; transform: rotate(-6deg); }
.place .addr { display: block; font-family: "Gochi Hand", cursive; font-size: 29px; line-height: 1.08; white-space: pre-line; }
.swoosh { width: 86%; }

/* ---------- wobbly crayon outlines ---------- */
.scribble { position: relative; }
.scribble::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 3px solid var(--ink);
  border-radius: 28px 10px 30px 12px / 12px 30px 10px 28px;
  filter: url(#rough);
}
.btn {
  display: inline-block; position: relative; padding: 11px 22px;
  font-family: "Gochi Hand", cursive; font-size: 21px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--red); border: 0;
  border-radius: 28px 10px 30px 12px / 12px 30px 10px 28px;
}
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 3px solid var(--ink); border-radius: inherit; filter: url(#rough);
}
.btn.alt { background: #fff; color: var(--ink); }
.btn.green { background: var(--green); }
.btn:active { transform: translateY(2px) rotate(-1deg); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* countdown */
.countdown { position: relative; width: 100%; padding: 16px 12px 14px; background: #f1f8e9; border-radius: 28px 10px 30px 12px / 12px 30px 10px 28px; transform: rotate(-1deg); }
.countdown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 3px dashed var(--green); border-radius: inherit; filter: url(#rough);
}
.countdown-label { margin: 0 0 8px; font-family: "Gochi Hand", cursive; font-size: 20px; color: var(--red); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.countdown-num { font-family: "Gochi Hand", cursive; font-size: 44px; line-height: 1; color: var(--deep); }
.countdown-unit-label { font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.countdown-done { margin: 0; font-family: "Gochi Hand", cursive; font-size: 32px; color: var(--red); }

/* ---------- cover ---------- */
.cover .content { min-height: 70vh; justify-content: center; }
.cover .join { font-size: 26px; margin: 0; }

/* ---------- RSVP ---------- */
.content.tight { gap: 10px; }
.content.tight .lights-gap { height: 0; }
.back-link { display: block; margin: 30px 0 0; text-decoration: none; font-family: "Gochi Hand", cursive; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.back-link.bottom { margin: 2px 0 0; font-size: 18px; }
.ask { text-align: center; margin-top: 12px; }
.ask-eyebrow { margin: 0; font-family: "Gochi Hand", cursive; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.page-title { margin: 2px 0 0; font-family: "Gochi Hand", cursive; font-weight: 400; font-size: 46px; line-height: .95; color: var(--red); transform: rotate(-1.5deg); }
.rsvp-card { width: 100%; padding: 14px 18px 22px; background: var(--red); border-radius: 28px 10px 30px 12px / 12px 30px 10px 28px; }
.rsvp-card { margin: 10px 0 12px; }
.rsvp-card p { margin: 0 0 12px; color: #fff; }
.step { margin: 14px 0 6px !important; text-align: left; font-family: "Gochi Hand", cursive; font-size: 20px; color: #fff; }
.rsvp-input {
  width: 100%; padding: 13px; font-family: "Patrick Hand", cursive; font-size: 22px; text-align: center; color: var(--ink);
  background: #fffdf6; border: 3px solid var(--ink); border-radius: 14px 8px 16px 8px / 8px 16px 8px 14px;
  -webkit-appearance: none; appearance: none;
}
.rsvp-input { transition: box-shadow .15s ease; }
.rsvp-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #fff, 0 0 0 8px var(--green); }
.rsvp-thanks .btn { background: #fff; color: var(--red); }
.choices { display: flex; flex-direction: column; gap: 12px; }
.choice { text-align: center; width: 100%; }
.choice.maybe { background: var(--gold); color: var(--ink); }
.choice.no { background: #fff; color: var(--red); }
.rsvp-error { margin: 12px 0 0 !important; color: #fff2b0 !important; }
.rsvp-thanks .big { font-family: "Gochi Hand", cursive; font-size: 46px; color: #fff2b0; margin: 0 0 6px !important; line-height: 1; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(42,29,20,.55); }
.modal-card { width: 100%; max-width: 340px; padding: 24px 18px 18px; background: var(--paper); text-align: center; border-radius: 28px 10px 30px 12px / 12px 30px 10px 28px; }
.modal-card h2 { margin: 0 0 14px; font-family: "Gochi Hand", cursive; font-weight: 400; font-size: 32px; color: var(--red); }
.modal-card .choice { background: #fff; color: var(--ink); }
.modal-cancel { display: inline-block; margin-top: 12px; font-size: 18px; color: #7a6a5a; }

@media (prefers-reduced-motion: no-preference) {
  .trio img, .btn { transition: transform .2s ease; }
  .trio img:hover { transform: rotate(0) translateY(-4px); }
}
