:root {
  --ink: #4f4542;
  --muted: #6d635b;
  --paper: #fff8ee;
  --linen: #efe1cd;
  --warm-band: #f5eadc;
  --soft-card: #fffdf7;
  --sage: #3f6f5a;
  --terracotta: #b96f5c;
  --saffron: #e3a72e;
  --wine: #8a3f50;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(46, 35, 26, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #14110f;
}

body {
  margin: 0;
  background: #14110f;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main {
  background: var(--paper);
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: max(24px, calc((100% - 1480px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: calc(100% - 2 * max(24px, calc((100% - 1480px) / 2)));
  max-width: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #4f4a45;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
  transform: none;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, padding 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease, text-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  background: transparent;
  color: #4f4a45;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  text-shadow: none;
}

.nav-tools {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.menu-toggle {
  display: inline-block;
  width: 42px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.3);
  cursor: pointer;
}

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

.countdown-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 13px 18px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.16);
  color: var(--white);
  text-shadow: none;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(35, 33, 31, 0.08), 0 8px 22px rgba(35, 33, 31, 0.12);
}

.countdown-button span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.countdown-button .countdown-prefix {
  margin-right: -5px;
  color: var(--white);
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
}

.countdown-button strong {
  min-width: 2ch;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.countdown-button small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  gap: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 18px 22px;
  border: 1px solid rgba(35, 33, 31, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 248, 238, 0.82)),
    rgba(255, 248, 238, 0.86);
  box-shadow:
    0 20px 46px rgba(46, 35, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  backdrop-filter: saturate(1.28) blur(32px);
  -webkit-backdrop-filter: saturate(1.28) blur(32px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links a {
  position: relative;
  padding: 13px 0 13px 16px;
  border-top: 1px solid rgba(35, 33, 31, 0.08);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:first-child {
  border-top: 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.lang-button:hover {
  color: var(--terracotta);
}

.language-switch {
  display: flex;
  justify-self: end;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.58);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
}

.lang-button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.lang-button.is-active {
  background: var(--white);
  color: #14110f;
  text-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 108vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 52% 52%;
  transform: scale(1.06);
  transform-origin: 52% 52%;
}

.hero-scrim {
  background:
    linear-gradient(0deg, rgba(18, 16, 15, 0.58) 0%, rgba(18, 16, 15, 0.34) 24%, rgba(18, 16, 15, 0.12) 42%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 28px 34px;
  margin-bottom: 76px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 2px 22px rgba(20, 20, 18, 0.56);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro .section-kicker {
  color: #ffe0c2;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero .eyebrow {
  color: #ffd79a;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  -webkit-text-stroke: 0;
}

.intro h2 {
  color: var(--white);
  font-size: clamp(51px, 6.6vw, 62px);
  margin: 32px 0 22px;
}

h1 {
  max-width: none;
  font-size: clamp(86px, 14vw, 164px);
  line-height: 0.92;
  opacity: 0.92;
  white-space: nowrap;
}

h2 {
  max-width: 780px;
  font-size: clamp(24px, 3.2vw, 28px);
  line-height: 1.32;
}

h3 {
  font-size: 21px;
}

h2 + p,
.story-copy h2,
.rsvp-layout h2,
.photos-layout h2 h2 {
  margin-bottom: 22px;
}

.section-kicker + h2 {
  margin-top: 14px;
}

.hero-date {
  margin: -4px 0 12px;
  color: #ffe6bd;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 860px;
  margin: 0;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(12px);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button.primary {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(175, 76, 91, 0.7);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 250, 242, 0.16);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(82, 103, 91, 0.2);
  background: rgba(82, 103, 91, 0.86);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.button.countdown-button {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 250, 242, 0.16);
  box-shadow: 0 8px 22px rgba(35, 33, 31, 0.12);
}

.countdown {
  position: absolute;
  right: max(22px, calc((100% - 1120px) / 2));
  bottom: 30px;
  z-index: 2;
  width: 122px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.14);
  backdrop-filter: blur(12px);
  text-align: center;
}

.countdown span {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.section,
.section-band {
  padding: 96px 0;
}

.section {
  background: var(--paper);
}

.section-band {
  background: var(--linen);
}

.section-band.warm {
  background: var(--warm-band);
}

#story {
  background: #fff8ee;
}

.intro {
  background: #c28f7d;
  color: var(--white);
  border-top: 1px solid rgba(35, 33, 31, 0.08);
  border-bottom: 1px solid rgba(35, 33, 31, 0.1);
}

#details {
  background: #7b6d6c;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#nearby {
  background: #f1ece2;
  border-bottom: 1px solid rgba(35, 33, 31, 0.09);
}

#rsvp {
  background: #d7c8bd;
  border-bottom: 1px solid rgba(35, 33, 31, 0.18);
}

#photos {
  background: #7d8880;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


#rsvp .section-kicker {
  color: var(--terracotta);
}

#rsvp .section-title-script,
#rsvp .rsvp-layout > div:first-child p {
  color: #14110f;
}

#details .section-kicker {
  color: #ffd79a;
}

#photos .section-kicker {
  color: var(--terracotta);
}

#details .section-title-script {
  color: var(--white);
}

#photos .section-title-script {
  color: var(--white);
}

#details .timeline-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
}

#details .travel-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 253, 247, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

#photos .photos-layout p {
  color: rgba(255, 255, 255, 0.78);
}

#photos .button.secondary {
  border-color: rgba(255, 248, 238, 0.78);
  background: #fff8ee;
  color: var(--ink);
}

#photos .qr-card {
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
}

#photos .qr-card p {
  color: var(--ink) !important;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-grid,
.story-layout,
.rsvp-layout,
.photos-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.intro {
  padding: 112px 0;
  text-align: center;
}

.intro-editorial {
  display: grid;
  justify-items: center;
}

.intro-route {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 34px);
  min-width: min(100%, 520px);
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: #14110f;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(35px, 4.8vw, 58px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.intro-date small {
  color: #ffe0c2;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 680px;
  margin-top: 28px;
  white-space: pre-line;
}

.intro p:last-child,
.story-copy p,
.photos-layout p p,
.rsvp-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

.intro p:last-child {
  color: #14110f;
}

.story-copy {
  position: sticky;
  top: 110px;
}

.photo-upload-hint-icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.28em;
  vertical-align: -0.16em;
  color: var(--white);
}

.photo-upload-hint-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-title,
.section-title-script {
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.14;
}

.title-heart {
  display: inline-block;
  font-size: 0.42em;
  line-height: 1;
  margin-left: -0.02em;
  transform: translateY(calc(0.18em - 5px));
}

.story-kicker {
  color: var(--terracotta) !important;
  letter-spacing: 0.08em;
}

.section-heading .section-kicker,
.rsvp-layout .section-kicker,
.photos-layout .section-kicker .section-kicker {
  color: var(--terracotta);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

#photos .section-kicker {
  color: #ffd79a !important;
}

#rsvp .section-kicker {
  color: #b96f5c !important;
}

.story-kicker {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0;
}

.story-title {
  margin-top: 14px;
}

.story-copy p + p {
  margin-top: 18px;
}

.story-photos {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.story-photos img {
  width: 100%;
  min-height: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.story-photos img:first-child {
  grid-column: 1 / -1;
  max-height: 360px;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.timeline {
  display: grid;
  gap: 14px;
  text-transform: uppercase;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(35, 33, 31, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.82);
}

.timeline-item time {
  align-self: center;
  justify-self: start;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
}

.timeline-item h3 {
  color: var(--wine);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-item p {
  margin: 8px 0 10px;
  color: var(--muted);
  text-transform: none;
}

.timeline-item a {
  color: var(--sage);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.timeline-item a:hover {
  color: var(--terracotta);
}

.travel-panel {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-transform: uppercase;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.travel-grid article {
  padding-top: 16px;
  border-top: 2px solid var(--saffron);
}

.route-label {
  display: block;
  font-weight: 800;
}

.travel-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  text-transform: none;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.venue-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(35, 33, 31, 0.18);
  border-radius: var(--radius);
  background: var(--soft-card);
}

.venue-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.venue-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.venue-card:nth-child(2) .venue-image::after {
  background: radial-gradient(circle at 50% 52%, transparent 56%, rgba(18, 16, 15, 0.18) 100%);
}

.venue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) brightness(0.98);
}

.venue-card:first-child .venue-image img {
  filter: contrast(1.02) brightness(1.06);
  transform: scale(1.45);
  transform-origin: 50% 72%;
}

.venue-card:nth-child(2) .venue-image img {
  transform: scale(1.24);
  transform-origin: 50% 76%;
}

.venue-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.venue-card span,
.nearby-subtitle {
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-card h3 {
  margin-top: 16px;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.18;
  text-transform: uppercase;
}

.venue-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.nearby-subtitle {
  margin: 0 0 18px;
}

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

.place-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 33, 31, 0.14);
  border-radius: var(--radius);
  background: var(--soft-card);
}

.place-card-image {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.99) brightness(0.99);
}

.place-card-body {
  padding: 18px 18px 20px;
}

.place-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--terracotta);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.place-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.18;
  text-transform: uppercase;
}

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

.place-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.place-link:hover {
  color: var(--terracotta);
}

.rsvp-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid rgba(35, 33, 31, 0.22);
  background: #fff8ee;
  box-shadow: 0 26px 60px rgba(46, 35, 26, 0.2);
}

.rsvp-fields {
  display: grid;
  gap: 18px;
  transition: filter 240ms ease, opacity 240ms ease;
}

.rsvp-form.is-success .rsvp-fields {
  filter: blur(6px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.rsvp-form label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.form-row-rsvp {
  grid-template-columns: minmax(0, 1.35fr) minmax(100px, 0.8fr) minmax(100px, 0.8fr);
}

.form-row label {
  height: 100%;
  align-content: end;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(35, 33, 31, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
  padding: 14px 16px;
  text-transform: none;
  font-size: 16px;
  font-weight: 600;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input,
select {
  height: 56px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(207, 103, 66, 0.62);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 0 0 3px rgba(207, 103, 66, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(109, 99, 91, 0.38);
  font-weight: 400;
  letter-spacing: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff8ee inset;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--sage);
  font-size: 14px;
  font-weight: 800;
}

.form-success-panel {
  position: absolute;
  inset: clamp(16px, 2vw, 24px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 33, 31, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.form-success-panel p {
  display: grid;
  gap: 24px;
  margin: 0;
  color: var(--terracotta);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
}

.form-success-panel span {
  display: block;
  font-size: 1em;
  letter-spacing: 0.08em;
}

.rsvp-form.is-success .form-success-panel {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rsvp-form .button.primary {
  border-color: rgba(185, 111, 92, 0.72);
  background: #b96f5c;
}

.rsvp-embed {
  overflow: hidden;
  border: 1px solid rgba(35, 33, 31, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 18px 42px rgba(46, 35, 26, 0.1);
}

.rsvp-embed iframe {
  display: block;
  width: 100%;
  height: min(1138px, 82vh);
  border: 0;
  background: transparent;
}

.photos-layout {
  align-items: center;
}

.photos-layout .button {
  margin-top: 24px;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(35, 33, 31, 0.13);
  border-radius: var(--radius);
  background: var(--soft-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-code {
  width: min(260px, 80vw);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(35, 33, 31, 0.12);
  border-radius: var(--radius);
  background: var(--soft-card);
}

.qr-card p {
  max-width: 360px;
  margin: 0;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(46, 35, 26, 0.12);
}

.gallery img:nth-child(1) {
  object-position: 50% 52%;
}

.gallery img:nth-child(2) {
  object-position: 50% 42%;
}

.gallery img:nth-child(3),
.gallery img:nth-child(6) {
  object-position: 50% 48%;
}

.gallery img:nth-child(4),
.gallery img:nth-child(5) {
  object-position: 50% 44%;
}


.footer {
  display: flex;
  justify-content: center;
  padding: 26px max(18px, calc((100% - 1120px) / 2)) calc(26px + env(safe-area-inset-bottom, 0px));
  background: #14110f;
  color: var(--white);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ffd79a;
  font-weight: 800;
}

.footer-top {
  display: inline-grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink) !important;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 0;
    border-radius: 0;
  }

  .nav-links {
    top: 100%;
    left: 0;
    width: 100%;
    padding: 14px 24px 18px;
    border-bottom: 1px solid rgba(35, 33, 31, 0.12);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 248, 238, 0.86)),
      rgba(255, 248, 238, 0.88);
    box-shadow: 0 18px 38px rgba(46, 35, 26, 0.14);
  }

  .nav-links a {
    padding: 12px 0;
    text-align: center;
  }

  .nav-links a::after {
    left: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(-50%) scale(0.4);
  }

  .nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
  }

  .hero-content {
    padding-top: 190px;
  }

  .countdown {
    display: none;
  }

  .intro-grid,
  .story-layout,
  .rsvp-layout,
  .photos-layout {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }

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

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

  .venue-image {
    height: 260px;
    min-height: 260px;
  }

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

@media (max-width: 620px) {
  .site-header {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: calc(100% - 24px);
    padding: 0;
  }

  .site-header.is-scrolled {
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu-toggle {
    background: rgba(255, 250, 242, 0.72);
    backdrop-filter: saturate(1.22) blur(20px);
    -webkit-backdrop-filter: saturate(1.22) blur(20px);
  }

  .language-switch {
    background: rgba(20, 17, 15, 0.62);
    backdrop-filter: saturate(1.2) blur(16px);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    transform: translateX(14px);
  }

  .section,
  .section-band {
    padding: 68px 0;
  }

  .hero {
    min-height: calc(100svh + 120px);
    min-height: calc(100dvh + 120px);
    overflow: hidden;
  }

  .hero-scrim {
    background: linear-gradient(0deg, rgba(18, 16, 15, 0.22) 0%, rgba(18, 16, 15, 0.1) 20%, rgba(18, 16, 15, 0.03) 34%, transparent 48%);
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    padding-bottom: 14px;
    margin-bottom: clamp(138px, 18dvh, 190px);
    text-align: center;
  }

  h1 {
    font-size: 68px;
    line-height: 0.98;
    transform: translateX(-8px);
  }

  .hero-date {
    margin-top: 10px;
    font-size: clamp(18px, 5.15vw, 20px);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .hero-copy {
    white-space: normal;
    max-width: 620px;
    margin-inline: auto;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .hero-image {
    object-position: 18% 66%;
    transform: scale(1.58);
    transform-origin: 39% 66%;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .footer {
    align-items: center;
    background: #14110f;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top {
    width: 67px;
    height: 67px;
    font-size: 36px;
  }

  .button {
    width: 100%;
  }

  .story-title,
  .section-title-script {
    font-size: clamp(41px, 12.35vw, 66px);
    line-height: 1.08;
  }

  html[lang="en"] .story-title,
  html[lang="en"] .section-title-script {
    font-size: clamp(40px, 12vw, 64px);
  }

  .intro p:last-child,
  .story-copy p,
  .photos-layout p,
  .rsvp-layout p {
    font-size: 16px;
    line-height: 1.85;
  }

  .story-photos,
  .timeline-item,
  .travel-grid,
  .venue-grid,
  .place-grid,
  .form-row,
  .gallery {
    grid-template-columns: 1fr;
  }

  .place-grid {
    gap: 12px;
  }

  .place-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 150px;
  }

  .place-card-image {
    height: 100%;
    min-height: 150px;
  }

  .place-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 14px;
  }

  .place-card span {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .place-card h3 {
    font-size: 14px;
    line-height: 1.15;
  }

  .place-card p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .place-link {
    margin-top: 10px;
    font-size: 11px;
  }

  .venue-card-body {
    padding: 24px;
  }

  .venue-card:first-child .venue-image {
    height: 260px;
    min-height: 260px;
  }

  .venue-card:first-child .venue-image img {
    object-position: 60% 70%;
    transform: scale(1.08);
    transform-origin: 60% 70%;
  }

  .timeline-item {
    gap: 10px;
    padding: 20px;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
  }

  .gallery img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    margin: 0 !important;
    object-fit: cover;
  }
}
