:root {
  --wine: #5a0f1b;
  --deep-wine: #3a0710;
  --champagne-gold: #c49a4a;
  --soft-gold: #e6c878;
  --ivory-white: #fff9f1;
  --warm-cream: #f7eedf;
  --charcoal-text: #1f1a17;
  --muted-brown: #7a5c45;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  image-orientation: from-image;
}

section {
  scroll-margin-top: 88px;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.35rem, 5.5vw, 4.15rem);
  font-weight: 600;
  line-height: 1;
  color: var(--wine);
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.72);
  border-radius: 50%;
  background: rgba(255, 249, 241, 0.82);
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

#site-header.is-scrolled {
  border-bottom: 1px solid rgba(196, 154, 74, 0.35);
  background: rgba(255, 249, 241, 0.94);
  backdrop-filter: blur(18px);
}

.nav-link {
  position: relative;
  color: var(--deep-wine);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  background: var(--champagne-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-menu {
  margin-bottom: 1rem;
  border: 1px solid rgba(196, 154, 74, 0.35);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.98);
  padding: 1rem;
}

.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.85rem 0.2rem;
  color: var(--deep-wine);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--ivory-white);
}

.btn-primary:hover {
  border-color: var(--champagne-gold);
  background: var(--deep-wine);
}

.btn-outline {
  border: 1px solid rgba(196, 154, 74, 0.9);
  color: var(--wine);
}

.btn-outline:hover {
  background: rgba(196, 154, 74, 0.12);
}

.btn-gold {
  border: 1px solid var(--soft-gold);
  background: var(--champagne-gold);
  color: var(--deep-wine);
}

.btn-outline-light {
  border: 1px solid rgba(230, 200, 120, 0.78);
  color: var(--ivory-white);
}

.btn-outline-light:hover {
  background: rgba(230, 200, 120, 0.13);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(196, 154, 74, 0.58);
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255, 249, 241, 0.78);
}

.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 8% 22%, rgba(196, 154, 74, 0.19), transparent 28%),
    radial-gradient(circle at 92% 15%, rgba(90, 15, 27, 0.12), transparent 26%),
    linear-gradient(135deg, var(--ivory-white), #fff4e1 55%, var(--warm-cream));
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  border: 1px solid rgba(196, 154, 74, 0.32);
  border-radius: 50%;
  content: "";
}

.hero-section::before {
  width: 44vw;
  height: 44vw;
  right: -18vw;
  top: 12%;
}

.hero-section::after {
  width: 28vw;
  height: 28vw;
  left: -12vw;
  bottom: 6%;
}

.ampersand {
  display: inline-block;
  color: var(--champagne-gold);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  transform: translateY(-0.03em);
}

.hero-title {
  white-space: nowrap;
  font-size: clamp(3.15rem, 9.8vw, 8rem);
  letter-spacing: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  justify-content: center;
}

.hero-photo-wrap {
  position: relative;
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.55);
  border-radius: 999px 999px 8px 8px;
  background: var(--warm-cream);
  padding: 0.45rem;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 999px 999px 6px 6px;
  filter: saturate(0.9) contrast(1.02);
}

.floating-logo {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: min(44%, 220px);
  border: 1px solid rgba(230, 200, 120, 0.65);
  border-radius: 50%;
  background: rgba(255, 249, 241, 0.84);
  padding: 0.7rem;
  animation: floatLogo 5s ease-in-out infinite;
}

.gold-ring {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(196, 154, 74, 0.72);
  border-radius: 50%;
}

.gold-ring::after {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(90, 15, 27, 0.36);
  border-radius: 50%;
  content: "";
}

.section-intro {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.section-intro h2 {
  margin-top: 0.35rem;
}

.section-intro p:not(.script-label) {
  margin-top: 1.3rem;
  color: var(--muted-brown);
  font-size: 1rem;
  line-height: 1.9;
}

.script-label {
  color: var(--champagne-gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.25rem, 4.8vw, 3.55rem);
  line-height: 1.05;
}

.section-copy {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
}

.details-title {
  white-space: nowrap;
  font-size: clamp(2.05rem, 4.8vw, 4rem);
  font-weight: 700;
}

.icon-orb {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.35rem;
  place-items: center;
  border: 1px solid rgba(196, 154, 74, 0.5);
  border-radius: 50%;
  color: var(--champagne-gold);
  background: rgba(255, 249, 241, 0.72);
}

.icon-orb.dark {
  background: rgba(255, 249, 241, 0.08);
}

.count-card,
.detail-card,
.location-card,
.form-panel,
.gift-card,
.admin-card,
.admin-stats article {
  border: 1px solid rgba(196, 154, 74, 0.36);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.86);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.count-card:hover,
.detail-card:hover,
.location-card:hover,
.gift-card:hover,
.admin-card:hover {
  border-color: rgba(196, 154, 74, 0.92);
  transform: translateY(-5px);
}

.count-card {
  min-height: 152px;
  padding: 1.3rem 0.8rem;
  text-align: center;
}

.count-card span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--wine);
}

.count-card small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted-brown);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.couple-pyramid {
  display: grid;
  grid-template-columns: 0.72fr 0.9fr 1.14fr 0.9fr 0.72fr;
  align-items: end;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  margin: 3.2rem auto 0;
  max-width: 1040px;
}

.couple-pyramid-item {
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.44);
  border-radius: 8px;
  background: var(--ivory-white);
  margin: 0;
}

.couple-pyramid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.couple-pyramid-item.side-low {
  height: clamp(180px, 22vw, 280px);
}

.couple-pyramid-item.side-mid {
  height: clamp(240px, 30vw, 390px);
}

.couple-pyramid-item.center {
  height: clamp(340px, 44vw, 560px);
}

.promise-section {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.88), rgba(247, 238, 223, 0.92)),
    var(--ivory-white);
}

.mini-photo-stack {
  position: relative;
  min-height: 420px;
}

.mini-photo-stack img,
.blessing-images img {
  display: block;
  height: auto;
  border: 1px solid rgba(196, 154, 74, 0.44);
  border-radius: 8px;
  background: var(--ivory-white);
}

.mini-photo-stack img:first-child {
  width: min(78%, 360px);
  margin-left: auto;
}

.mini-photo-stack img:last-child {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(48%, 220px);
}

.blessing-section {
  background: var(--ivory-white);
}

.blessing-card {
  display: grid;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(196, 154, 74, 0.35);
  border-radius: 8px;
  background: rgba(247, 238, 223, 0.72);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.blessing-images {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 0.85rem;
}

.blessing-images img:first-child {
  width: 100%;
}

.blessing-images img:last-child {
  width: 100%;
}

.detail-card {
  min-height: 300px;
  padding: 2rem;
  text-align: center;
}

.detail-card h3,
.location-card h3,
.rsvp-contact h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
  color: var(--wine);
}

.detail-card p,
.location-card p {
  margin-top: 1rem;
  color: var(--muted-brown);
  line-height: 1.8;
}

.detail-card .time {
  color: var(--champagne-gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  border: 1px solid rgba(196, 154, 74, 0.62);
  border-radius: 999px;
  color: var(--wine);
  padding: 0.72rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.map-link:hover {
  border-color: var(--champagne-gold);
  background: rgba(196, 154, 74, 0.12);
  transform: translateY(-2px);
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(31, 26, 23, 0.16);
  border-radius: 50%;
}

.story-section,
.rsvp-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(196, 154, 74, 0.15), transparent 26%),
    linear-gradient(135deg, var(--deep-wine), var(--wine));
}

.support-section {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.95), rgba(247, 238, 223, 0.7)),
    var(--ivory-white);
}

.story-section::after,
.rsvp-section::after {
  position: absolute;
  right: -12rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(230, 200, 120, 0.22);
  border-radius: 50%;
  content: "";
}

.story-image {
  position: relative;
  overflow: hidden;
  max-width: 430px;
  margin: 0 auto;
  border: 1px solid rgba(230, 200, 120, 0.5);
  border-radius: 8px;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-grid {
  column-count: 1;
  column-gap: 0.85rem;
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  gap: 0.85rem;
}

.gallery-preview-grid .gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.gallery-preview-grid .gallery-button,
.gallery-preview-grid img {
  width: 100%;
  height: 100%;
}

.gallery-preview-grid img {
  object-fit: cover;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.36);
  border-radius: 8px;
  background: var(--ivory-white);
  break-inside: avoid;
  vertical-align: top;
}

.gallery-button {
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: transparent;
  padding: 0;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-button:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 4px;
}

.rsvp-contact {
  border: 1px solid rgba(230, 200, 120, 0.38);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.08);
  padding: 2rem;
}

.rsvp-contact h3 {
  color: var(--soft-gold);
}

.rsvp-contact p {
  margin: 1rem 0 1.4rem;
  color: var(--ivory-white);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.support-note,
.account-card {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid rgba(196, 154, 74, 0.34);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.72);
  color: var(--muted-brown);
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
}

.account-card {
  width: min(100%, 430px);
}

.account-card.compact {
  width: 100%;
  margin-bottom: 1.2rem;
  background: rgba(247, 238, 223, 0.7);
}

.account-card span {
  color: var(--champagne-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-card strong {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.account-card p {
  color: var(--muted-brown);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.copy-account {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(196, 154, 74, 0.58);
  border-radius: 999px;
  color: var(--wine);
  padding: 0.65rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-note svg {
  flex: 0 0 auto;
  color: var(--champagne-gold);
}

.proof-panel {
  border: 1px solid rgba(196, 154, 74, 0.36);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.86);
  padding: clamp(1.4rem, 4vw, 2rem);
  text-align: center;
}

.proof-panel h3 {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.proof-panel p {
  margin-top: 1rem;
  color: var(--muted-brown);
  line-height: 1.85;
}

.form-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.dark-panel {
  border-color: rgba(230, 200, 120, 0.4);
  background: rgba(255, 249, 241, 0.09);
}

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

.form-panel label {
  display: block;
  margin-top: 1rem;
}

.form-panel label:first-child,
.form-grid label {
  margin-top: 0;
}

.form-panel span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--deep-wine);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dark-panel span {
  color: var(--soft-gold);
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(196, 154, 74, 0.34);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.9);
  color: var(--charcoal-text);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.form-panel input[type="file"] {
  min-height: auto;
  padding: 0.7rem;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 74, 0.15);
}

.form-status {
  min-height: 1.6rem;
  margin-top: 1rem;
  color: var(--muted-brown);
  font-size: 0.88rem;
  line-height: 1.7;
}

.dark-panel .form-status {
  color: var(--ivory-white);
}

.gift-layout {
  display: grid;
  align-items: start;
  gap: 1.5rem;
}

.gift-grid {
  display: grid;
  gap: 0.9rem;
}

.gift-store-grid {
  display: grid;
  gap: 1rem;
}

.gift-product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.32);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.94);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.gift-product-card:hover {
  border-color: rgba(196, 154, 74, 0.84);
  transform: translateY(-4px);
}

.gift-product-media {
  display: block;
  aspect-ratio: 1 / 0.78;
  background: var(--warm-cream);
}

.gift-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gift-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.gift-product-tag {
  color: var(--champagne-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gift-product-body h3 {
  display: -webkit-box;
  min-height: 3.2rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--deep-wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.02;
}

.gift-product-body strong {
  color: var(--wine);
  font-size: 1.1rem;
  font-weight: 800;
}

.gift-product-body .btn {
  width: 100%;
  margin-top: auto;
}

.gift-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  align-items: center;
  min-height: 112px;
  cursor: pointer;
  padding: 1.2rem;
}

.gift-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gift-icon {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid rgba(196, 154, 74, 0.44);
  border-radius: 50%;
  color: var(--champagne-gold);
}

.gift-card strong {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
}

.gift-card small {
  color: var(--muted-brown);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-card:has(input:checked) {
  border-color: var(--champagne-gold);
  background: rgba(230, 200, 120, 0.18);
}

.selected-gift {
  border-bottom: 1px solid rgba(196, 154, 74, 0.28);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
}

.selected-gift span,
.selected-gift small {
  display: block;
  color: var(--muted-brown);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.selected-gift strong {
  display: block;
  margin: 0.35rem 0;
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-section {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(247, 238, 223, 0.84)),
    var(--warm-cream);
}

.admin-stats {
  display: grid;
  gap: 1rem;
}

.admin-stats article {
  padding: 1.35rem;
  text-align: center;
}

.admin-stats span {
  display: block;
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
}

.admin-stats small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted-brown);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-card {
  padding: 1.35rem;
}

.admin-card h3 {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-entry {
  border: 1px solid rgba(196, 154, 74, 0.25);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.78);
  padding: 0.9rem;
}

.admin-entry strong {
  display: block;
  color: var(--deep-wine);
  font-size: 0.95rem;
}

.admin-entry span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-brown);
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-empty {
  color: var(--muted-brown);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-auth-page,
.admin-app-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(58, 7, 16, 0.95), rgba(90, 15, 27, 0.82)),
    var(--deep-wine);
  color: var(--charcoal-text);
  font-family: "Montserrat", sans-serif;
}

.admin-auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.admin-auth-card {
  width: min(100%, 480px);
  border: 1px solid rgba(230, 200, 120, 0.42);
  border-radius: 8px;
  background: var(--ivory-white);
  padding: clamp(1.4rem, 5vw, 2.4rem);
}

.admin-auth-brand,
.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.admin-auth-copy {
  margin-top: 2.2rem;
}

.admin-auth-copy h1,
.admin-topbar h1 {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
}

.admin-auth-copy p:not(.script-label) {
  margin-top: 1rem;
  color: var(--muted-brown);
  line-height: 1.8;
}

.admin-login-form {
  margin-top: 1.8rem;
  background: rgba(247, 238, 223, 0.72);
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid rgba(230, 200, 120, 0.24);
  background: rgba(255, 249, 241, 0.96);
  padding: 1.4rem;
}

.admin-side-nav {
  display: grid;
  gap: 0.55rem;
  margin-top: 2rem;
}

.admin-side-nav a,
.admin-logout {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--deep-wine);
  padding: 0.8rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-side-nav a.is-active,
.admin-side-nav a:hover,
.admin-logout:hover {
  border-color: rgba(196, 154, 74, 0.34);
  background: rgba(230, 200, 120, 0.16);
}

.admin-logout {
  margin-top: auto;
  width: 100%;
  color: var(--wine);
}

.admin-main {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(247, 238, 223, 0.92)),
    var(--ivory-white);
  padding: clamp(1rem, 4vw, 2.4rem);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-kicker {
  color: var(--champagne-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-dashboard-stats {
  margin-top: 1.6rem;
}

.admin-panel-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-panel-grid.single {
  margin-top: 1.6rem;
}

.admin-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(196, 154, 74, 0.24);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.admin-card-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.admin-card-heading span {
  color: var(--muted-brown);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table-list {
  display: grid;
  gap: 0.75rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid rgba(196, 154, 74, 0.24);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.72);
  padding: 0.95rem;
}

.admin-row strong {
  display: block;
  color: var(--deep-wine);
  font-size: 0.95rem;
}

.admin-row span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-brown);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-row > div:last-child {
  text-align: right;
}

.admin-proof-link {
  color: var(--wine);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid rgba(196, 154, 74, 0.42);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(255, 249, 241, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-right: 0.65rem;
  padding: 0.55rem 0.8rem;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-detail-button:hover {
  border-color: var(--champagne-gold);
  background: rgba(196, 154, 74, 0.12);
  transform: translateY(-1px);
}

.admin-proof-status {
  display: inline-block;
  color: var(--muted-brown);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  align-items: center;
  justify-items: center;
  background: rgba(31, 10, 14, 0.72);
  padding: 1.25rem;
}

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

.admin-detail-sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  border: 1px solid rgba(196, 154, 74, 0.45);
  border-radius: 8px;
  background: var(--ivory-white);
  padding: clamp(1.25rem, 4vw, 2rem);
  animation: modalZoom 0.28s ease both;
}

.admin-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 154, 74, 0.34);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(255, 249, 241, 0.94);
}

.admin-detail-heading {
  max-width: 580px;
  margin: 0 auto 1.2rem;
  padding-right: 2.8rem;
  text-align: center;
}

.admin-detail-heading h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-detail-item {
  border: 1px solid rgba(196, 154, 74, 0.24);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.72);
  padding: 0.9rem;
}

.admin-detail-item span {
  display: block;
  color: var(--muted-brown);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-detail-item strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--deep-wine);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(196, 154, 74, 0.24);
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-detail-no-proof {
  color: var(--muted-brown);
  font-size: 0.86rem;
}

.location-card {
  padding: 2rem;
  text-align: center;
}

.map-panel {
  border: 1px solid rgba(196, 154, 74, 0.36);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.82);
  padding: 1.1rem;
}

.map-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.4rem 1.15rem;
}

.map-panel-header h3 {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
}

.map-kicker {
  color: var(--champagne-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.map-embed-grid {
  display: grid;
  gap: 1rem;
}

.map-embed-grid article {
  overflow: hidden;
  border: 1px solid rgba(196, 154, 74, 0.32);
  border-radius: 8px;
  background: var(--ivory-white);
}

.map-embed {
  height: 320px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.map-embed-footer h4 {
  color: var(--wine);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.map-embed-footer a {
  color: var(--champagne-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

body.proof-open {
  overflow: hidden;
}

body.admin-detail-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  background: rgba(31, 10, 14, 0.92);
  padding: 5rem 1.25rem 2rem;
}

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

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: center;
  justify-items: center;
  background: rgba(31, 10, 14, 0.72);
  padding: 1.25rem;
}

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

.proof-sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  border: 1px solid rgba(196, 154, 74, 0.45);
  border-radius: 8px;
  background: var(--ivory-white);
  padding: clamp(1.25rem, 4vw, 2rem);
  animation: modalZoom 0.28s ease both;
}

.proof-heading {
  max-width: 580px;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.proof-heading h2 {
  font-size: clamp(2.15rem, 6vw, 3.6rem);
}

.proof-heading p:not(.script-label) {
  margin-top: 0.8rem;
  color: var(--muted-brown);
  line-height: 1.8;
}

.proof-close {
  color: var(--wine);
  background: rgba(255, 249, 241, 0.92);
}

.modal-stage {
  justify-self: center;
  max-width: min(1120px, 100%);
  text-align: center;
  animation: modalZoom 0.28s ease both;
}

.modal-stage img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(230, 200, 120, 0.52);
  border-radius: 8px;
  background: var(--deep-wine);
}

.modal-stage figcaption {
  margin-top: 1rem;
  color: var(--soft-gold);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-close,
.modal-nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(230, 200, 120, 0.5);
  border-radius: 50%;
  color: var(--ivory-white);
  background: rgba(255, 249, 241, 0.08);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.modal-close:hover,
.modal-nav:hover {
  transform: translateY(-2px);
  background: rgba(230, 200, 120, 0.16);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    column-count: 3;
  }

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

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

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

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

  .blessing-card {
    grid-template-columns: 0.9fr 1fr;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    column-count: 4;
  }

  .gift-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

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

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

@media (max-width: 1023px) {
  .hero-visual {
    min-height: auto;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .couple-pyramid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
  }

  .couple-pyramid-item.side-low,
  .couple-pyramid-item.side-mid {
    height: 260px;
  }

  .couple-pyramid-item.center {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 540px;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(230, 200, 120, 0.24);
  }

  .admin-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-logout {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    max-width: 320px;
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: center;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-photo-wrap {
    width: min(100%, 380px);
  }

  .hero-title {
    font-size: clamp(2.55rem, 15vw, 4.5rem);
  }

  .details-title {
    font-size: clamp(1.75rem, 8.8vw, 2.65rem);
  }

  .floating-logo {
    width: 150px;
  }

  .gold-ring {
    width: 92px;
    height: 92px;
  }

  .mini-photo-stack {
    min-height: auto;
  }

  .mini-photo-stack img:first-child,
  .mini-photo-stack img:last-child {
    position: static;
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .mini-photo-stack img:last-child {
    margin-top: 0.85rem;
    width: min(72%, 240px);
  }

  .couple-pyramid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .couple-pyramid-item.center {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 420px;
  }

  .couple-pyramid-item.side-low,
  .couple-pyramid-item.side-mid {
    height: 190px;
  }

  .gallery-modal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

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

  .modal-stage {
    width: 100%;
    max-width: none;
    max-height: 88vh;
    overflow-y: auto;
    border: 1px solid rgba(230, 200, 120, 0.38);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(58, 7, 16, 0.98);
    padding: 4.5rem 0.85rem 5.5rem;
    animation: sheetUp 0.28s ease both;
  }

  .proof-modal {
    align-items: end;
    padding: 0;
  }

  .proof-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    animation: sheetUp 0.28s ease both;
  }

  .admin-detail-modal {
    align-items: end;
    padding: 0;
  }

  .admin-detail-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    animation: sheetUp 0.28s ease both;
  }

  .admin-detail-heading {
    padding-right: 2.5rem;
    text-align: left;
  }

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

  .admin-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .proof-heading {
    padding-top: 0.5rem;
  }

  .modal-stage img {
    max-height: 72vh;
  }

  .modal-nav {
    position: fixed;
    bottom: 1.25rem;
  }

  .modal-prev {
    left: calc(50% - 66px);
  }

  .modal-next {
    right: calc(50% - 66px);
  }

  .detail-card,
  .location-card,
  .rsvp-contact,
  .form-panel,
  .admin-card {
    padding: 1.55rem;
  }

  .gift-card {
    min-height: 104px;
    padding: 1rem;
  }

  .gift-card strong {
    font-size: 1.35rem;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 0.65rem;
  }

  .gallery-preview-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 0.65rem;
  }

  .gallery-item {
    margin-bottom: 0.65rem;
  }

  .map-panel {
    padding: 0.8rem;
  }

  .admin-auth-shell {
    align-items: stretch;
  }

  .admin-auth-card {
    align-self: center;
  }

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

  .admin-topbar,
  .admin-card-heading,
  .admin-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-row > div:last-child {
    text-align: left;
  }

  .map-panel-header,
  .map-embed-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-embed {
    height: 280px;
  }
}

@keyframes sheetUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
