/* Edmund & Sylvia — wedding site styles */

:root {
  /* Palette: ivory ground, blush florals, sage-gray foliage, gold hairlines */
  --ivory: #fbf8f1;
  --paper: #fffefa;
  --sand: #f3ede1;
  --blush: #ebcfcb;
  --blush-soft: #f8ebe8;
  --blush-deep: #a8686b;
  --sage: #8e9a8f;
  --sage-soft: #e6eae4;
  --sage-deep: #56635a;
  --gold: #967538;
  --gold-soft: #e8dcc0;
  --ink: #3a3f3b;
  --muted: #6c726d;
  --line: #e7dfcf;
  --on-dark: #f4f1ea;
  --header-bg: rgba(251, 248, 241, 0.92);
  --shadow-rgb: 58, 63, 59;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.04), 0 8px 28px rgba(var(--shadow-rgb), 0.07);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: var(--sage-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blush-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 500;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.monogram {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.monogram em {
  font-style: italic;
  color: var(--gold);
  padding: 0 0.12em;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blush-deep);
  border-color: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, var(--paper) 0%, var(--ivory) 55%, var(--sand) 130%);
}

.corner {
  position: absolute;
  width: min(46vw, 520px);
  pointer-events: none;
  user-select: none;
}

.corner.tl {
  top: 0;
  left: 0;
}

.corner.br {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.corner.tr {
  top: 0;
  right: 0;
  transform-origin: 50% 50%;
  transform: scaleX(-1);
  width: min(30vw, 340px);
  opacity: 0.9;
}

.corner.bl {
  bottom: 0;
  left: 0;
  transform-origin: 50% 50%;
  transform: scaleY(-1);
  width: min(30vw, 340px);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--sage-deep);
}

.names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  line-height: 0.95;
  margin: 0.15em 0 0.25em;
  letter-spacing: -0.01em;
}

.names .amp {
  display: block;
  font-style: italic;
  color: var(--gold);
  font-size: 0.55em;
  line-height: 1.2;
}

.full-names {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8em;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-style: italic;
  margin: 0;
}

.hero-place {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0.3em 0 2em;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 34px);
  margin: 0 0 2.4em;
}

.countdown div {
  min-width: 64px;
}

.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown small {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--paper);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--blush-deep);
  border-color: var(--blush-deep);
  color: var(--paper);
}

.btn:active {
  transform: scale(0.97);
}

.btn.ghost {
  background: transparent;
  color: var(--sage-deep);
}

.btn.ghost:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  position: relative;
  text-align: center;
  padding: 88px 24px 64px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--ivory));
  border-bottom: 1px solid var(--line);
}

.page-hero .corner {
  width: min(38vw, 360px);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.page-hero p {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
}

.page-hero .eyebrow {
  position: relative;
  z-index: 2;
}

/* ---------- Sections ---------- */

section {
  padding: 84px 0;
}

section.tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--muted);
}

.divider {
  width: 220px;
  margin: 0 auto 26px;
  opacity: 0.9;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

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

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card .eyebrow {
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.fact {
  text-align: center;
}

.fact .big {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 0.3em;
}

.fact p {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  position: relative;
  background: var(--blush-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
  border: 1px solid var(--blush);
}

.callout h3 {
  color: var(--blush-deep);
}

.callout.green {
  background: var(--sage-soft);
  border-color: var(--sage-soft);
}

.callout.green h3 {
  color: var(--sage-deep);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.tbd {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush-deep);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Agent card ---------- */

.agent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.agent-name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.1em;
}

.agent-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 300px;
}

.agent-links .btn {
  text-align: center;
}

@media (max-width: 700px) {
  .agent {
    grid-template-columns: 1fr;
  }

  .agent-links {
    min-width: 0;
  }
}

/* ---------- Timeline (schedule) ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.event {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 40px;
  padding: 0 0 44px;
  position: relative;
}

.event::before {
  content: "";
  position: absolute;
  left: 125px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
}

.event.feature::before {
  background: var(--blush-deep);
  border-color: var(--blush-deep);
  box-shadow: 0 0 0 5px var(--blush-soft);
}

.event-date {
  text-align: right;
  padding-right: 22px;
}

.event-date .day {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.event-date .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.1;
  display: block;
}

.event-date .mon {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.event-body h3 {
  margin-bottom: 0.2em;
}

.event.feature .event-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.event.feature h3 {
  font-size: 2rem;
  color: var(--blush-deep);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.7em;
}

.meta span::before {
  content: "·";
  margin-right: 18px;
  color: var(--line);
}

.meta span:first-child::before {
  content: none;
}

.attire {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .timeline::before {
    left: 6px;
  }

  .event {
    grid-template-columns: 1fr;
    padding-left: 30px;
  }

  .event::before {
    left: 1px;
  }

  .event-date {
    text-align: left;
    padding: 0 0 8px;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }

  .event-date .num {
    font-size: 1.5rem;
  }
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 620px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ivory);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border-bottom: 0;
}

td .room {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  line-height: 1.25;
}

td .sub {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  table.rates {
    min-width: 0;
  }

  table.rates thead {
    display: none;
  }

  table.rates tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  table.rates tr:last-child {
    border-bottom: 0;
  }

  table.rates td {
    padding: 0;
    border: 0;
  }

  table.rates td:first-child {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  table.rates td.num {
    text-align: left;
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.2;
  }

  table.rates td.num::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---------- Deadlines ---------- */

.deadlines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.deadlines li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.deadlines .when {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--gold);
}

.deadlines .what strong {
  display: block;
  font-weight: 500;
}

.deadlines .what span {
  color: var(--muted);
  font-size: 0.93rem;
}

@media (max-width: 560px) {
  .deadlines li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Lists ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6em;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: rotate(-45deg) translateY(-50%);
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--ink);
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group > h2 {
  font-size: 1.9rem;
  margin-bottom: 0.6em;
}

/* ---------- Placeholder pages ---------- */

.placeholder {
  text-align: center;
  padding: 56px 32px;
}

.placeholder img {
  width: 150px;
  margin: 0 auto 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-grid .ph {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 10px, var(--ivory) 10px, var(--ivory) 20px);
  border: 1px solid var(--line);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  text-align: center;
  padding: 72px 24px 48px;
  background: var(--sage-deep);
  color: var(--on-dark);
  overflow: hidden;
}

.site-footer .monogram {
  color: var(--paper);
  font-size: 2.4rem;
}

.site-footer .monogram em {
  color: var(--gold-soft);
}

.site-footer p {
  margin: 0.4em 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--paper);
}

.site-footer .small {
  margin-top: 28px;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .corner {
    animation: sway 9s ease-in-out infinite alternate;
    transform-origin: 0 0;
  }

  .hero .corner.br {
    animation-name: sway-br;
    transform-origin: 50% 50%;
  }

  .hero .corner.tr,
  .hero .corner.bl {
    animation: none;
    transform-origin: 50% 50%;
  }
}

@keyframes sway {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1.4deg);
  }
}

@keyframes sway-br {
  from {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(181.4deg);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .corner {
    width: 58vw;
  }

  .hero {
    padding: 150px 16px 170px;
  }

  .corner.tr,
  .corner.bl {
    display: none;
  }

  .page-hero .corner {
    width: 48vw;
    opacity: 0.55;
  }

  .page-hero .corner.br {
    display: none;
  }

  .card {
    padding: 24px 20px;
  }
}

/* ---------- Pages (one file, one page shown at a time) ---------- */

.js .page {
  display: none;
}

.js .page.active {
  display: block;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 64px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* ---------- Copy-to-clipboard contact rows ---------- */

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  min-width: 0;
}

.contact-row .value {
  font-size: 0.95rem;
  min-width: 0;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.copy:hover {
  background: var(--blush-deep);
  border-color: var(--blush-deep);
}

.copy.done {
  background: var(--gold);
  border-color: var(--gold);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- RSVP ---------- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rsvp-btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rsvp-btn:hover {
  background: var(--blush-deep);
  border-color: var(--blush-deep);
}

.rsvp-btn:active {
  transform: scale(0.97);
}

@media (min-width: 901px) and (max-width: 1080px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    letter-spacing: 0.1em;
  }
}

.rsvp {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  background: var(--blush-soft);
  border-top: 1px solid var(--blush);
  scroll-margin-top: 68px;
}

.rsvp .corner {
  width: min(34vw, 330px);
  opacity: 0.9;
}

.rsvp-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.rsvp .section-head {
  margin-bottom: 32px;
}

.rsvp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 0;
  margin-bottom: 8px;
}

.field input[type="text"],
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--sage-deep) 50%), linear-gradient(135deg, var(--sage-deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input[type="text"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field input[aria-invalid="true"] {
  border-color: var(--blush-deep);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field .choice {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink);
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice span {
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ivory);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice:hover span {
  border-color: var(--sage);
}

.choice input:checked + span {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.field-error {
  margin: 0;
  font-size: 0.88rem;
  color: var(--blush-deep);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-submit {
  width: 100%;
  padding-block: 17px;
}

.rsvp-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--blush-deep);
  min-height: 1.4em;
}

.form-status:empty {
  display: none;
}

.rsvp-thanks {
  text-align: center;
  justify-items: center;
  gap: 10px;
}

.rsvp-thanks img {
  width: 120px;
}

.rsvp-thanks h3 {
  font-size: 2rem;
  margin: 0;
}

.rsvp-thanks p {
  margin: 0 0 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .rsvp {
    padding-block: 72px;
  }

  .rsvp .corner {
    width: 44vw;
    opacity: 0.5;
  }

  .rsvp-card {
    padding: 26px 20px;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .rsvp-btn {
    padding: 8px 14px;
  }
}
