:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --white: #fffcf7;
  --blush: #f4e5db;
  --ink: #30201e;
  --muted: #6f534d;
  --red: #951d32;
  --red-dark: #6f1326;
  --line: #ddcbc2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
:target { scroll-margin-top: 1.5rem; }
main { min-height: calc(100vh - 8.5rem); }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.65rem, 5.1vw, 4.9rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; }
.shell { width: min(100% - var(--gutter) * 2, 1170px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 4; background: var(--ink); color: white; padding: .5rem 1rem; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-nav {
  min-height: 73px; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto;
}
.brand { display: inline-flex; gap: .64rem; align-items: center; white-space: nowrap; font: 1.45rem/1 var(--serif); font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { background: var(--red); color: var(--white); display: grid; place-items: center; width: 32px; height: 32px; font: 1.12rem/1 var(--sans); border-radius: 50%; }
.nav-actions { display: flex; align-items: center; gap: clamp(.6rem, 3vw, 2.3rem); font-size: .89rem; font-weight: 650; }
.nav-actions a:not(.button) { text-decoration: none; }
.nav-actions a:not(.button):hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.site-footer .brand { color: var(--muted); font-size: 1rem; }
.button, .text-button {
  min-height: 46px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  padding: .6rem 1.15rem; border: 1px solid transparent; border-radius: .38rem;
  font-size: .92rem; line-height: 1.25; font-weight: 680; text-decoration: none; text-align: center;
  transition: background .16s, border-color .16s, color .16s;
}
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button-outline { background: transparent; color: var(--red-dark); border-color: #bc9290; }
.button-outline:hover { background: #efdcd3; border-color: #a87574; }
.button-small { min-height: 42px; padding: .52rem .85rem; }
.button:disabled { opacity: .58; cursor: default; }
.text-button { background: transparent; color: var(--red-dark); text-decoration: underline; text-underline-offset: .2em; padding-inline: .2rem; font-size: .88rem; }
.text-button:hover, .subtle-link:hover { color: var(--red); }
.hero { display: grid; grid-template-columns: 1fr min(49%, 820px); min-height: clamp(28rem, 44vw, 41rem); border-bottom: 1px solid var(--line); background: #f7eee4; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 6vw, 5rem) var(--gutter); padding-left: max(var(--gutter), calc((100vw - 1440px) / 2)); }
.eyebrow { font-size: .73rem; font-weight: 750; color: var(--red-dark); letter-spacing: .16em; }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-copy .eyebrow span { font-size: .92rem; margin-right: .3rem; }
.hero-copy h1 { font-size: clamp(3.15rem, 6.9vw, 7.5rem); line-height: .96; }
.hero-copy h1 em { color: var(--red); }
.hero-description { max-width: 33ch; font-size: clamp(1rem, 1.45vw, 1.25rem); color: var(--muted); margin: 1.55rem 0 1.65rem; }
.hero-actions { display: flex; align-items: center; gap: .6rem 1.1rem; flex-wrap: wrap; }
.hero-actions .button { min-height: 50px; }
.subtle-link { font-size: .84rem; font-weight: 650; }
.hero-picture { display: block; position: relative; overflow: hidden; background: #eec3ac; }
.hero-picture img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 54%; }
.how { padding-block: clamp(2.1rem, 5.5vw, 4.5rem); }
.how h2 { font-size: clamp(2rem, 4vw, 3rem); }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; counter-reset: steps; }
.steps li { border-top: 1px solid var(--line); padding: 1rem 0; counter-increment: steps; display: grid; align-content: start; grid-template-columns: auto 1fr; column-gap: .7rem; }
.steps li::before { content: counter(steps) "."; grid-row: span 2; color: var(--red-dark); font-family: var(--serif); font-size: 1.05rem; }
.steps p { color: var(--muted); margin-top: .2rem; font-size: .92rem; }
.form-page { width: min(100% - var(--gutter) * 2, 540px); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.form-page h1 { margin-top: .55rem; }
.lede { color: var(--muted); margin: .9rem 0 1.4rem; overflow-wrap: anywhere; }
.form-stack { display: grid; gap: .5rem; max-width: 34rem; }
.form-stack label { display: block; font-size: .92rem; font-weight: 670; }
.form-stack label small { color: var(--muted); font-weight: 450; margin-left: .2rem; }
.form-stack input:not([type="checkbox"]), .form-stack textarea, .form-stack select {
  width: 100%; min-width: 0; min-height: 47px; padding: .65rem .75rem; border: 1px solid #ad9389;
  border-radius: .33rem; background: var(--white); color: var(--ink);
}
.form-stack textarea { resize: vertical; }
.form-stack > input + label, .form-stack > .field-row, .form-stack .check { margin-top: .55rem; }
.form-stack .check { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding-block: .25rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }
.form-stack .button { justify-self: start; margin-top: .55rem; }
.form-stack .pin { max-width: 13rem; font-size: 1.35rem; letter-spacing: .35em; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field-row label { margin-bottom: .35rem; }
.resend { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .4rem; font-size: .88rem; }
.local-note { margin-top: 1.5rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .83rem; padding-top: .75rem; }
.error { color: var(--red-dark); font-weight: 650; margin-bottom: .8rem; }
.flash { margin-top: 1.2rem; padding: .8rem 1rem; background: #f1e6db; border: 1px solid #ccb6a9; border-radius: .35rem; font-weight: 550; }
.workspace { padding-block: clamp(2rem, 5vw, 4rem); }
.back { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-weight: 620; font-size: .88rem; text-decoration: none; margin-bottom: .55rem; }
.back:hover { text-decoration: underline; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; }
.page-heading .account { margin-bottom: 0; }
.page-heading .button { flex-shrink: 0; }
.page-heading .status { margin-bottom: .25rem; }
.exchange-heading h1 { margin-top: .4rem; }
.event-facts { display: flex; flex-wrap: wrap; gap: .2rem .75rem; color: var(--muted); margin-top: .7rem; font-size: .93rem; }
.event-facts span + span::before { content: "·"; margin-right: .75rem; font-weight: 700; }
.form-page .event-facts { margin-bottom: 1.15rem; }
.group-list, .people, .exclusions, .invited { list-style: none; padding: 0; margin: .7rem 0 0; }
.group-list { border-block: 1px solid var(--line); }
.group-list li + li { border-top: 1px solid var(--line); }
.group-list a { padding: 1rem .2rem; display: flex; gap: .6rem; justify-content: space-between; align-items: center; text-decoration: none; }
.group-list a:hover h2 { text-decoration: underline; }
.list-end { display: flex; align-items: center; gap: 1rem; }
.empty { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.empty p, .group-list p { margin-top: .3rem; color: var(--muted); }
.status { background: #f0e3db; color: #64382f; border-radius: 2rem; padding: .28rem .62rem; display: inline-block; flex-shrink: 0; font-size: .77rem; line-height: 1.25; font-weight: 700; }
.draw-banner {
  background: var(--blush); border-left: 3px solid var(--red); padding: clamp(1rem, 3.2vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.4rem; margin: .4rem 0 2rem;
}
.draw-banner p { color: var(--muted); margin-top: .42rem; max-width: 60ch; }
.draw-banner .eyebrow { color: var(--red-dark); margin-top: 0; }
.draw-banner form, .draw-banner .button { flex-shrink: 0; }
.recipient-name { color: var(--red-dark); font-style: italic; font-size: clamp(2.3rem, 5vw, 4rem); margin-top: .3rem; overflow-wrap: anywhere; }
.draw-banner .wish-label { margin-top: .85rem; color: var(--ink); font-weight: 700; }
.wish-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.organiser-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
.invite-area { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 2.5rem); }
.muted { color: var(--muted); font-size: .91rem; }
.roster > .muted, .invite-area > .muted, .detail-section > .muted { margin-top: .5rem; }
.roster h3 { margin-top: 1rem; }
.people { border-top: 1px solid var(--line); }
.person { min-height: 62px; padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .65rem; }
.avatar { margin-right: .1rem; border-radius: 50%; background: #efdfd7; color: var(--red-dark); font: 1.1rem var(--serif); width: 2rem; height: 2rem; display: grid; place-items: center; flex-shrink: 0; }
.person-name { display: grid; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.person-name span { color: var(--muted); font-size: .8rem; }
.person-actions { display: flex; justify-content: end; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; margin-left: auto; }
.invited li, .exclusions li { overflow-wrap: anywhere; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.exclusions li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; margin-top: .85rem; }
.invite-area > .button { margin-top: .85rem; }
.copy-feedback { font-size: .8rem; color: var(--muted); margin: .2rem 0 .5rem; overflow-wrap: anywhere; }
summary { font-weight: 700; font-size: .94rem; padding: .7rem 0; min-height: 44px; }
summary::marker { color: var(--red-dark); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
details[open] { padding-bottom: .9rem; }
.detail-section { margin-top: 1.15rem; }
.compact { margin: .5rem 0 .25rem; }
.draw-fallback { display: none; }
.draw-fallback:target { display: block; padding-block: 1.2rem 2rem; }
.draw-fallback p, dialog p { color: var(--muted); margin: .8rem 0; }
dialog {
  width: min(calc(100% - 2.5rem), 470px); padding: clamp(1.1rem, 4vw, 2rem);
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .48rem;
}
dialog::backdrop { background: #30201e90; }
.dialog-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: enter .45s ease-out both; }
  .hero-copy h1 { animation-delay: .055s; }
  .hero-description, .hero-actions { animation-delay: .1s; }
  dialog[open], .revealed .recipient-name { animation: enter .25s ease-out both; }
  @keyframes enter { from { transform: translateY(8px); opacity: .25; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 800px) {
  .organiser-workspace { grid-template-columns: 1fr; }
  .invite-area { border-left: 0; padding-left: 0; }
  .hero-copy { padding-right: 1.25rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .site-nav { min-height: 62px; }
  .brand { font-size: 1.24rem; }
  .brand-mark { width: 28px; height: 28px; }
  .how-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 1.9rem var(--gutter) 1.65rem; }
  .hero-copy .eyebrow { margin-bottom: .85rem; }
  .hero-copy h1 { font-size: clamp(3.05rem, 11.8vw, 5.2rem); }
  .hero-description { margin: 1.05rem 0 1.15rem; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-picture { height: clamp(15rem, 77vw, 25rem); }
  .hero-picture img { object-position: 50% 52%; }
  .steps { grid-template-columns: 1fr; }
  .page-heading, .draw-banner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .site-nav { gap: .5rem; }
  .nav-actions { gap: .45rem; }
  .nav-actions { font-size: .78rem; }
  .nav-actions .text-button { font-size: inherit; }
  .person-actions { gap: 0 .28rem; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.privacy h2 { margin-top: 1.4rem; }
.privacy p { margin-top: .7rem; color: var(--muted); overflow-wrap: anywhere; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-privacy { color: var(--muted); font-size: .87rem; }
