:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
html,body{margin:0}[hidden]{display:none!important}img{max-width:100%}

/* Layout: one candlelit column. The astrolabe is the seal, the form is a ledger of four folios
   ruled in gold, laid over the dimmed fort map from the invitation film. Single dark look by design. */
:root {
  --night: #0d0906;
  --umber: #18110b;
  --umber-2: #21180f;
  --field: #110c08;
  --ink: #f2e7d2;
  --muted: #bba98a;
  --faint: #85745a;
  --gold: #d7ae6a;
  --gold-hi: #f5e0b2;
  --gold-lo: #9d733a;
  --line: rgba(215, 174, 106, 0.26);
  --line-strong: rgba(215, 174, 106, 0.55);
  --alert: #f0a183;
  --ok: #c5d9a2;
  --gold-text: linear-gradient(180deg, #fff4d8 0%, #f3dba7 38%, #c99b56 56%, #e3c182 78%, #f8e4b3 100%);
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --disc-url: url("../images/artwork-1.webp");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-inline: 16px;
  padding-block: 0;
}
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 22%, rgba(13, 9, 6, 0.35), rgba(13, 9, 6, 0.92) 70%),
    linear-gradient(180deg, rgba(13, 9, 6, 0.55), rgba(13, 9, 6, 0.96) 62%),
    url("../images/artwork-2.jpeg") center top / cover no-repeat,
    var(--night);
  filter: saturate(0.85);
}
#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wrap { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; padding-block: 40px 64px; display: grid; gap: 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 12px; padding-block: 8px 12px; }
.emblem { position: relative; width: clamp(150px, 40vw, 210px); aspect-ratio: 560 / 731; margin-bottom: 10px; }
.emblem::before {
  content: ""; position: absolute; left: -40%; right: -40%; bottom: -30%; height: 120%;
  background: radial-gradient(circle at 50% 58%, rgba(232, 186, 112, 0.26), rgba(232, 186, 112, 0) 62%);
}
.hanger { position: absolute; top: 0; left: 0; width: 100%; }
.disc { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; }
.disc .face, .disc .glint { position: absolute; inset: 0; }
.disc .face { background: var(--disc-url) center / contain no-repeat; animation: turn 140s linear infinite; }
.disc .glint {
  -webkit-mask: var(--disc-url) center / contain no-repeat; mask: var(--disc-url) center / contain no-repeat;
  background: conic-gradient(from 0deg, transparent 0 66%, rgba(255, 232, 186, 0.5) 74%, rgba(255, 246, 222, 0.75) 76%, transparent 84%, transparent);
  mix-blend-mode: screen; animation: turn 10s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.invites { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--gold); font-family: var(--display); font-style: italic; font-size: 1.35rem; font-weight: 500; }
.armaf {
  display: inline-block; height: 0.95rem; aspect-ratio: 700 / 133;
  background: var(--gold-text);
  -webkit-mask: url("../images/artwork-3.png") center / contain no-repeat; mask: url("../images/artwork-3.png") center / contain no-repeat;
}
.lockup { margin: 6px 0 0; width: min(100%, 520px); }
.lockup .mark {
  display: block; width: 100%; aspect-ratio: 1400 / 163; background: var(--gold-text);
  -webkit-mask: url("../images/artwork-4.png") center / contain no-repeat; mask: url("../images/artwork-4.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}
.conv { margin: 4px 0 0; font-family: var(--caps); font-weight: 600; letter-spacing: 0.16em; font-size: clamp(0.78rem, 2.7vw, 1rem); color: var(--gold-hi); text-wrap: balance; }
.conv b { display: block; font-size: 1.9em; letter-spacing: 0.22em; font-weight: 600; margin-top: 4px;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { display: flex; align-items: center; gap: 10px; width: min(76%, 360px); color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 9px; height: 9px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.when { margin: 0; font-family: var(--caps); font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.3rem); letter-spacing: 0.06em; color: var(--ink); }
.where { margin: -4px 0 0; font-family: var(--caps); font-size: 0.82rem; letter-spacing: 0.3em; color: var(--gold); }
.tag { margin: 4px 0 0; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--muted); }

/* ---------- shared panels ---------- */
.folio {
  position: relative; margin: 0; padding: 26px clamp(18px, 4vw, 30px) 28px;
  border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(180deg, rgba(33, 24, 15, 0.92), rgba(22, 16, 10, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  min-width: 0; display: grid; gap: 18px;
}
.folio::before, .folio::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--line-strong); pointer-events: none;
}
.folio::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.folio::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.folio > legend { float: left; width: 100%; padding: 0; margin: 0; display: flex; align-items: baseline; gap: 14px;
  font-family: var(--caps); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.08em; color: var(--gold-hi); }
.folio > legend + * { clear: both; }
.num { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--line-strong);
  min-width: 2.1em; padding: 2px 6px; text-align: center; border-radius: 2px; }
.lede { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- form head ---------- */
.formhead { display: grid; gap: 6px; text-align: center; padding-inline: 8px; }
.eyebrow { margin: 0; font-family: var(--caps); font-size: 0.78rem; letter-spacing: 0.32em; color: var(--gold); }
.formhead h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.formhead .lede { margin-inline: auto; }
form { display: grid; gap: 22px; }

/* ---------- fields ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .q { font-family: var(--caps); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--gold); margin: 0; }
.field .hint { font-size: 0.82rem; color: var(--faint); margin: -2px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"] {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 2px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: var(--faint); }
input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 174, 106, 0.18); }
input[aria-invalid="true"] { border-color: var(--alert); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.err { margin: 0; min-height: 0; color: var(--alert); font-size: 0.86rem; }
.err:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 50px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 3px; background: rgba(13, 9, 6, 0.55); transition: border-color 0.2s, background 0.2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice::before { content: ""; position: absolute; left: 18px; top: 19px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--gold-lo); transition: border-color 0.2s, box-shadow 0.2s; }
.choice .c-title { font-weight: 600; color: var(--ink); }
.choice .c-sub { font-size: 0.86rem; color: var(--muted); }
.choice:hover { border-color: var(--line-strong); }
.choice.on { border-color: var(--gold); background: rgba(215, 174, 106, 0.09); }
.choice.on::before { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--umber), inset 0 0 0 9px var(--gold); }
.choice:focus-within { box-shadow: 0 0 0 3px rgba(215, 174, 106, 0.22); }
.choices.invalid .choice { border-color: rgba(240, 161, 131, 0.6); }

.stepper { display: inline-grid; grid-template-columns: 46px 74px 46px; align-items: stretch; width: max-content;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--field); }
.stepper button { font: inherit; font-size: 1.3rem; color: var(--gold); background: transparent; border: 0; cursor: pointer; line-height: 1; }
.stepper button:hover:not(:disabled) { background: rgba(215, 174, 106, 0.1); }
.stepper button:disabled { color: var(--faint); cursor: default; }
.stepper button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.stepper input { border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; padding: 10px 4px;
  font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nights { margin: 0; font-size: 0.9rem; color: var(--muted); }
.nights strong { color: var(--gold-hi); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- passports ---------- */
.slots { display: grid; gap: 14px; }
.slot { display: grid; gap: 12px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 3px; background: rgba(13, 9, 6, 0.5); min-width: 0; }
.slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slot-n { font-family: var(--caps); font-weight: 600; letter-spacing: 0.12em; color: var(--gold-hi); font-size: 0.9rem; }
.slot-who { font-size: 0.86rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer; min-width: 0;
  border: 1px solid var(--line); border-radius: 2px; background: var(--field); transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(215, 174, 106, 0.07); }
.drop:focus-within { box-shadow: 0 0 0 3px rgba(215, 174, 106, 0.22); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.thumb { flex: none; width: 64px; height: 46px; border-radius: 2px; border: 1px solid var(--line); display: grid; place-items: center;
  background: var(--umber) center / cover no-repeat; color: var(--gold); font-family: var(--caps); font-size: 0.7rem; letter-spacing: 0.1em; }
.drop-text { display: grid; gap: 1px; min-width: 0; }
.drop-text b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.drop-text span { font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.drop.has .thumb { border-color: var(--gold); }
.drop.busy { opacity: 0.7; }
.slot.invalid .drop { border-color: var(--alert); }

/* ---------- submit ---------- */
.submitbar { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 4px; }
.btn {
  font-family: var(--caps); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.18em; color: #1b1209;
  background: linear-gradient(180deg, #f6e2b4, #d4a862 55%, #b98a47); border: 1px solid #f0d49b; border-radius: 2px;
  padding: 15px 34px; cursor: pointer; box-shadow: 0 10px 30px rgba(214, 160, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(214, 160, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.btn:disabled { filter: grayscale(0.6) brightness(0.7); cursor: progress; }
.btn.ghost { color: var(--gold-hi); background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn.small { font-size: 0.74rem; padding: 9px 16px; letter-spacing: 0.14em; }
.fine { margin: 0; font-size: 0.84rem; color: var(--faint); max-width: 46ch; }
.notice { padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); background: rgba(24, 17, 11, 0.92); border-radius: 2px; color: var(--ink); }
.notice p { margin: 0; }
.notice.warn { border-left-color: var(--alert); }

/* ---------- confirmation ---------- */
.done { text-align: center; justify-items: center; }
.done h2 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(2rem, 7vw, 2.5rem); line-height: 1.1;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary { width: 100%; margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; text-align: left; }
.summary dt { font-family: var(--caps); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--gold); padding-top: 3px; }
.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- organizer ---------- */
.org h2 { margin: 0; font-family: var(--caps); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--gold-hi); }
.org-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.org-note { margin: 2px 0 0; font-size: 0.84rem; color: var(--faint); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: rgba(13, 9, 6, 0.55); display: grid; gap: 2px; }
.tile b { font-family: var(--caps); font-size: 1.6rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--caps); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--gold); background: rgba(13, 9, 6, 0.6); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
td .sub { display: block; color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid; white-space: nowrap; }
.chip.yes { color: var(--ok); border-color: rgba(197, 217, 162, 0.5); }
.chip.no { color: var(--muted); border-color: var(--line-strong); }
.linkbtn { font: inherit; font-size: 0.82rem; color: var(--gold-hi); background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0; cursor: pointer; margin-right: 10px; }
.linkbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.empty { padding: 22px; text-align: center; color: var(--muted); }

.viewer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(8, 5, 3, 0.86); }
.viewer-card { width: min(100%, 760px); max-height: 100%; overflow: auto; display: grid; gap: 12px; padding: 16px; background: var(--umber); border: 1px solid var(--line-strong); border-radius: 3px; }
.viewer-card img { width: 100%; height: auto; border-radius: 2px; background: #000; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.viewer-top b { font-weight: 600; overflow-wrap: anywhere; }

footer { text-align: center; color: var(--faint); font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.24em; padding-top: 8px; }

@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .disc .face, .disc .glint { animation: none; }
  .btn, .choice, input { transition: none; }
}

.required-note{margin:0;color:var(--muted);font-size:.86rem}.fine{color:var(--muted)}
