:root {
  --ink: #26201c;
  --muted: #6f625a;
  --paper: #fffaf4;
  --ivory: #f6efe7;
  --sage: #74816e;
  --moss: #3f513f;
  --rose: #b98375;
  --gold: #b4864b;
  --line: rgba(38, 32, 28, 0.14);
  --shadow: 0 24px 70px rgba(38, 32, 28, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(255, 250, 244, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--rose);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--rose);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.language-switcher select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.92), rgba(255, 250, 244, 0.62) 48%, rgba(255, 250, 244, 0.18)),
    url("assets/hero-wedding.png") center / cover no-repeat;
}

.hero {
  min-height: min(720px, 86vh);
  padding: clamp(72px, 11vw, 132px) clamp(20px, 5vw, 56px);
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-copy,
.page-hero .section-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(660px, 100%);
}

.page-hero {
  min-height: 460px;
  padding: clamp(72px, 10vw, 118px) clamp(20px, 5vw, 56px);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(4.2rem, 15vw, 9.2rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 6vw, 4.2rem);
}

h3 {
  margin-bottom: 8px;
  color: var(--moss);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.hero-date {
  margin-bottom: 32px;
  color: var(--ink);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
}

.hero-actions,
.rsvp-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf4;
  background: var(--moss);
  box-shadow: 0 14px 28px rgba(63, 81, 63, 0.22);
}

.button-secondary {
  color: var(--moss);
  background: rgba(255, 250, 244, 0.72);
  border-color: rgba(63, 81, 63, 0.28);
}

.section {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 56px);
}

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

.intro {
  padding-top: clamp(40px, 7vw, 80px);
}

.intro-grid,
.travel-layout,
.countdown-layout,
.rsvp-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.countdown-layout,
.rsvp-layout {
  align-items: center;
}

.intro-grid p,
.travel-layout p,
.rsvp-layout p,
.form-note p,
.story-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.details-band {
  background: var(--ivory);
}

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

.detail-card,
.timeline-item,
.travel-list article,
.story-panel,
.participation-form,
.form-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.84);
  box-shadow: 0 14px 38px rgba(38, 32, 28, 0.06);
}

.detail-card {
  min-height: 178px;
  padding: 24px;
}

.detail-card p,
.timeline-item p,
.travel-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.countdown-band {
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(63, 81, 63, 0.98), rgba(116, 129, 110, 0.88)),
    var(--moss);
}

.countdown-band .section-kicker,
.countdown-band h2 {
  color: #fffaf4;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 12px;
}

.countdown div {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border: 1px solid rgba(255, 250, 244, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.1);
}

.countdown strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

.countdown span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.timeline-item {
  min-height: 230px;
  padding: 26px;
}

.timeline-item time {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
}

.travel-band {
  background: #f4f6f0;
}

.travel-list {
  display: grid;
  gap: 16px;
}

.travel-list article {
  padding: 24px;
}

.travel-list a {
  display: inline-block;
  margin-top: 16px;
  color: var(--moss);
  font-weight: 800;
  text-decoration-color: rgba(63, 81, 63, 0.35);
  text-underline-offset: 4px;
}

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

.rsvp-layout {
  padding: clamp(28px, 6vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.story-stack {
  display: grid;
  gap: 20px;
}

.story-panel {
  padding: clamp(28px, 6vw, 58px);
}

.story-panel-alt {
  background: #f4f6f0;
}

.story-panel h2 {
  max-width: 760px;
}

.story-panel p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

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

.photo-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(63, 81, 63, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.84), rgba(244, 246, 240, 0.92)),
    var(--ivory);
  font-weight: 800;
}

.form-note,
.participation-form {
  padding: clamp(24px, 5vw, 42px);
}

.form-note {
  position: sticky;
  top: 96px;
}

.participation-form {
  display: grid;
  gap: 20px;
  background: #fffdf9;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label,
.field-group legend {
  color: var(--moss);
  font-size: 0.94rem;
  font-weight: 800;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-group textarea {
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.language-switcher select:focus {
  border-color: var(--moss);
  outline: 3px solid rgba(116, 129, 110, 0.22);
}

.radio-group {
  padding: 0;
  border: 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}

.radio-group input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--moss);
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  color: var(--moss);
  background: #f4f6f0;
  border: 1px solid rgba(63, 81, 63, 0.22);
  border-radius: 8px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
  }

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

  .language-switcher {
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 78vh;
  }

  .hero,
  .page-hero {
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 250, 244, 0.72) 58%, rgba(255, 250, 244, 0.28)),
      url("assets/hero-wedding.png") center / cover no-repeat;
  }

  .intro-grid,
  .travel-layout,
  .countdown-layout,
  .rsvp-layout,
  .form-layout {
    grid-template-columns: 1fr;
  }

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

  .form-note {
    position: static;
  }

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

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

  .language-switcher {
    justify-self: stretch;
    justify-content: space-between;
  }

  .language-switcher select {
    width: min(180px, 58vw);
  }

  .nav-links {
    gap: 18px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 74vh;
    padding-top: 56px;
  }

  .detail-grid,
  .timeline,
  .countdown,
  .gallery-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .timeline-item {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
