:root {
  --accent: #a28767;
  --accentDark: #7e664f;
  --ink: #3a3027;
  --paper: #fcf7f0;
  --panel: #fffdf9;
  --mist: #f3eadf;
  --gold: #bfa483;
  --headingFont: "Cormorant Garamond", serif;
  --bodyFont: "Inter", sans-serif;
  --shadow: 0 20px 60px rgba(63, 44, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--bodyFont);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(252, 247, 240, 0.94);
  border-bottom: 1px solid rgba(40, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

body.countdown-only .site-header {
  display: none;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--headingFont);
  text-transform: uppercase;
  z-index: 1;
}

.brand-monogram {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}


.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: 0;
  padding-left: 0;
}

.main-nav a,
.nav-link {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.nav-link:hover {
  border-color: var(--accent);
}

.main-nav a.is-active,
.nav-link.is-active {
  border-color: var(--accent);
}

.nav-link {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(40, 33, 31, 0.16);
  border-radius: 8px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.page-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 74px);
  align-items: center;
  overflow: hidden;
  background: #41362c;
  color: #fffaf4;
}

body.countdown-only .hero {
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.76), rgba(28, 25, 23, 0.22)),
    url("assets/hero-desktop.avif");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

body.countdown-only .hero-content {
  align-self: center;
}

.countdown-home {
  display: grid;
  justify-items: center;
  gap: 3rem;
}

.countdown-emblem {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  filter: brightness(0) invert(1);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 1.2rem;
  padding: 0;
}

.countdown-cell {
  min-width: 84px;
}

.countdown-value {
  display: block;
  min-height: auto;
  padding: 0;
  font-family: "Inter", var(--bodyFont), sans-serif;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: #fffaf4;
  letter-spacing: 0.08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--paper);
}

.dashboard-shell {
  width: min(1240px, 100%);
  background: var(--panel);
  border: 1px solid rgba(40, 33, 31, 0.1);
  border-radius: 16px;
  padding: 1.25rem clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow);
}

.dashboard-message {
  margin-top: 0;
  color: rgba(58, 48, 39, 0.8);
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.dashboard-section {
  margin-top: 1rem;
}

.dashboard-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.dashboard-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-card {
  padding: 0.9rem;
  border: 1px solid rgba(40, 33, 31, 0.12);
  border-radius: 12px;
  background: #fff;
}

.dashboard-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.dashboard-card p {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.dashboard-detail-card {
  margin-top: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(40, 33, 31, 0.12);
  border-radius: 12px;
  background: #fff;
}

.dashboard-detail-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.dashboard-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.dashboard-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.dashboard-empty {
  margin: 0;
  color: rgba(58, 48, 39, 0.72);
  font-size: 0.9rem;
}

.dashboard-chart {
  display: grid;
  gap: 0.6rem;
}

.dashboard-chart-row {
  display: grid;
  gap: 0.28rem;
}

.dashboard-chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.dashboard-chart-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ece4d8;
  overflow: hidden;
}

.dashboard-chart-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.progress-item {
  margin: 0.75rem 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #ece4d8;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accentDark), var(--accent));
}

@media (max-width: 900px) {
  .dashboard-shell {
    width: min(940px, 100%);
  }
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-page {
    padding: 1rem 0.75rem;
  }
  .dashboard-shell {
    border-radius: 12px;
    padding: 1rem 0.85rem;
  }
  .dashboard-actions {
    flex-wrap: wrap;
  }
}

.countdown-label {
  display: block;
  margin-top: 0.55rem;
  color: rgba(255, 250, 244, 0.86);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.33em;
  text-transform: uppercase;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--headingFont);
  line-height: 0.98;
}

h1 {
  max-width: none;
  font-size: 8rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 2rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
}

.hero-actions,
.form-actions,
.upload-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

#heroNames {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
}

#heroNames span:nth-child(2) {
  font-size: 0.58em;
  line-height: 0.88;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(126, 102, 79, 0.2);
}

.button.secondary {
  background: var(--mist);
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-copy {
  max-width: 680px;
  margin: 1rem 0 0;
  color: rgba(40, 33, 31, 0.74);
}

.details-band,
.admin-band {
  background: var(--paper);
}

.timeline-band,
.photos-band,
.photos-page {
  background: var(--mist);
}

.travel-band {
  background: #f1e6d7;
}

.travel-panels {
  display: grid;
  gap: 1rem;
}

.accommodation-section {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.faq-band {
  background: var(--paper);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(58, 48, 39, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  cursor: pointer;
  list-style: none;
}

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

.faq-item h3 {
  font-size: 1.55rem;
}

.faq-toggle {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(58, 48, 39, 0.2);
  border-radius: 50%;
  color: var(--accentDark);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.35rem;
  color: rgba(58, 48, 39, 0.74);
}

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

.info-card,
.rsvp-note,
.route-panel,
.admin-panel,
.panel-form,
.photo-uploader {
  border: 1px solid rgba(40, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.info-icon {
  width: 42px;
  padding: 0.35rem 0;
  border-bottom: 2px solid var(--accent);
  color: var(--accentDark);
  font-weight: 900;
}

.info-card p,
.route-panel p,
.rsvp-note p {
  margin: 0;
  color: rgba(40, 33, 31, 0.72);
}

.timeline.itinerary {
  position: relative;
  display: grid;
  max-width: 760px;
  margin: 0;
  margin-inline: auto;
  padding: 0.3rem 0;
  list-style: none;
  gap: 0.5rem;
}

.timeline.itinerary::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 50%;
  width: 5px;
  transform: translateX(-50%);
  background: rgba(40, 33, 31, 0.95);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0;
}

.timeline-copy {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.1rem;
  color: rgba(40, 33, 31, 0.96);
}

.timeline-copy::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.15rem;
  width: 1.2rem;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(40, 33, 31, 0.95);
}

.timeline-item.is-alternate .timeline-copy {
  grid-column: 3;
}

.timeline-item.is-alternate .timeline-copy::after {
  right: auto;
  left: -1.15rem;
}

.timeline-label {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--bodyFont);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-copy time {
  display: block;
  color: rgba(40, 33, 31, 0.95);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-node {
  grid-column: 2;
  grid-row: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(40, 33, 31, 0.95);
  border: 0;
  box-shadow: none;
  justify-self: center;
  z-index: 1;
}

.timeline-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(40, 33, 31, 0.95);
}

.split-layout,
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.route-panel,
.rsvp-note,
.admin-panel,
.panel-form,
.photo-uploader {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.route-panel ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.route-panel li {
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--mist);
  font-weight: 700;
}

.accommodation-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.accommodation-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(40, 33, 31, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.accommodation-card.is-alternate .accommodation-image-wrap {
  order: 2;
}

.accommodation-card.is-alternate .accommodation-copy {
  order: 1;
}

.accommodation-image-wrap {
  min-height: 180px;
}

.accommodation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accommodation-copy {
  padding: 1.2rem;
  display: grid;
  align-content: center;
  gap: 0.9rem;
}

.accommodation-copy h4 {
  margin: 0;
  font-family: var(--headingFont);
  font-size: 1.7rem;
}

.accommodation-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(40, 33, 31, 0.72);
}

.accommodation-meta {
  font-weight: 700;
  color: rgba(40, 33, 31, 0.8);
}

.accommodation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.accommodation-actions .button {
  min-height: 42px;
  padding: 0.7rem 0.95rem;
}

@media (min-width: 1024px) {
  .accommodation-copy {
    padding: 1.6rem 1.7rem;
    gap: 1rem;
  }

  .accommodation-copy h4 {
    font-size: 2rem;
  }

  .accommodation-copy p {
    font-size: 1.06rem;
  }

  .accommodation-meta {
    font-size: 1.02rem;
  }
}

.panel-form {
  display: grid;
  gap: 1.1rem;
}

.verification-panel {
  align-content: start;
}

.rsvp-stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.rsvp-stage.is-active {
  opacity: 1;
  transform: translateY(0);
}

.stage-note {
  margin: 0;
  color: rgba(40, 33, 31, 0.72);
  font-weight: 700;
}

.verify-success {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.5rem;
}

.verify-success p {
  margin: 0;
  font-weight: 800;
  color: var(--accentDark);
}

.verify-checkmark {
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  border: 3px solid #2f9a5d;
  border-radius: 50%;
  color: #2f9a5d;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  transform: scale(0.75);
  opacity: 0;
  animation: verify-pop 400ms ease forwards;
}

.verify-checkmark::before {
  content: "✓";
  opacity: 0;
  transform: translateY(3px);
  animation: verify-symbol 220ms ease 240ms forwards;
}

@keyframes verify-pop {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes verify-symbol {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verification-grid,
.household-form {
  display: grid;
  gap: 1.1rem;
}

.household-summary {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(40, 33, 31, 0.1);
}

.household-summary p:last-child {
  margin: 0.65rem 0 0;
  color: rgba(40, 33, 31, 0.72);
  font-weight: 800;
}

.guest-response-grid {
  display: grid;
  gap: 0.9rem;
}

.guest-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(40, 33, 31, 0.1);
  border-radius: 8px;
  background: #fff;
}

.guest-card h4 {
  margin: 0;
  font-family: var(--headingFont);
  font-size: 1.45rem;
}

.guest-card.is-declined {
  background: #f8f1e8;
}

.form-row {
  display: grid;
  gap: 1rem;
}

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

label,
legend {
  color: rgba(40, 33, 31, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

label:has(input[required])::after,
label:has(textarea[required])::after,
label:has(select[required])::after {
  content: " *";
  color: #c74242;
}

input,
select,
textarea {
  font-size: 16px;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(40, 33, 31, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.segmented-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-field legend {
  width: 100%;
  margin-bottom: 0.25rem;
}

.segmented-field label {
  position: relative;
  display: inline-flex;
  flex: 1 1 180px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(40, 33, 31, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.segmented-field input {
  position: absolute;
  opacity: 0;
}

.segmented-field label:has(input:checked) {
  border-color: var(--accent);
  background: #f4ede3;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accentDark);
}

.attendance-details {
  display: grid;
  gap: 1rem;
}

.admin-auth-panel,
.admin-controls-panel {
  max-width: 680px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accentDark);
  font-weight: 800;
}

.stage-progress {
  margin: 0;
  color: rgba(40, 33, 31, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-note {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.photo-uploader {
  display: grid;
  gap: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(40, 33, 31, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.rsvp-modal {
  width: min(100%, 1080px);
  margin: 3rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(28, 22, 20, 0.34);
}

.modal-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-size: 3.5rem;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(40, 33, 31, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.checkbox-field {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-field label {
  display: flex;
  position: relative;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(40, 33, 31, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.checkbox-field label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(162, 135, 103, 0.18), rgba(162, 135, 103, 0.38));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 260ms ease, opacity 210ms ease;
  z-index: -1;
}

.checkbox-field label > * {
  position: relative;
  z-index: 1;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox-field label:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, white);
}

.checkbox-field label:has(input:checked)::before {
  transform: scaleX(1);
  opacity: 1;
}

.other-dietary {
  display: grid;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  min-height: 230px;
  place-items: center;
  padding: 1.5rem;
  border: 2px dashed rgba(40, 33, 31, 0.2);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  cursor: default;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#cameraInput {
  pointer-events: none;
}

.upload-mark {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
}

.upload-dropzone .upload-actions {
  justify-content: center;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.photo-preview-item {
  position: relative;
  margin: 0;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 18, 16, 0.78);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.photo-name {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(40, 33, 31, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(40, 33, 31, 0.1);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .site-header {
    justify-content: space-between;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid rgba(40, 33, 31, 0.1);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-link {
    padding: 0.75rem;
    text-align: left;
  }

  .info-grid,
  .split-layout,
  .accommodation-card,
  .faq-list,
  .rsvp-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .accommodation-card.is-alternate .accommodation-image-wrap,
  .accommodation-card.is-alternate .accommodation-copy {
    order: initial;
  }

  .rsvp-note {
    position: static;
  }

  h1 {
    font-size: 5.6rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand-monogram {
    width: 56px;
    height: 56px;
  }

  .countdown-emblem {
    width: clamp(120px, 36vw, 170px);
    height: clamp(120px, 36vw, 170px);
  }

  .hero {
    min-height: calc(100vh - 68px);
  }

  .hero-photo {
    background:
      linear-gradient(180deg, rgba(28, 25, 23, 0.5), rgba(28, 25, 23, 0.82)),
      url("assets/hero-mobile.avif");
    background-position: center 28%;
    background-size: cover;
  }

  .hero-content {
    align-self: center;
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
  }

  body.countdown-only .hero-content {
    align-self: center;
    padding-bottom: 0;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  h3 {
    font-size: 1.55rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 360px);
    gap: 1rem;
    padding: 1rem 0.95rem 0.75rem;
  }

  .countdown-value {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .timeline-item {
    grid-template-columns: 1fr 28px 1fr;
    gap: 0.5rem;
  }

  .timeline-copy::after {
    width: 0.9rem;
    right: -0.9rem;
  }

  .timeline-item.is-alternate .timeline-copy::after {
    left: -0.9rem;
  }

  .timeline-label {
    font-size: 0.9rem;
  }

  .timeline-copy time {
    font-size: 0.85rem;
  }

  .timeline-icon {
    font-size: 2rem;
  }

  .button {
    width: 65%;
  }

  .upload-actions {
    justify-content: center;
  }

  .rsvp-modal {
    margin: 0;
  }

  .modal-header h2 {
    font-size: 2.65rem;
  }
}
