:root {
  --cream: #f8f5ec;
  --sage-paper: #f3f4ef;
  --ink: #30342d;
  --line: rgba(48, 52, 45, 0.26);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--sage-paper);
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.6;
}

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

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

main {
  width: 100%;
  background: var(--sage-paper);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Hero */
.hero {
  --hero-slide-width: calc(100vw / 3);

  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #14130f;
}

.hero-slider {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
}

.hero-slider::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.hero-track {
  display: flex;
  width: calc(var(--hero-slide-width) * 8);
  height: 100%;
  animation: hero-marquee 54s linear infinite;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 var(--hero-slide-width);
  height: 100%;
  margin: 0;
  background: #14130f;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-slide:nth-child(1) img,
.hero-slide:nth-child(5) img {
  object-position: center 38%;
}

.hero-slide:nth-child(3) img,
.hero-slide:nth-child(7) img {
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  pointer-events: none;
}

.hero-overlay img {
  width: min(46vw, 600px);
  min-width: 250px;
  mix-blend-mode: screen;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(58px, 6vw, 78px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  animation: scroll-cue-float 2.4s ease-in-out infinite;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 11px;
  height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

@keyframes hero-marquee {
  to {
    transform: translate3d(calc(var(--hero-slide-width) * -4), 0, 0);
  }
}

@keyframes scroll-cue-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

/* Invitation */
.invitation-section {
  padding: 40px max(24px, calc((100vw - 940px) / 2)) clamp(18px, 3vw, 30px);
  background: var(--sage-paper);
  color: var(--ink);
  text-align: center;
}

.fountain-illustration {
  width: clamp(75px, 9vw, 130px);
  margin: 0 auto 25px;
  mix-blend-mode: multiply;
  opacity: 0.34;
  animation: fountain-float 4.8s ease-in-out infinite;
}

.invitation-section h2 {
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.invitation-section blockquote,
.invitation-section p {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-wrap: pretty;
}

.invitation-section blockquote {
  margin-block: 0;
}

.invitation-section p {
  margin-block: 18px 0;
}

.invitation-section p:last-of-type {
  margin-top: 8px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(48, 52, 45, 0.18);
}

.countdown div {
  display: grid;
  gap: 3px;
}

.countdown span {
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.countdown small {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

@keyframes fountain-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* RSVP */
.rsvp-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 20px clamp(52px, 8vw, 108px);
  background: var(--sage-paper);
  color: var(--ink);
}

.rsvp-section::before {
  content: none;
}

.rsvp-section::after {
  content: none;
}

.rsvp-card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(22px, 6vw, 80px);
  border: 6px solid #2f4136;
  background: var(--sage-paper);
  box-shadow: none;
  text-align: center;
}

.rsvp-note {
  display: grid;
  gap: 9px;
  max-width: 720px;
  margin: 0 auto 34px;
}

.rsvp-note p {
  margin: 0;
  color: #121512;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-transform: uppercase;
}

.rsvp-note span {
  color: rgba(18, 21, 18, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.75;
  text-transform: uppercase;
}

.rsvp-name {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-bottom: 32px;
}

.rsvp-name span,
.menu-group legend,
.line-question span {
  color: #121512;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsvp-name span {
  font-size: clamp(1rem, 1.6vw, 1.28rem);
}

.rsvp-name input,
.line-question input {
  width: min(100%, 430px);
  border: 0;
  border-bottom: 1px solid rgba(18, 21, 18, 0.58);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  padding: 8px 4px;
}

.rsvp-name input:focus,
.line-question input:focus {
  outline: 0;
  border-color: #121512;
}

.rsvp-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.menu-group {
  display: grid;
  gap: 25px;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
}

.menu-group legend {
  margin: 0 auto 4px;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
}

.field-hint {
  margin: -6px 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.68;
}

.field-error {
  display: none;
  margin: 6px 0 0;
  color: #9f2f2f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-error .field-error {
  display: block;
}

.is-error legend,
.is-error.rsvp-name span,
.is-error.line-question span {
  color: #9f2f2f;
}

.is-error.rsvp-name input,
.is-error.line-question input {
  border-color: #9f2f2f;
}

.menu-option {
  display: grid;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
}

.menu-option input {
  position: absolute;
  opacity: 0;
}

.menu-option span {
  position: relative;
  display: inline-block;
  padding-left: 26px;
  font-size: clamp(0.98rem, 1.6vw, 1.25rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.menu-option span::before {
  content: "";
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1.5px solid #121512;
  transition:
    background 140ms ease,
    box-shadow 140ms ease;
}

.menu-option input:checked + span::before {
  background: #121512;
  box-shadow: inset 0 0 0 3px var(--sage-paper);
}

.menu-option:has(input:disabled:not(:checked)) {
  cursor: not-allowed;
  opacity: 0.36;
}

.menu-group.is-error {
  outline: 1px solid rgba(159, 47, 47, 0.45);
  outline-offset: 14px;
}

.menu-option small {
  max-width: 680px;
  color: #121512;
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-question {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin: 34px auto 0;
}

.line-question span {
  max-width: 720px;
  line-height: 1.35;
}

.line-question input {
  width: min(100%, 360px);
}

.rsvp-button {
  margin-top: 34px;
  min-height: 48px;
  border: 1px solid #2f4136;
  background: transparent;
  color: #2f4136;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp-status {
  min-height: 22px;
  margin: 18px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.rsvp-status.is-error {
  color: #9f2f2f;
  font-weight: 700;
}

/* Scroll reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ring accent */
.ring-accent-section {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: clamp(210px, 26vw, 360px);
  padding: clamp(10px, 2vw, 28px) 0 clamp(70px, 7vw, 112px);
  background: var(--sage-paper);
  background-color: var(--sage-paper);
}

.ring-accent-image {
  width: min(102vw, 1120px);
  max-width: none;
  height: auto;
  margin: 0 auto;
}

/* Venue */
.venue-section {
  position: relative;
  z-index: 2;
  isolation: isolate;
  margin-top: 0;
  padding: clamp(74px, 9vw, 132px) 20px clamp(54px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(243, 244, 239, 0.72), rgba(243, 244, 239, 0.9)),
    url("./assets/hero/venue-komoda-background.jpg") center center / cover no-repeat;
  background-color: var(--sage-paper);
  color: var(--ink);
}

.venue-shell {
  display: grid;
  justify-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.venue-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 760px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(243, 244, 239, 0.44);
  background: rgba(243, 244, 239, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}

.section-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.venue-content h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-content address,
.venue-content p {
  max-width: 540px;
  margin: 0;
  font-style: normal;
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.venue-info-list {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.venue-info-list div {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.venue-info-list h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue-info-list p {
  text-transform: uppercase;
}

.venue-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 22px;
  border: 1px solid #2f4136;
  color: #2f4136;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.venue-map-link:hover {
  background: #2f4136;
  color: var(--sage-paper);
}

.venue-phone-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Timeline */
.timeline-section {
  padding: clamp(12px, 2vw, 28px) 20px clamp(54px, 8vw, 96px);
  background: var(--sage-paper);
  color: var(--ink);
  text-align: center;
}

.timeline-shell {
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.timeline-shell h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 44px);
  margin-top: 14px;
  padding-top: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: rgba(47, 65, 54, 0.28);
}

.timeline-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 1px solid #2f4136;
  border-radius: 50%;
  background: var(--sage-paper);
  box-shadow: 0 0 0 8px var(--sage-paper);
  transform: translateX(-50%);
  animation: timeline-pulse 2.6s ease-in-out infinite;
}

.timeline-item:nth-child(2)::before {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3)::before {
  animation-delay: 0.6s;
}

.timeline-item time {
  order: -1;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.timeline-item span {
  max-width: 210px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes timeline-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px var(--sage-paper),
      0 0 0 0 rgba(47, 65, 54, 0.24);
  }

  50% {
    box-shadow:
      0 0 0 8px var(--sage-paper),
      0 0 0 12px rgba(47, 65, 54, 0);
  }
}

/* Footer */
.site-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(430px, 58vw, 760px);
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.12), rgba(12, 12, 12, 0.42)),
    url("./assets/hero/footer-photo.jpg") center center / cover no-repeat;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.footer-logo {
  position: relative;
  z-index: 2;
  width: min(34vw, 420px);
  min-width: 210px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.34));
}

@media (max-width: 1180px) {
  .hero {
    --hero-slide-width: 40vw;
  }
}

@media (max-width: 920px) {
  .hero {
    --hero-slide-width: 52vw;
  }
}

@media (max-width: 720px) {
  .hero {
    --hero-slide-width: 100vw;
    min-height: 560px;
  }

  .hero-slider::after {
    inset: 10px;
  }

  .hero-overlay img {
    width: min(64vw, 340px);
    min-width: 210px;
  }

  .scroll-cue {
    bottom: 62px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
  }

  .rsvp-section {
    padding-inline: 14px;
  }

  .rsvp-card {
    border-width: 4px;
    padding: 28px 18px;
  }

  .menu-group {
    gap: 22px;
  }

  .menu-option small {
    line-height: 1.55;
  }

  .ring-accent-section {
    display: flex;
    min-height: 180px;
    padding: 8px 0 54px;
    background: var(--sage-paper);
  }

  .ring-accent-image {
    width: min(136vw, 560px);
  }

  .venue-section {
    margin-top: -62px;
    padding: 22px 14px 26px;
    background: var(--sage-paper);
    background-color: var(--sage-paper);
  }

  .venue-content {
    padding: 26px 18px;
  }

  .timeline-section {
    padding: 18px 18px 46px;
  }

  .timeline-list {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 4px;
    padding-top: 0;
  }

  .timeline-list::before {
    content: none;
  }

  .timeline-item {
    gap: 9px;
    padding-top: 0;
  }

  .timeline-item::before {
    content: none;
  }

  .site-footer {
    min-height: 470px;
    padding: 28px;
    background-position: center center;
  }

  .site-footer::after {
    inset: 10px;
  }

  .footer-logo {
    width: min(62vw, 300px);
    min-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-item::before {
    animation: none;
  }
}
