:root {
  --surface: #fbfaf8;
  --surface-low: #f4f2ef;
  --surface-container: #ffffff;
  --surface-muted: #f3f2ef;
  --text: #191317;
  --text-soft: #625d64;
  --outline: #ded8e5;
  --ochre: #d7bd78;
  --ochre-strong: #8b6e2f;
  --ochre-hover: #c9ad67;
  --lavender: #e7def2;
  --lavender-ink: #6d4a8f;
  --lavender-deep: #5a3b7b;
  --sage: #dce8d7;
  --sage-ink: #2f5d3d;
  --shadow: 0 14px 38px rgba(70, 52, 91, 0.1);
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-sans: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--lavender-ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px max(28px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(222, 216, 229, 0.72);
  background: rgba(251, 250, 248, 0.94);
  box-shadow: 0 1px 18px rgba(25, 19, 23, 0.05);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lavender-deep);
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle span[aria-hidden="true"] {
  position: relative;
  width: 16px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-toggle span[aria-hidden="true"]::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  border-top: 2px solid currentColor;
  content: "";
}

.site-nav a,
.nav-action,
.site-footer a {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--lavender-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-nav a:hover,
.nav-action:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-action {
  justify-self: end;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lavender-deep);
  color: white;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-content: center;
  place-items: center;
  row-gap: clamp(30px, 7vh, 72px);
  overflow: hidden;
  padding: 112px 16px 64px;
  background: var(--surface-low);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(11, 8, 12, 0.48), rgba(11, 8, 12, 0.18) 46%, rgba(11, 8, 12, 0.5)),
    radial-gradient(circle at 50% 42%, rgba(215, 189, 120, 0.08), rgba(25, 19, 23, 0.42));
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 780px;
  padding: 0 16px;
  color: white;
  text-align: center;
}

.eyebrow,
.panel-label {
  margin: 0 0 12px;
  color: var(--ochre-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-copy {
  color: rgba(255, 255, 255, 0.9);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  max-width: 16ch;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 1rem;
}

.hero-date {
  margin: 8px 0 0;
  color: white;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-style: italic;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--lavender-deep);
  color: white;
}

.button-primary:hover {
  background: #4a2f68;
}

.button-secondary {
  border: 1px solid var(--sage);
  background: transparent;
  color: white;
}

.button-secondary:hover {
  border-color: white;
}

.button-secondary-dark {
  border: 1px solid var(--sage-ink);
  background: transparent;
  color: var(--sage-ink);
}

.button-secondary-dark:hover {
  border-color: var(--ochre-strong);
  color: var(--ochre-strong);
}

.button-quiet {
  background: transparent;
  color: var(--text-soft);
}

.button-quiet:hover {
  color: var(--text);
}

.button-danger {
  background: #8d2f35;
}

.button-danger:hover {
  background: #74262b;
}

.countdown-panel {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100% - 32px));
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 4vw, 40px);
}

.countdown div {
  min-width: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: center;
}

.countdown strong {
  display: block;
  color: white;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.countdown span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.section,
.section-band {
  padding: 104px 16px;
}

.page-hero {
  padding: 168px 16px 88px;
  background:
    linear-gradient(135deg, rgba(225, 219, 255, 0.7), rgba(183, 200, 176, 0.52)),
    var(--surface);
}

.page-hero h1 {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.story-hero,
.party-hero {
  padding: 168px 16px 92px;
}

.story-hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 248, 0.92), rgba(251, 250, 248, 0.58)),
    url("assets/farm-hero.svg") center / cover;
}

.story-hero-grid,
.party-hero-grid,
.story-snapshot-grid,
.party-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
}

.story-hero h1,
.party-hero h1 {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 5.8rem);
  text-shadow: none;
}

.story-note {
  align-self: end;
  padding: 24px;
  border-left: 3px solid var(--ochre);
  background: rgba(251, 250, 248, 0.82);
}

.story-note p,
.story-chapter p,
.story-snapshot-grid p,
.party-hero-copy p,
.party-sidebar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.party-hero-copy {
  display: grid;
  gap: 14px;
}

.party-hero-copy .party-refresh-hint {
  color: color-mix(in srgb, var(--text-soft) 72%, transparent);
  font-size: 0.95rem;
}

.story-chapter-section {
  background: var(--surface);
}

.story-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--outline);
  border-left: 1px solid var(--outline);
}

.story-chapter {
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  background: var(--surface-container);
}

.story-chapter span {
  display: block;
  margin-bottom: 80px;
  color: var(--sage-ink);
  font-size: 13px;
  font-weight: 800;
}

.story-chapter h2 {
  max-width: 9ch;
  margin-bottom: 18px;
  color: var(--lavender-deep);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-style: italic;
}

.story-snapshot-section {
  overflow: hidden;
}

.snapshot-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-1.5deg);
}

.snapshot-board span {
  display: grid;
  place-items: end start;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  background:
    linear-gradient(0deg, rgba(25, 19, 23, 0.32), rgba(25, 19, 23, 0.02)),
    url("assets/farm-hero.svg") center / cover;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.snapshot-board span:nth-child(2),
.snapshot-board span:nth-child(3) {
  transform: translateY(28px);
}

.party-hero {
  background:
    linear-gradient(135deg, rgba(220, 232, 215, 0.9), rgba(231, 222, 242, 0.72)),
    var(--surface);
}

.party-section {
  background:
    linear-gradient(90deg, var(--surface-muted) 0 30%, var(--surface) 30% 100%);
}

.party-layout {
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  align-items: start;
}

.party-layout .bio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  row-gap: 42px;
}

.party-sidebar {
  position: sticky;
  top: 112px;
}

.party-sidebar h2 {
  margin-bottom: 18px;
  color: var(--lavender-deep);
  font-style: italic;
}

.story-snapshot-grid h2 {
  margin-bottom: 18px;
}

.party-card {
  width: 328px;
  max-width: 100%;
  min-height: 360px;
  justify-self: center;
  padding: 24px;
}

.party-photo {
  display: block;
  width: 232px;
  max-width: 100%;
  height: 270px;
  margin-inline: auto;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--surface-low);
  object-fit: cover;
}

.party-card:nth-child(even) {
  transform: translateY(34px);
}

@media (min-width: 1180px) {
  .party-card:nth-child(even) {
    transform: none;
  }

  .party-card:nth-child(3n + 2) {
    transform: translateY(24px);
  }

  .party-card:nth-child(3n) {
    transform: translateY(48px);
  }
}

section[id] {
  scroll-margin-top: 120px;
}

.section-muted {
  background: var(--surface-muted);
}

.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.intro {
  position: relative;
  background: var(--surface);
  border-bottom: 0;
}

.intro::before {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 52px;
  width: 112px;
  height: 120px;
  opacity: 0.38;
  /* background:
    linear-gradient(var(--surface), var(--surface)) 38px 52px / 44px 48px no-repeat,
    radial-gradient(ellipse at 32px 30px, transparent 0 23px, var(--sage) 24px 39px, transparent 40px),
    radial-gradient(ellipse at 82px 28px, transparent 0 23px, var(--sage) 24px 39px, transparent 40px);
  border-bottom: 14px solid var(--sage); */
  content: "";
}

.centered-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.centered-section h2,
.section-heading-centered h2 {
  color: var(--lavender-deep);
  font-style: italic;
}

.centered-section>p {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--text-soft);
}

.botanical-mark-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: 22px;
}

.botanical-mark-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lavender-deep);
  cursor: pointer;
}

.botanical-mark-button:focus-visible {
  background: rgba(231, 222, 242, 0.62);
}

.botanical-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.dog-nose-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(205, 198, 183, 0.82);
  border-radius: 8px;
  background: var(--surface-container);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.35;
  transform: translateX(-50%);
  z-index: 2;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(760px, 100%);
  margin-top: 56px;
}

.info-card {
  display: grid;
  justify-items: start;
  min-height: 172px;
  padding: 28px 32px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  background: white;
  text-align: left;
}

.info-card h3 {
  margin-top: 16px;
  font-size: 1.35rem;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.info-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: var(--sage-ink);
}

.info-icon-venue::before {
  position: absolute;
  inset: 2px 5px 6px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  content: "";
}

.info-icon-time {
  border: 2px solid var(--ochre-strong);
  border-radius: 50%;
}

.info-icon-time::before {
  position: absolute;
  left: 7px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: var(--ochre-strong);
  content: "";
}

.info-icon-time::after {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 2px;
  background: var(--ochre-strong);
  content: "";
}

.intro-grid,
.split-layout,
.dress-grid,
.faq-layout,
.rsvp-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.intro-grid p,
.story-copy p,
.dress-grid p,
.faq-layout p,
.rsvp-panel p {
  margin-top: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  color: var(--text-soft);
}

.timeline,
.bio-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.moment-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.moment-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: url("assets/farm-hero.svg") center / cover, var(--surface-low);
}

.moment-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25, 19, 23, 0.46), rgba(25, 19, 23, 0.03));
  content: "";
}

.moment-card button {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(251, 250, 248, 0.92);
  color: var(--lavender-deep);
  font-size: 12px;
  font-weight: 800;
}

.timeline article,
.bio-card,
.dress-card,
.action-card,
.info-panel {
  padding: 24px;
  border: 1px solid rgba(205, 198, 183, 0.76);
  border-radius: 6px;
  background: var(--surface-container);
  box-shadow: none;
}

.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--lavender-ink);
  font-size: 13px;
  font-weight: 800;
}

.timeline p,
.bio-card p,
.dress-card li,
.action-card p,
.info-panel p {
  color: var(--text-soft);
}

.action-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.action-card .button {
  justify-self: start;
}

.registry-intro {
  display: grid;
  gap: 14px;
}

.registry-intro p {
  margin: 0;
}

.registry-section {
  background: linear-gradient(180deg, var(--surface), var(--surface-low));
}

.registry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: 22px;
  align-items: stretch;
}

.registry-fund-card,
.registry-direct-card,
.registry-card-note,
.registry-qr-card {
  border: 1px solid rgba(205, 198, 183, 0.76);
  border-radius: 8px;
  background: var(--surface-container);
}

.registry-fund-card,
.registry-direct-card,
.registry-card-note {
  padding: clamp(24px, 4vw, 40px);
}

.registry-fund-card {
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(231, 222, 242, 0.74), rgba(220, 232, 215, 0.48)),
    var(--surface-container);
}

.registry-fund-card h2,
.registry-direct-card h2,
.registry-card-note h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.registry-fund-card p,
.registry-direct-card p,
.registry-card-note p,
.registry-qr-card p {
  margin: 0;
  color: var(--text-soft);
}

.registry-fund-card .button {
  justify-self: start;
  margin-top: 4px;
}

.registry-note {
  font-size: 0.95rem;
}

.registry-note-emphasis {
  /* color: var(--text); */
  font-weight: 500;
}

.registry-direct-card {
  display: grid;
  gap: 20px;
}

.registry-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.registry-qr-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
}

.registry-qr-card h3 {
  margin: 0;
}

.registry-qr-image {
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border: 10px solid var(--surface-container);
  border-radius: 6px;
  background: white;
  object-fit: contain;
}

.qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 10px solid var(--surface-container);
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--text) 12px, transparent 12px 22px, var(--text) 22px 34px, transparent 34px),
    linear-gradient(var(--text) 12px, transparent 12px 22px, var(--text) 22px 34px, transparent 34px),
    radial-gradient(circle at 22% 22%, var(--surface-container) 0 18px, var(--text) 19px 36px, transparent 37px),
    radial-gradient(circle at 78% 22%, var(--surface-container) 0 18px, var(--text) 19px 36px, transparent 37px),
    radial-gradient(circle at 22% 78%, var(--surface-container) 0 18px, var(--text) 19px 36px, transparent 37px),
    var(--surface-low);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%, 100% 100%, auto;
}

.qr-placeholder-alt {
  background-position: 18px 8px, 0 18px, 0 0, 0 0, 0 0, 0 0;
}

.registry-card-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  background: var(--sage);
}

.dress-card h3 {
  margin-bottom: 18px;
}

.dress-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dress-card li {
  position: relative;
  padding-left: 24px;
}

.dress-card li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  content: "";
}

.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lavender), var(--sage));
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 24px;
}

.bio-card .panel-label {
  color: var(--sage-ink);
}

.empty-state {
  background: var(--surface-low);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-container);
}

summary {
  cursor: pointer;
  padding: 20px 48px 20px 20px;
  color: var(--text);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.rsvp-disabled-layout {
  max-width: 760px;
}

.rsvp-disabled-panel {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(205, 198, 183, 0.76);
  border-radius: 8px;
  background: var(--surface-container);
  box-shadow: var(--shadow);
}

.rsvp-disabled-panel h2,
.rsvp-disabled-panel p {
  margin: 0;
}

.rsvp-form {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(205, 198, 183, 0.76);
  border-radius: 8px;
  background: var(--surface-container);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.form-grid>label {
  align-content: start;
  align-self: start;
}

.field-label {
  display: inline;
}

.required-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.required-marker {
  color: var(--ochre-strong);
  font-weight: 900;
}

.field-error {
  margin: -2px 0 0;
  color: #9a2f2f;
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  margin-top: -2px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.invite-lookup {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.rsvp-details {
  display: grid;
  gap: 20px;
}

.guest-selection fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(222, 216, 229, 0.88);
  border-radius: 8px;
  background: var(--surface);
}

.guest-selection legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 900;
}

.guest-selection.is-disabled {
  opacity: 0.68;
}

.guest-options {
  display: grid;
  gap: 10px;
}

.guest-option {
  display: grid;
  gap: 12px;
}

.guest-option label {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(222, 216, 229, 0.72);
  border-radius: 8px;
  background: var(--surface-low);
  font-weight: 800;
}

.guest-option input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--sage-ink);
}

.plus-one-name {
  margin-left: 30px;
  background: var(--surface-container);
}

.guest-count {
  margin: 0;
  color: var(--sage-ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--lavender-ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 8px;
}

input::placeholder,
textarea::placeholder {
  color: #8f8794;
  font-style: italic;
  opacity: 1;
}


textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ochre-strong);
  outline: 2px solid rgba(212, 194, 142, 0.45);
  outline-offset: 2px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #9a2f2f;
  background: #fff8f7;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--sage-ink);
  font-weight: 700;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-low);
  color: var(--lavender-ink);
}

.status-chip {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--lavender);
  color: var(--lavender-ink);
  font-size: 13px;
  font-weight: 800;
}

.section-rsvp {
  background: var(--sage);
}

.rsvp-panel {
  align-items: center;
  padding: 36px;
  border-radius: 8px;
  background: rgba(250, 249, 246, 0.82);
}

.rsvp-panel .button {
  justify-self: end;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 82px 16px 56px;
  color: var(--text-soft);
  background: var(--surface);
  text-align: center;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--lavender-deep);
}

.site-footer p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.site-footer .footer-credit,
.site-footer .footer-credit a {
  color: color-mix(in srgb, var(--text-soft) 68%, transparent);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
}

.site-footer .footer-credit {
  margin-top: 8px;
}

.site-footer .footer-credit a {
  text-decoration: none;
}

.site-footer .footer-credit a:hover {
  color: var(--text-soft);
}

.admin-shell {
  min-height: 100vh;
  padding: 72px 16px;
  background: var(--surface-muted);
}

.admin-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-container);
}

.admin-panel h1 {
  color: var(--lavender-deep);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.admin-login-copy {
  max-width: 560px;
}

.admin-login-copy p:last-child,
.admin-session-copy {
  margin-bottom: 0;
  color: var(--text-soft);
}

.admin-login {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-low);
}

.admin-login .form-actions {
  margin-top: 4px;
}

.admin-page-status {
  margin-top: 18px;
}

.admin-dashboard[hidden],
.admin-summary[hidden],
.admin-filters[hidden],
.household-admin[hidden] {
  display: none;
}

.admin-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-dashboard-actions {
  justify-content: flex-end;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface-low);
}

.admin-tab {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-tab.is-active {
  background: var(--lavender-deep);
  color: white;
}

.admin-tab span {
  margin-left: 6px;
  opacity: 0.82;
}

.admin-tab-panel {
  margin-top: 22px;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.summary-card {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(222, 216, 229, 0.88);
  border-radius: 8px;
  background: var(--surface);
}

.summary-card span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  color: var(--lavender-deep);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.household-admin {
  margin-top: 0;
}

.admin-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.admin-section-heading h2 {
  margin: 0;
  color: var(--lavender-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.admin-section-heading p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.household-heading-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.form-hint {
  margin: -10px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 16px;
  align-items: end;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-low);
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sage-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--outline);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--lavender-deep);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-table tr.is-changed {
  background: rgba(220, 232, 215, 0.42);
}

.admin-table tr.is-archived {
  background: rgba(244, 242, 239, 0.82);
  color: var(--text-soft);
}

.admin-name-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.change-badge,
.archive-badge,
.attendance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.change-badge {
  background: var(--sage);
  color: var(--sage-ink);
}

.archive-badge {
  background: var(--surface-low);
  color: var(--text-soft);
}

.attendance-pill {
  border: 1px solid currentColor;
}

.attendance-yes {
  color: var(--sage-ink);
}

.attendance-no {
  color: #8d2f35;
}

.attendance-unsure {
  color: var(--ochre-strong);
}

.admin-note {
  margin: 0 0 6px;
}

.admin-note:last-child {
  margin-bottom: 0;
}

.muted-text {
  color: var(--text-soft);
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-container);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(25, 19, 23, 0.22);
}

.admin-dialog::backdrop {
  background: rgba(25, 19, 23, 0.42);
}

.admin-edit-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.admin-edit-form h2 {
  margin: 0;
  color: var(--lavender-deep);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.prompt-context {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-low);
}

.prompt-context span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.prompt-context p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.admin-confirm-dialog {
  width: min(560px, calc(100% - 32px));
}

.archive-confirm-field[hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 100vh;
    padding-top: 148px;
  }

  section[id] {
    scroll-margin-top: 168px;
  }

  .countdown-panel {
    margin-top: 32px;
  }

  .admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(222, 216, 229, 0.88);
    border-radius: 8px;
    background: rgba(251, 250, 248, 0.98);
    box-shadow: 0 16px 32px rgba(25, 19, 23, 0.12);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
  }

  .site-nav a[aria-current="page"] {
    background: var(--lavender);
    text-decoration: none;
  }

  .nav-action {
    padding-inline: 14px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 112px;
  }

  .page-hero,
  .story-hero,
  .party-hero {
    padding-top: 128px;
  }
}

@media (max-width: 860px) {

  .intro-grid,
  .split-layout,
  .dress-grid,
  .faq-layout,
  .rsvp-panel,
  .timeline,
  .bio-grid,
  .action-grid,
  .registry-layout,
  .registry-card-note,
  .form-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .story-hero-grid,
  .party-hero-grid,
  .story-snapshot-grid,
  .story-chapter-grid {
    grid-template-columns: 1fr;
  }

  .moment-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .moment-card {
    min-height: 260px;
  }

  .party-section {
    background: var(--surface);
  }

  .party-layout,
  .party-layout .bio-grid {
    grid-template-columns: 1fr;
  }

  .story-chapter-grid {
    border-left: 0;
  }

  .story-chapter {
    min-height: 0;
    border-left: 1px solid var(--outline);
  }

  .story-chapter span {
    margin-bottom: 36px;
  }

  .party-sidebar {
    position: static;
    padding-bottom: 8px;
  }

  .party-card:nth-child(even),
  .party-card:nth-child(3n + 2),
  .party-card:nth-child(3n),
  .snapshot-board span:nth-child(2),
  .snapshot-board span:nth-child(3) {
    transform: none;
  }

  .rsvp-panel .button {
    justify-self: start;
  }

  .registry-card-note {
    align-items: start;
  }

  .admin-login-card {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-actions {
    justify-content: flex-start;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    padding: 8px;
    border: 1px solid rgba(222, 216, 229, 0.72);
    border-radius: 999px;
  }

  .site-nav a,
  .nav-action,
  .menu-toggle {
    font-size: 13px;
  }

  .brand-mark {
    font-size: 22px;
  }

  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    padding: 10px 6px;
  }

  .moment-card {
    min-height: 210px;
  }

  .moment-card button {
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    white-space: normal;
  }

  .section,
  .section-band {
    padding: 64px 16px;
  }

  .rsvp-panel {
    padding: 24px;
  }

  .registry-qr-grid {
    grid-template-columns: 1fr;
  }

  .registry-fund-card .button {
    justify-self: stretch;
  }

  .admin-panel {
    padding: 24px 18px;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
