@font-face {
  font-family: Outfit;
  src: url("/_a/outfit-latin.6c18d579fd.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #35201d;
  --muted: #724b47;
  --berry: #a5143f;
  --deep-berry: #6f0e2c;
  --cream: #fff4e4;
  --paper: #fffaf2;
  --ivory: #fff2dd;
  --candy: #ffc5b5;
  --ribbon-stripe: #ffdfb4;
  --line: #e2c9b5;
  --rule: #b79282;
  --font: Outfit, "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.55 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.site-width { width: min(100% - 3rem, 1080px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; padding: .7rem 1rem; background: var(--paper); }

.masthead { background: var(--cream); }
.masthead-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.logo, .footer-logo {
  display: inline-flex; gap: .55rem; align-items: center; text-decoration: none;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.05em;
}
.logo img { width: 34px; height: 34px; display: block; }
.masthead nav, .footer nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.masthead nav a, .footer nav a { text-decoration: none; font-size: .94rem; font-weight: 650; }
.masthead nav a:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.masthead nav a:last-child { color: var(--berry); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--berry); color: var(--ivory); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background: repeating-linear-gradient(137deg, transparent 0 22px, var(--ivory) 22px 23px, transparent 23px 30px);
  mask-image: linear-gradient(90deg, transparent 18%, currentColor);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); align-items: center;
  gap: clamp(.55rem, 4vw, 3.25rem); min-height: 276px; padding-block: clamp(1.25rem, 3.4vw, 2.9rem);
}
.hero-copy { animation: enter .35s ease-out both; }
.hero h1 {
  max-width: 11.7ch; font-size: clamp(2.55rem, 6vw, 5.2rem); font-weight: 800;
  line-height: .94; letter-spacing: -.052em; text-wrap: balance;
}
.hero-copy > p { max-width: 39ch; margin-top: .8rem; font-size: clamp(.96rem, 1.75vw, 1.19rem); line-height: 1.4; }
.party-art { position: relative; min-height: 196px; animation: enter .48s .05s ease-out both; }
.party-star { position: absolute; z-index: 1; line-height: 1; font-family: Georgia, serif; color: var(--candy); }
.party-star-left { top: 22%; left: 4%; font-size: clamp(1rem, 3.8vw, 2.8rem); }
.party-star-top { top: 5%; right: 16%; font-size: clamp(1.15rem, 3.3vw, 2.5rem); }
.party-star-right { bottom: 2%; right: 4%; font-size: clamp(1.3rem, 4.2vw, 3.25rem); }
.party-gift {
  position: absolute; inset: 35% auto auto 53%; width: clamp(103px, 23vw, 205px); aspect-ratio: 1.16;
  transform: translate(-50%, -26%) rotate(-13deg);
  filter: drop-shadow(8px 11px 0 color-mix(in srgb, var(--deep-berry) 72%, transparent));
}
.party-box, .party-lid {
  position: absolute; inset: 9% 4% 0; border-radius: 6px 6px 12px 10px;
  background: linear-gradient(90deg, transparent 37%, var(--berry) 37% 54%, var(--deep-berry) 54% 56%, transparent 56%),
    repeating-linear-gradient(135deg, var(--ribbon-stripe) 0 clamp(5px, 1.1vw, 12px), var(--ivory) clamp(5px, 1.1vw, 12px) clamp(10px, 2.2vw, 24px));
}
.party-lid {
  inset: 0 0 67%; border-radius: 7px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--deep-berry) 24%, transparent);
  transform: rotate(-3deg);
}
.party-bow { position: absolute; z-index: 1; inset: -34% 25% 83%; transform: rotate(-5deg); }
.party-bow::before, .party-bow::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 57%;
  border: clamp(4px, .9vw, 10px) solid var(--candy); border-radius: 75% 81% 17% 74%;
  transform: rotate(18deg);
}
.party-bow::after { inset-inline: auto 0; transform: scaleX(-1) rotate(18deg); }

.draw-section { padding-block: clamp(1.2rem, 3.1vw, 2.45rem); border-bottom: 1px solid var(--line); background: var(--cream); }
.tool-wrap { max-width: 800px; min-width: 0; }
.draw-panel { color: var(--ink); }
.panel-heading {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .2rem .8rem; margin-bottom: .45rem;
}
.panel-heading label { font-size: clamp(1.14rem, 3vw, 1.46rem); font-weight: 800; letter-spacing: -.035em; }
.text-button {
  appearance: none; background: none; border: 0; color: var(--berry); padding: .25rem 0;
  text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; font-weight: 700;
}
.text-button:disabled { cursor: default; color: var(--muted); }
.text-button:hover:enabled { color: var(--deep-berry); }
#names {
  display: block; width: 100%; min-height: 112px; resize: vertical; padding: .65rem .84rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
  font-size: 16px; line-height: 1.35;
}
#names::placeholder { color: var(--muted); }
#names[aria-invalid] { border-color: var(--berry); }
.names-hint { display: flex; justify-content: space-between; gap: .5rem; margin: .4rem 0 .72rem; color: var(--muted); font-size: .85rem; }
#draw { scroll-margin-top: .75rem; }
.draw-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .5rem 1.15rem; }
.exclusions { max-width: 520px; min-width: 0; }
.exclusions summary, .faq-list summary { cursor: pointer; list-style: none; }
.exclusions summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.exclusions summary {
  min-height: 46px; display: flex; flex-wrap: wrap; align-content: center; align-items: center;
  gap: 0 .4rem; font-size: .94rem; font-weight: 750;
}
.exclusions summary::before { content: "+"; color: var(--berry); font-size: 1.12rem; line-height: 1; }
.exclusions[open] summary::before { content: "−"; }
.exclusions summary span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.exclusions p { color: var(--muted); font-size: .88rem; margin: .1rem 0 .55rem; }
.exclusion-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .4rem; margin-bottom: .45rem; }
.exclusion-row select, .results-list input {
  min-height: 43px; width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 7px; padding: .32rem .45rem;
}
.remove-button, .copy-button {
  color: var(--berry); border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); font-weight: 750;
}
.remove-button { min-width: 43px; font-size: 1.12rem; }
.copy-button { min-height: 44px; padding: .35rem .78rem; font-size: .88rem; white-space: nowrap; }
.copy-button:hover, .remove-button:hover { background: var(--ivory); }
.primary {
  min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: .75rem;
  border: 0; border-radius: 999px; padding: .58rem 1.12rem; color: var(--ivory); background: var(--berry);
  font-weight: 750; white-space: nowrap; transition: background-color .16s, transform .16s;
}
.primary:hover:enabled { background: var(--deep-berry); transform: translateY(-1px); }
.primary:active:enabled { transform: translateY(1px); }
.primary:disabled { cursor: not-allowed; opacity: .65; }
.primary span { font-size: 1.1rem; line-height: 1; }
.privacy-note { color: var(--muted); font-size: .88rem; margin-top: .65rem; }
.form-error { margin: .2rem 0 .45rem; color: var(--berry); font-size: .92rem; font-weight: 700; }
.draw-panel h2 { font: 780 clamp(1.7rem, 4vw, 2.5rem)/1.1 var(--font); letter-spacing: -.048em; }
.results-panel > p:not(.privacy-note), .reveal-panel > p { color: var(--muted); margin: .55rem 0 .8rem; }
.results-list { max-height: 375px; overflow: auto; margin: 0; padding: 0 4px; list-style: none; }
.results-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .55rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.results-list li > span { min-width: 0; overflow-wrap: anywhere; font-weight: 650; flex: 1; }
.results-list input { flex-basis: 100%; margin-bottom: .25rem; }
.reveal-panel, .results-panel, .revealed-pick { animation: enter .25s ease-out both; }
.revealed-pick { padding: .85rem 1rem; border: 1px dashed var(--rule); border-radius: 10px; background: var(--paper); }
.revealed-pick [data-recipient] {
  color: var(--berry); font: 800 clamp(2rem, 5vw, 3.2rem)/1.08 var(--font);
  letter-spacing: -.05em; margin-block: .25rem; overflow-wrap: anywhere;
}
.new-draw { display: block; width: fit-content; margin-top: .7rem; }

.section { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.section h2, .legal h1 { font: 780 clamp(1.95rem, 4.3vw, 3.55rem)/1.02 var(--font); letter-spacing: -.05em; }
.instructions { margin: 1.35rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; }
.instructions li { border-top: 1px solid var(--rule); padding-top: .76rem; }
.instructions h3, .guide-articles h3 { margin-bottom: .22rem; font-size: 1.12rem; letter-spacing: -.015em; }
.instructions p, .faq-inner > div:first-child > p, .faq-list p, .guide-articles p { color: var(--muted); }
.guide-section { border-top: 1px solid var(--line); }
.guide-inner, .faq-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1rem, 5vw, 4rem); }
.guide-inner > div:first-child > p { max-width: 32ch; margin-top: .7rem; color: var(--muted); }
.guide-articles { display: grid; gap: 1.15rem; }
.faq-section { background: var(--cream); }
.faq-inner > div:first-child > p { margin-top: .55rem; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; font-weight: 700; }
.faq-list summary::after { content: "+"; color: var(--berry); font-size: 1.15rem; line-height: 1.35; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 1.2rem .85rem 0; }
.legal { max-width: 760px; min-height: 67vh; padding-block: 3rem 4rem; }
.legal h2 { margin-top: 1.3rem; font-size: 1.2rem; }
.legal p { margin-top: .4rem; color: var(--muted); }
.footer { background: var(--deep-berry); color: var(--ivory); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.3rem; padding-block: 1.25rem; }
.footer :focus-visible { outline-color: var(--ivory); }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .hero-inner { min-height: 205px; }
  .hero h1 { font-size: clamp(2.25rem, 7.8vw, 3.9rem); }
  .party-art { min-height: 145px; }
  .guide-inner, .faq-inner { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .site-width { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 57px; }
  .masthead nav a:first-child { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); min-height: 182px; }
  .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
  .hero-copy > p { margin-top: .6rem; font-size: .92rem; }
  .party-art { min-height: 103px; }
  .party-star-left { top: 3%; left: 0; }
  .party-star-top { top: 1%; right: 3%; }
  .party-star-right { bottom: 0; right: 0; }
  .party-gift { inset-inline-start: 53%; width: clamp(73px, 23vw, 112px); }
  .draw-controls { column-gap: .5rem; }
  .draw-controls:has(.exclusions[open]) { grid-template-columns: 1fr; }
  .draw-controls:has(.exclusions[open]) .primary { justify-self: end; }
  .primary { gap: .35rem; padding-inline: .9rem; }
  .instructions { grid-template-columns: 1fr; gap: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.footer [data-analytics-settings] {
  border: 0;
  padding: 0;
  background: none;
  font-size: .94rem;
  font-weight: 650;
}
.footer [data-analytics-settings]:hover { text-decoration: underline; text-underline-offset: 3px; }

.analytics-panel {
  position: fixed;
  z-index: 5;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(calc(100% - 2rem), 365px);
  padding: .8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.analytics-panel h2 { font-size: 1rem; }
.analytics-panel p { margin-top: .25rem; color: var(--muted); font-size: .85rem; }
.analytics-panel a { color: var(--berry); }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.analytics-actions button {
  min-height: 42px;
  padding: .35rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--berry);
  font-size: .87rem;
  font-weight: 680;
}
.analytics-actions button:hover { background: var(--ivory); }
