:root {
  --ink: #102f29;
  --ink-soft: #38534d;
  --paper: #f3eddf;
  --paper-bright: #fffaf0;
  --acid: #e8f065;
  --coral: #f2735b;
  --blue: #1838a0;
  --line: rgba(16, 47, 41, 0.22);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
}
h2 { font-size: clamp(2.15rem,3.5vw,3.25rem); line-height: 1.05; }
.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--acid);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--blue); }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 1440px);
  margin: 0 auto;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.site-header--dark { border-bottom-color: var(--line); }
.site-brand {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: inherit;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
}
.site-header nav { display: flex; gap: clamp(.8rem,3vw,2.3rem); align-items: center; }
.site-header nav > a:not(.button) {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.45rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-bright);
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button--small { min-height: 2.5rem; padding: .45rem 1.2rem; }
.button--light { border-color: var(--acid); color: var(--ink); background: var(--acid); }
.button--outline { color: var(--ink); background: transparent; }
.text-link { font-weight: 700; text-underline-offset: .3em; }
.text-link--light { color: var(--paper-bright); }

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 78% 18%, rgba(242,115,91,.35), transparent 28%),
    radial-gradient(circle at 14% 84%, rgba(232,240,101,.12), transparent 24%),
    var(--blue);
}
.hero__stars {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    radial-gradient(circle, white 0 1px, transparent 1.5px),
    radial-gradient(circle, white 0 1px, transparent 1.5px);
  background-position: 0 0, 47px 73px;
  background-size: 137px 137px, 181px 181px;
  mask-image: linear-gradient(to right, black, transparent 52%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem,1440px);
  margin: 0 auto;
  padding: clamp(4rem,8vh,6rem) 0 4rem;
}
.hero h1 {
  max-width: 720px;
  margin-bottom: 1.75rem;
  font-size: clamp(4rem,7vw,6rem);
  line-height: .78;
}
.hero__title-stack { position: relative; display: block; }
.hero__title-order {
  display: block;
  transition: opacity 700ms ease;
}
.hero__title-order--alternate {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.hero__title.is-swapped .hero__title-order--primary { opacity: 0; }
.hero__title.is-swapped .hero__title-order--alternate { opacity: 1; }
.hero__name { display: block; }
.hero__ampersand {
  display: block;
  margin: .05em 0 -.03em .72em;
  color: var(--coral);
  font-size: .55em;
  font-style: italic;
}
.hero__lede {
  max-width: 540px;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: clamp(1.3rem,2.2vw,1.8rem);
  line-height: 1.15;
}
.hero__date {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.hero__actions { display: flex; gap: 1.6rem; align-items: center; margin-top: 2.6rem; }
.hero__orbit {
  position: absolute;
  right: -3vw;
  bottom: -8vw;
  width: clamp(300px,43vw,680px);
  opacity: .92;
  transform: rotate(-8deg);
}
.hero__figure-label {
  position: absolute;
  right: 2rem;
  bottom: 1.3rem;
  z-index: 2;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.orbit-mark { display: block; width: 100%; overflow: visible; }
.orbit-mark__line { fill: none; stroke: var(--paper-bright); stroke-width: 1.2; stroke-dasharray: 4 4; }
.orbit-mark__sun { fill: var(--acid); }
.orbit-mark__one { fill: var(--coral); }
.orbit-mark__two { fill: var(--paper-bright); }
.orbit-mark--small { width: 30px; }

.section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.72fr);
  gap: clamp(3rem,6vw,7rem);
  width: min(100% - 3rem,1280px);
  margin: 0 auto;
  padding: clamp(4rem,6vw,5rem) 0;
}
.section__number {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 2.5rem;
  padding-top: .45rem;
  border-top: 2px solid var(--ink);
  font-size: .7rem;
  font-weight: 900;
}
.intro__body {
  align-self: end;
  padding-bottom: .8rem;
  font-family: var(--display);
  font-size: clamp(1.15rem,1.8vw,1.45rem);
  line-height: 1.35;
}
.venue-photo { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.venue-photo img { display: block; width: 100%; height: clamp(380px,58vw,760px); object-fit: cover; object-position: center 58%; }
.venue-photo figcaption { position: absolute; right: 1.5rem; bottom: 1.2rem; padding: .4rem .65rem; color: var(--paper-bright); background: rgba(16,47,41,.72); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.details {
  width: auto;
  max-width: none;
  padding-right: max(1.5rem,calc((100vw - 1280px)/2));
  padding-left: max(1.5rem,calc((100vw - 1280px)/2));
  color: var(--paper-bright);
  background: var(--ink);
}
.details .section__number {
  left: max(1.5rem,calc((100vw - 1280px)/2));
  border-color: var(--paper-bright);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.22);
  border-left: 1px solid rgba(255,255,255,.22);
}
.detail-grid article {
  position: relative;
  min-height: 250px;
  padding: 2.2rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.detail-grid__index { display: block; margin-bottom: 3rem; color: var(--coral); font-size: .7rem; font-weight: 900; }
.detail-grid h3 { margin-bottom: .7rem; font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.detail-grid p { margin-bottom: .3rem; color: rgba(255,250,240,.76); font-size: .9rem; }
.detail-grid a { display: inline-block; margin-top: .65rem; color: var(--acid); font-size: .82rem; font-weight: 800; text-underline-offset: .25em; }
.rsvp-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: clamp(4rem,7vw,6rem) max(1.5rem,calc((100vw - 1280px)/2));
  background: var(--coral);
}
.rsvp-band .eyebrow { color: var(--ink); }
.rsvp-band h2 { margin-bottom: 0; }
.rsvp-band > div:last-child { max-width: 500px; align-self: end; font-family: var(--display); font-size: 1.15rem; }
.rsvp-band .button { margin-top: 1.3rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.45rem;
  list-style: none;
}
.faq-list summary::after { content: "+"; color: var(--blue); font-family: var(--sans); font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 2rem 1.6rem 0; color: var(--ink-soft); }
footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 2rem max(1.5rem,calc((100vw - 1280px)/2));
  color: var(--paper-bright);
  background: var(--blue);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
footer p { margin: 0; }
.footer__aside { margin-left: auto; opacity: .55; }

.subpage {
  min-height: 100vh;
  padding-bottom: 6rem;
  background: radial-gradient(circle at 85% 10%,rgba(242,115,91,.16),transparent 24%),var(--paper);
}
.lookup-panel, .invitation-heading, .rsvp-form { width: min(100% - 3rem,850px); margin-right: auto; margin-left: auto; }
.lookup-panel { padding-top: clamp(5rem,12vw,10rem); }
.lookup-panel h1, .invitation-heading h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(3rem,7vw,5.25rem); line-height: 1; }
.lookup-panel > p:not(.eyebrow):not(.form-message), .invitation-heading > p:not(.eyebrow):not(.form-message) { max-width: 650px; font-family: var(--display); font-size: 1.35rem; }
.invitation-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 3rem; border: 1px solid var(--line); background: var(--line); }
.invitation-overview article { padding: 1.5rem; background: var(--paper-bright); }
.invitation-overview span { display: block; margin-bottom: 1.2rem; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.invitation-overview strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 400; line-height: 1.2; }
.invitation-overview p { margin: .55rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.invitation-heading__actions { display: flex; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.lookup-form { max-width: 630px; margin-top: 3rem; }
.lookup-form > label, .field > span {
  display: block;
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.lookup-form > div { display: flex; gap: .75rem; }
input, select, textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: rgba(255,250,240,.74);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,56,160,.13); }
.lookup-form input { max-width: 380px; font-size: 1.2rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fine-print, .field small { color: var(--ink-soft); font-size: .78rem; }
.fine-print { margin-top: 1.2rem; }
.form-message, .admin-flash, .email-warning {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--blue);
  background: rgba(255,250,240,.85);
}
.form-message--error, .email-warning { border-left-color: var(--coral); }
.invitation-heading { padding: clamp(4rem,10vw,8rem) 0 3rem; }
.rsvp-form { display: grid; gap: 1.5rem; }
.rsvp-card { padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--line); background: rgba(255,250,240,.72); }
.rsvp-card__heading { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; margin-bottom: 2rem; }
.rsvp-card__heading > span { padding-top: .4rem; border-top: 2px solid var(--ink); font-size: .7rem; font-weight: 900; }
.rsvp-card__heading .eyebrow { margin-bottom: .5rem; }
.rsvp-card h2 { margin-bottom: 0; font-size: clamp(2rem,4vw,3rem); }
.guest-list { display: grid; gap: 1rem; }
.guest-editor { margin: 0; padding: 1.4rem; border: 1px solid var(--line); }
.guest-editor legend { padding: 0 .5rem; font-family: var(--display); font-size: 1.45rem; }
.response-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.response-toggle label { display: block; cursor: pointer; }
.response-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.response-toggle span { display: block; padding: .8rem 1rem; border: 1px solid var(--line); text-align: center; font-size: .85rem; font-weight: 750; }
.response-toggle input:checked + span { border-color: var(--blue); color: var(--paper-bright); background: var(--blue); }
.guest-notes { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.2rem; }
.guest-notes[hidden] { display: none; }
.optional-guests .guest-editor:has(input[name$="_name"]:placeholder-shown) { opacity: .84; }
.field { display: block; }
.field small { display: block; margin-top: .4rem; }
.rsvp-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem;
  color: var(--paper-bright);
  background: var(--blue);
}
.rsvp-submit > div { display: flex; gap: .8rem; align-items: center; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.rsvp-submit__number { font-family: var(--display); font-size: 2.8rem; font-weight: 400; }
.rsvp-submit .button { border-color: var(--acid); color: var(--ink); background: var(--acid); }

.admin-shell { min-height: calc(100vh - 68px); padding-bottom: 6rem; background: #f7f4eb; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem max(1.5rem,calc((100vw - 1400px)/2));
  border-bottom: 1px solid var(--line);
  color: var(--paper-bright);
  background: var(--ink);
}
.admin-header > a { font-weight: 850; text-decoration: none; }
.admin-header nav { display: flex; gap: 1.5rem; }
.admin-header nav a { color: var(--acid); font-size: .78rem; font-weight: 750; text-underline-offset: .25em; }
.admin-header nav form { margin: 0; }
.admin-header nav button { padding: 0; border: 0; color: var(--acid); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 750; text-decoration: underline; text-underline-offset: .25em; }
.admin-login__shell { display: grid; min-height: 100vh; place-items: center; padding: 2rem; background: radial-gradient(circle at 85% 10%,rgba(242,115,91,.16),transparent 24%),var(--paper); }
.admin-login__card { width: min(100%, 440px); padding: clamp(2rem,6vw,4rem); border: 1px solid var(--line); background: var(--paper-bright); box-shadow: 0 20px 70px rgba(16,47,41,.1); }
.admin-login__card h1 { margin-bottom: 2rem; font-size: clamp(3rem,10vw,5rem); line-height: .95; }
.admin-login__form { display: grid; gap: 1.2rem; }
.admin-login__form .button { justify-self: start; }
.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(100% - 3rem,1400px);
  margin: 0 auto;
  padding: 5rem 0 3rem;
}
.admin-title h1 { margin-bottom: 0; font-size: clamp(3rem,6vw,4.75rem); }
.admin-title__actions { display: flex; gap: .75rem; align-items: center; }
.admin-title--narrow { max-width: 1000px; }
.admin-title--narrow p:last-child { max-width: 650px; margin: 1.3rem 0 0; font-family: var(--display); font-size: 1.3rem; }
.admin-flash { width: min(100% - 3rem,1400px); margin: 1rem auto 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  width: min(100% - 3rem,1400px);
  margin: 0 auto 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat-grid article { min-height: 170px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid article > span { display: block; font-family: var(--display); font-size: 4rem; line-height: 1; }
.stat-grid article p { margin: 1.2rem 0 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stat-grid__attention { background: var(--acid); }
.admin-table-wrap { width: min(100% - 3rem,1400px); margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper-bright); font-size: .84rem; }
.admin-table th, .admin-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.admin-table th { color: var(--ink-soft); background: var(--paper); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:first-child { min-width: 220px; white-space: normal; }
.admin-edit-link { display: flex; gap: .6rem; align-items: baseline; }
.admin-edit-link span { color: var(--blue); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.admin-table td small { display: block; margin-top: .25rem; color: var(--ink-soft); }
.admin-table em { color: #866f68; }
.status { display: inline-block; padding: .3rem .55rem; border-radius: 999px; background: #e7e3d8; font-size: .68rem; font-style: normal; font-weight: 800; text-transform: capitalize; }
.status--waiting, .status--not_delivered { background: #f5d6cc; }
.status--sent, .status--delivered_other { background: #dbe7bd; }
.table-actions { display: flex; gap: .8rem; align-items: center; }
.table-actions form { margin: 0; }
.table-button { padding: 0; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.empty-state { width: min(100% - 3rem,800px); margin: 4rem auto; padding: clamp(2rem,6vw,5rem); border: 1px solid var(--line); background: var(--paper-bright); }
.empty-state h2 { font-size: clamp(2.7rem,6vw,4.5rem); }
.empty-state > p:not(.eyebrow) { max-width: 550px; font-family: var(--display); font-size: 1.25rem; }

.upload-panel, .import-workspace { width: min(100% - 3rem,1000px); margin: 0 auto; }
.upload-drop { display: flex; min-height: 350px; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed var(--ink-soft); background: var(--paper-bright); cursor: pointer; text-align: center; }
.upload-panel input[type=file], .change-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-panel__icon { display: flex; width: 4rem; height: 4rem; align-items: center; justify-content: center; margin-bottom: 1rem; border-radius: 50%; color: var(--paper-bright); background: var(--blue); font-size: 2rem; }
.upload-drop strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.upload-drop small { margin-top: .5rem; color: var(--ink-soft); }
.import-meta { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.import-meta h2 { margin-bottom: .4rem; font-size: clamp(2.4rem,5vw,4rem); }
.import-meta p:last-child { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.import-meta--preview { margin-top: 5rem; }
.change-file { cursor: pointer; color: var(--blue); font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: .25em; }
.mapping-grid, .preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.mapping-grid label { display: flex; min-width: 0; padding: 1rem; background: var(--paper-bright); flex-direction: column; }
.mapping-grid label > span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mapping-grid label > small { overflow: hidden; margin: .25rem 0 1rem; color: var(--ink-soft); font-family: monospace; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.mapping-grid select { margin-top: auto; }
.preview-grid article { min-width: 0; padding: 1.2rem; background: var(--paper-bright); }
.preview-grid h3 { margin-bottom: .35rem; font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.preview-grid p, .preview-grid small, .preview-grid span { display: block; overflow: hidden; margin: .2rem 0; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-grid small { color: var(--ink-soft); }
.preview-grid span { margin-top: 1rem; font-weight: 750; }
.import-confirm { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding: 1.5rem; color: var(--paper-bright); background: var(--blue); }
.import-confirm p { max-width: 550px; margin: 0; font-size: .85rem; }
.import-confirm .button { border-color: var(--acid); color: var(--ink); background: var(--acid); white-space: nowrap; }

.email-warning { width: min(100% - 3rem,1000px); margin: 0 auto 2rem; }
.email-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,.72fr);
  gap: 3rem;
  width: min(100% - 3rem,1000px);
  margin: 0 auto;
}
.email-composer { display: grid; gap: 1.2rem; }
.email-composer .button { justify-self: start; }
.email-preview { padding: 2rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 40px rgba(16,47,41,.08); }
.email-preview h2 { font-size: 3.5rem; }
.email-preview hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.email-preview .button { margin-top: 1rem; pointer-events: none; }
.admin-edit-form { display: grid; gap: 1.5rem; width: min(100% - 3rem,1000px); margin: 0 auto; }
.admin-form-card { padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--line); background: var(--paper-bright); }
.admin-form-card h2 { margin-bottom: 2rem; font-size: clamp(2.2rem,5vw,3.6rem); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--wide { grid-column: 1 / -1; }
.admin-guest-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.admin-guest-row { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(360px,1.4fr) auto; gap: 1rem; align-items: start; padding: 1rem; background: var(--paper-bright); }
.admin-guest-response { display: grid; grid-template-columns: .7fr 1fr; gap: .5rem; align-items: start; }
.admin-guest-response small { color: var(--ink-soft); font-size: .72rem; }
.delete-check { padding-bottom: .8rem; color: #8f342a; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.delete-check input { width: auto; min-height: auto; }
.admin-guest-row--new { grid-template-columns: 1fr; }
.admin-form-actions { display: flex; gap: 1.5rem; align-items: center; }
.admin-form-actions > a { font-size: .8rem; font-weight: 800; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(100% - 3rem,1000px); margin: 3rem auto 0; padding: 1.5rem; border: 1px solid #b65a4e; background: #fff7f2; }
.danger-zone h2 { margin-bottom: .25rem; font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.danger-zone p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.danger-button { min-height: 2.8rem; padding: .55rem 1rem; border: 1px solid #8f342a; color: #8f342a; background: transparent; cursor: pointer; font-weight: 800; white-space: nowrap; }
.danger-zone--reset { border-color: var(--line); background: var(--paper-bright); }
.danger-zone--reset .danger-button { border-color: var(--blue); color: var(--blue); }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-header { width: min(100% - 2rem,1440px); }
  .site-header nav > a:not(.button) { display: none; }
  .hero__content { width: min(100% - 2rem,1440px); padding-top: 5rem; }
  .hero { min-height: 640px; }
  .hero h1 { font-size: clamp(3.8rem,18vw,6rem); }
  .invitation-overview { grid-template-columns: 1fr; }
  .invitation-heading__actions { align-items: flex-start; flex-direction: column; }
  .hero__orbit { right: -25vw; bottom: 2rem; width: 90vw; opacity: .4; }
  .hero__figure-label { display: none; }
  .section, .rsvp-band, .email-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { width: min(100% - 2rem,1280px); }
  .details { width: auto; padding-right: 1rem; padding-left: 1rem; }
  .details .section__number { left: 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article { min-height: 210px; }
  .rsvp-band { padding-right: 1rem; padding-left: 1rem; }
  .footer__aside { display: none; }
  .lookup-panel, .invitation-heading, .rsvp-form { width: min(100% - 2rem,850px); }
  .lookup-form > div, .hero__actions { align-items: stretch; flex-direction: column; }
  .lookup-form input { max-width: none; }
  .guest-notes, .response-toggle { grid-template-columns: 1fr; }
  .rsvp-submit { gap: 1.5rem; align-items: stretch; flex-direction: column; }
  .admin-header { padding-right: 1rem; padding-left: 1rem; }
  .admin-header nav a:not(:last-child) { display: none; }
  .admin-title { width: min(100% - 2rem,1400px); gap: 2rem; align-items: stretch; flex-direction: column; }
  .admin-title .button { align-self: flex-start; }
  .admin-title__actions { align-items: stretch; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; width: min(100% - 2rem,1400px); }
  .stat-grid article { min-height: 140px; }
  .admin-table-wrap, .upload-panel, .import-workspace, .email-layout { width: min(100% - 2rem,1400px); }
  .mapping-grid, .preview-grid { grid-template-columns: 1fr; }
  .import-confirm { align-items: stretch; flex-direction: column; }
  .admin-edit-form { width: min(100% - 2rem,1000px); }
  .admin-form-grid, .admin-guest-row { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .danger-zone { width: min(100% - 2rem,1000px); align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero__title-order { transition-duration: 700ms !important; }
}
