@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --ink: #20382d;
  --muted: #4f5744;
  --paper: #f7efe1;
  --background: #f5efe4;
  --line: #e5dac9;
  --red: #842536;
  --gold: #f3ca83;
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
.shell { width: min(100% - 56px, 1060px); margin-inline: auto; }
.top, footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.top { min-height: 79px; padding: 14px 5px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 740; }
.stamp { display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: var(--paper); border-radius: 50%; font: 700 italic 18px Georgia, serif; }
.tag { color: var(--muted); font-size: .85rem; }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 373px; position: relative; isolation: isolate;
  padding: 50px clamp(28px, 7vw, 78px); border-radius: 28px; overflow: hidden; color: #fff5e4;
  background: radial-gradient(ellipse at 80% 8%, #335844, #162f27 70%);
}
.hero::after { content: ""; position: absolute; inset: 10px; border: 1px solid #ffffff22; border-radius: 21px; pointer-events: none; z-index: -1; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .69rem; font-weight: 760; letter-spacing: .24em; }
h1, h2, .recipient { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 7.9vw, 6.6rem); line-height: .91; letter-spacing: -.068em; margin: 0; }
h1 em { display: block; color: #f7d9a7; font-weight: 400; }
.lede { color: #f3eadd; max-width: 33ch; margin: 25px 0 0; font-size: .99rem; }
.art { height: 270px; position: relative; display: grid; place-items: center; margin-right: -14px; }
.orbit { position: absolute; width: 243px; height: 243px; border: 1px solid #f3ca8350; border-radius: 50%; }
.orbit::before { content: ""; position: absolute; inset: 13px; border: 1px dashed #f3ca8352; border-radius: inherit; }
.spark, .dot { position: absolute; color: var(--gold); }
.spark.one { top: 1%; left: 18%; font-size: 34px; }
.spark.two { top: 14%; right: 7%; font-size: 39px; }
.spark.three { bottom: 8%; right: 13%; font-size: 27px; }
.dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.dot.first { top: 10%; right: 26%; }.dot.second { bottom: 12%; left: 14%; }.dot.third { bottom: 31%; right: 9%; }
.parcel { position: relative; width: 160px; height: 174px; transform: rotate(-10deg); filter: drop-shadow(8px 15px 12px #10241e99); }
.box { position: absolute; inset: 61px 6px 0; border-radius: 2px 2px 9px 9px;
  background: repeating-linear-gradient(134deg, #0000 0 8px, #ffc3aa26 8px 10px, #0000 10px 24px), linear-gradient(95deg, #c7665a, #a94040); border: 1px solid #ffd0aa40; }
.lid { position: absolute; inset: 49px 0 auto; height: 28px; background: #bf5c51; border-radius: 6px 6px 2px 2px; box-shadow: 0 4px 0 #78362b7a; border: 1px solid #ffd0aa48; }
.ribbon { position: absolute; inset: 48px 66px 0; background: linear-gradient(90deg, #edbc78, #ffdea6 40%, #e9b56f); }
.bow { position: absolute; height: 43px; width: 67px; top: 15px; border: 8px solid #f3ca83; border-radius: 75% 80% 21% 76%; }
.bow.left { left: 16px; transform: rotate(24deg); }.bow.right { right: 15px; transform: scaleX(-1) rotate(30deg); }
.seal { position: absolute; bottom: 16px; right: 13px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%;
  background: #f8d49b; color: #743334; font: 700 italic 15px Georgia, serif; box-shadow: 0 2px #7e3935; }
.papercard { margin-top: 19px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); padding: 32px clamp(20px, 5.5vw, 58px); min-height: 160px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -.045em; line-height: 1.11; margin: 0 0 9px; }
p { margin: 0 0 15px; }
.copy { color: var(--muted); max-width: 64ch; }
.row, .buttons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home { display: flex; justify-content: space-between; gap: 18px 24px; align-items: center; flex-wrap: wrap; }
.home .copy { margin-bottom: 0; }
.button, button { font: inherit; font-weight: 700; text-decoration: none; color: #fffaf0; background: var(--red); border: 1px solid transparent; border-radius: 9px;
  padding: 10px 16px; cursor: pointer; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.button:hover, button:hover { background: #81312f; }
button:disabled { opacity: .63; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--ink); border-color: #cbbb9f; }
button.secondary:hover { background: #eee7d9; }
:focus-visible { outline: 3px solid #8b552e; outline-offset: 3px; }
input, select { font: inherit; color: var(--ink); width: 100%; min-width: 0; border-radius: 8px; border: 1px solid #beaf98; min-height: 44px; padding: 8px 11px; background: #fffdfa; }
label { display: grid; gap: 5px; font-size: .84rem; font-weight: 700; }
.status { min-height: 1.6em; margin: 10px 0 0; color: var(--muted); }
.status[data-error="true"] { color: #8f2a29; }
.roster { display: grid; gap: 0; list-style: none; margin: 8px 0 0; padding: 0; }
.roster li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.roster li small { display: block; color: var(--muted); }
.linkbox { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 7px; align-items: end; margin-bottom: 12px; }
.linkbox label { flex: 1 1 250px; }
.participant-form { display: flex; flex-wrap: wrap; gap: 9px 13px; align-items: end; }
.participant-form label { width: min(100%, 350px); }
.recipient { font-size: clamp(2.2rem, 7vw, 4.5rem); color: var(--red); margin: 4px 0 9px; line-height: 1.02; overflow-wrap: anywhere; }
footer { justify-content: center; min-height: 72px; color: var(--muted); font-size: .79rem; }
footer span:nth-child(2) { color: var(--red); }
@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1060px); }
  .top { min-height: 63px; }
  .hero { min-height: auto; grid-template-columns: 1fr auto; padding: 34px 23px; border-radius: 20px; }
  .hero::after { border-radius: 14px; inset: 7px; }
  h1 { font-size: clamp(2.7rem, 8.5vw, 4.8rem); }
  .eyebrow { letter-spacing: .16em; }
  .lede { margin-top: 17px; }
  .art { height: 159px; width: 124px; margin-right: -10px; }
  .parcel { scale: .55; }.orbit { width: 126px; height: 126px; }.orbit::before { inset: 7px; }
  .spark.one, .spark.two, .spark.three { font-size: 17px; }.spark.one { left: 7%; }.spark.two { right: 1%; }
}
@media (max-width: 390px) {
  .art { width: 81px; margin-right: -7px; }.orbit { width: 83px; height: 83px; }.parcel { scale: .39; position: absolute; }
  .spark.one { top: 16%; }.spark.two { top: 19%; }.spark.three { bottom: 13%; }
  .eyebrow { font-size: .62rem; }.lede { font-size: .86rem; }
}
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 194px), 1fr)); gap: 8px; border: 0; margin: 0 0 15px; padding: 0; }
.choices legend { padding: 0; margin-bottom: 7px; font-weight: 700; font-size: .85rem; }
.choice { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.choice:has(:enabled) { cursor: pointer; }
.choice:has(:checked) { border-color: var(--red); background: var(--red); color: #fff5e5; }
.choice input { width: 17px; min-width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--red); }

.invites { display: grid; gap: 8px; }
.invites .linkbox { margin-bottom: 0; }
.choice, .participant-form input, .participant-form button { min-height: 48px; }
.choice { font-size: .98rem; padding: 10px 12px; }
[hidden] { display: none !important; }
.hero.has-portrait { grid-template-columns: 1fr 1fr; gap: 24px; padding-right: clamp(24px, 4vw, 44px); }
.hero.has-portrait h1 { font-size: clamp(2.65rem, 6.3vw, 5.8rem); }
.hero-portrait, .family-portrait { display: block; width: 100%; height: auto; border-radius: 14px; object-fit: contain; }
.hero-portrait { box-shadow: 0 5px 24px #10271d56; }
.family-portrait { max-width: 430px; margin: 24px auto 0; }
.participant-view .hero { min-height: 0; padding-block: 29px; }
.participant-view .hero h1 { font-size: clamp(2.4rem, 5.7vw, 4.35rem); }
.participant-view .hero h1 em { display: inline; }
.participant-view .hero .art { display: none; }
.participant-view .hero { grid-template-columns: 1fr; }
.participant-view .hero .lede { margin-top: 10px; }
@media (max-width: 700px) {
  .hero.has-portrait { grid-template-columns: 1fr; gap: 19px; padding: 30px 17px 17px; }
  .hero.has-portrait .hero-copy { padding-inline: 6px; }
  .hero.has-portrait h1 { font-size: clamp(2.75rem, 11.5vw, 4.8rem); }
  .hero.has-portrait h1 em { display: inline; }
  .participant-view .hero { padding-block: 23px; }
  .participant-view .hero .eyebrow { margin-bottom: 8px; }
}

.surprise-view .shell { max-width: 520px; }
.surprise-view .hero, .surprise-view .hero.has-portrait { grid-template-columns: 1fr; padding: 22px 18px 18px; gap: 17px; border-radius: 16px 16px 0 0; }
.surprise-view .hero::after { display: none; }
.surprise-view .hero-copy { padding: 0 4px; }
.surprise-view .hero h1 { color: #fff3df; font-size: clamp(2.25rem, 10vw, 3.65rem); }
.surprise-view .hero h1 em { color: inherit; font-style: normal; }
.surprise-view .hero-portrait { padding: 4px; background: #efe0c2; border-radius: 2px; }
.surprise-view .hero .lede { display: none; }
.surprise-panel { margin-top: 0; border-radius: 0 0 16px 16px; padding: 24px 18px 16px; text-align: center; }
.surprise-panel h2 { margin-bottom: 2px; font-size: clamp(2.35rem, 8vw, 3.2rem); }
.surprise-panel .copy { margin: 0 auto; }
.surprise-panel .status:empty { min-height: 0; margin: 0; }
.surprise-panel .tag-answer { margin: 10px auto 0; max-width: 34ch; overflow-wrap: anywhere; }
.tag-action, .tag-action:hover { display: block; width: 100%; background: transparent; color: var(--ink); margin: 0; padding: 0; border: 0; }
.tag-action:disabled { opacity: 1; }
.tag-stage { display: grid; min-height: 172px; place-items: center; perspective: 550px; background: radial-gradient(ellipse at 51% 63%, #e5cfad, #f7efe100 70%); }
.tag-action-label { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 15px; border-radius: 8px; background: var(--red); color: #fff5e5; }
.tag-action:hover .tag-action-label { background: #702130; }
.tag-arrow { position: relative; display: block; flex: 0 0 14px; width: 14px; height: 14px; }
.tag-arrow::before { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.tag-arrow::after { content: ''; position: absolute; top: 11px; left: 2px; width: 13px; height: 2px; background: currentColor; transform-origin: left center; transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) { .present-tag { transition: transform .64s cubic-bezier(.24,.73,.23,1.05); } }
@media (max-width: 345px) {
  .surprise-view .hero, .surprise-view .hero.has-portrait { padding: 18px 12px 12px; gap: 12px; }
  .surprise-view .hero h1 { font-size: 2.2rem; }
  .tag-stage { min-height: 147px; }
  .present { scale: .9; }
}

.present{position:relative;width:240px;height:132px;display:block;transform:rotate(-3deg)}
.present-box{position:absolute;left:22px;top:22px;width:142px;height:92px;border:1px solid #772a39;border-radius:8px;transform:rotate(-12deg);background:linear-gradient(90deg,transparent 45%,#9b682e 45%,#f3d096 48%,#e8aa60 55%,transparent 57%),linear-gradient(0deg,transparent 39%,#9b682e 39%,#edc68c 42% 54%,transparent 57%),repeating-linear-gradient(146deg,#922a3d 0 6px,#a9384b 6px 7px);box-shadow:0 12px 18px #79563462,inset 0 0 12px #48182280}
.present-bow{position:absolute;left:63px;top:32px;width:54px;height:31px;transform:rotate(-14deg)}
.present-bow::before,.present-bow::after{position:absolute;content:'';width:31px;height:20px;border:4px solid #e9b780;box-shadow:0 1px 4px #6e3d244d}
.present-bow::before{left:0;border-radius:65% 85% 15% 60%;transform:rotate(17deg)}
.present-bow::after{right:0;border-radius:85% 65% 60% 15%;transform:rotate(-17deg)}
.present-thread{position:absolute;left:101px;top:39px;width:56px;height:30px;border:1px solid #efc895;border-left-color:transparent;border-top-right-radius:70%;border-bottom-left-radius:75%;transform:rotate(28deg)}
.present-tag{position:absolute;left:105px;top:55px;width:134px;height:71px;transform:rotate(9deg);transform-style:preserve-3d}
.present-tag>span{position:absolute;inset:0;background:linear-gradient(155deg,#f5d7a1,#e9b97e);color-scheme:only light;forced-color-adjust:none;clip-path:polygon(11% 0,100% 0,100% 100%,11% 100%,0 75%,0 25%);-webkit-backface-visibility:hidden;backface-visibility:hidden}
.present-tag canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;pointer-events:none}
.present-tag>span::before{position:absolute;content:'';width:5px;height:5px;border-radius:50%;background:#795335;left:6px;top:calc(50% - 2px)}
.present-tag .present-tag-reverse{transform:rotateY(180deg);background:#fcebc9}
.surprise-panel .is-open .present-tag{transform:translate(-11px,-13px) rotate(-2deg) rotateY(180deg) scale(1.2)}

.registration-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 154px), 1fr)); }
.choice-state { margin-inline-start: auto; color: var(--muted); }
.choice:has(:disabled) { background: #eee7db; }
.roster + .copy { margin-top: 16px; }

.home-view .hero {
  grid-template-columns: minmax(0, .46fr) minmax(0, 1fr);
  min-height: 0;
  gap: clamp(16px, 3vw, 32px);
  padding: 14px;
}
.home-view .hero-copy { padding: clamp(12px, 2vw, 26px) 0 clamp(12px, 2vw, 26px) clamp(10px, 2vw, 26px); }
.home-view .hero::after, .home-view .art { display: none; }
.home-view .hero h1 { font-size: clamp(2.55rem, 5.1vw, 4.45rem); line-height: .94; letter-spacing: -.045em; }
.home-view .lede { margin: 16px 0 0; }
.home-portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 4px solid #efe0c2; border-radius: 12px; }
.home-action { margin-top: 22px; border-color: #fff3df58; }
.form-note { padding: 10px 13px; background: #efe4ca; color: #45391f; border-radius: 8px; }
.button.secondary-link { background: transparent; color: var(--ink); border-color: #cbbb9f; }
.button.secondary-link:hover { background: #eee7d9; }
@media (max-width: 700px) {
  .home-view .hero { grid-template-columns: minmax(0, 1fr); padding: 11px; gap: 12px; }
  .home-view .hero-copy { order: 1; padding: 2px 6px 8px; }
  .home-view .hero h1 { font-size: clamp(2.15rem, 8.4vw, 3.55rem); }
  .home-view .hero h1 em { display: inline; }
  .home-view .eyebrow { margin-bottom: 7px; }
  .home-view .lede { margin-top: 9px; }
  .home-action { margin-top: 12px; }
}
