:root {
  --ink: #28302c;
  --muted: #68726d;
  --paper: #eee5da;
  --soft: #eee5da;
  --sage: #697861;
  --sage-dark: #3f4d40;
  --rose: #b8897d;
  --white: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  background: rgb(54, 24, 27);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(252, 161, 161, 0.12), transparent 34%),
    rgb(54, 24, 27);
  font-family: "Segoe UI", Arial, sans-serif;
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
  color: rgb(108, 48, 54);
}

h1 {
  max-width: 100%;
  font-size: clamp(2.65rem, 11.8vw, 3.55rem);
}

h2 {
  font-size: clamp(2rem, 10vw, 3.35rem);
}



p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.phone-slider {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--paper);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.phone-slider::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  min-height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  padding: 76px 18px 46px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero {
  color: var(--white);
  display: grid;
  align-items: end;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  background:
    linear-gradient(120deg, rgba(38, 48, 43, 0.18), rgba(38, 48, 43, 0.04)),
    url("assets/wedding-hero.png") center / cover;
  transform: scale(1.02);
}

.hero__veil {
  background: linear-gradient(180deg, rgba(19, 26, 22, 0.22), rgba(19, 26, 22, 0.78));
}

.nav {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 14px;
  right: 14px;
  min-height: 42px;
  border: 1px solid rgba(255, 253, 249, 0.32);
  border-radius: 999px;
  background: rgba(31, 37, 33, 0.35);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.nav a {
  padding: 12px 6px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: 18px;
  min-width: 0;
}

.hero__title {
  display: grid;
  gap: 0.08em;
  max-width: 100%;
  line-height: 0.92;
  overflow-wrap: anywhere;
  word-break: normal;
  color: var(--white);
}

.hero__title span {
  display: block;
  max-width: 100%;
}

.hero__amp {
  font-size: 0.68em;
  line-height: 0.78;
}

.hero .eyebrow,
.hero__date {
  color: rgba(255, 253, 249, 0.92);
}

.hero__date {
  font-size: 1.25rem;
  font-weight: 700;
}

.button {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgb(108, 48, 54);
  border-radius: 999px;
  background: rgb(108, 48, 54);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: rgb(108, 48, 54);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button--ghost {
  background: transparent;
  border: 1px solid rgb(108, 48, 54);
  color: rgb(108, 48, 54);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover,
.button--light:hover,
.button--ghost:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(108, 48, 54, 0.25);
}

.intro,
.place,
.dress,
.rsvp {
  display: grid;
  align-content: center;
  gap: 26px;
}

.intro__text,
.place__content,
.schedule__head,
.dress>div:first-child,
.rsvp__copy {
  display: grid;
  gap: 14px;
}

.facts,
.rsvp__form {
  display: grid;
  gap: 12px;
}

.facts div,
.timeline__item,
.rsvp__form {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.facts div {
  padding: 18px;
}

.facts span,
label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.06;
  color: rgb(108, 48, 54);
}

.place {
  background: var(--soft);
}

.place__actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.place__photo {
  min-height: 265px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 42, 38, 0.02), rgba(34, 42, 38, 0.18)),
    url("assets/wedding-hero.png") right center / cover;
}

.place__photo--zags {
  background:
    linear-gradient(180deg, rgba(34, 42, 38, 0.02), rgba(34, 42, 38, 0.18)),
    url("assets/zags_neutral.png") center / cover;
}

.place__photo--restaurant {
  background:
    linear-gradient(180deg, rgba(34, 42, 38, 0.02), rgba(34, 42, 38, 0.18)),
    url("assets/restaurant_location.png") right center / cover;
}

.schedule {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-bottom: 48px;
  overflow-y: auto;
  scrollbar-width: none;
}

.schedule::-webkit-scrollbar {
  display: none;
}

.timeline {
  position: relative;
  min-height: 780px;
  margin-top: 4px;
}

.timeline__snake {
  position: absolute;
  inset: 0 14px;
  width: calc(100% - 28px);
  height: 100%;
  pointer-events: none;
}

.timeline__snake-track {
  fill: none;
  stroke: rgba(108, 48, 54, 0.65);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
}

.timeline__item {
  position: absolute;
  width: min(74%, 285px);
  padding: 16px;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 520ms ease, transform 520ms ease;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: rgb(108, 48, 54);
  box-shadow: 0 0 0 5px rgba(108, 48, 54, 0.18);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline__item:nth-of-type(1) {
  top: 24px;
}

.timeline__item:nth-of-type(2) {
  top: 220px;
}

.timeline__item:nth-of-type(3) {
  top: 420px;
}

.timeline__item:nth-of-type(4) {
  top: 610px;
}

.timeline__item--left {
  left: 0;
}

.timeline__item--left::before {
  right: -26px;
}

.timeline__item--right {
  right: 0;
}

.timeline__item--right::before {
  left: -26px;
}

.timeline time {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
}

.timeline h3 {
  margin-top: 14px;
  margin-bottom: 7px;
  font-size: 1rem;
}

.timeline p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.dress {
  background: rgb(108, 48, 54);
  color: var(--white);
}

.dress h2 {
  color: var(--white);
}

.dress p {
  color: rgba(255, 255, 255, 0.82);
}

.dress .eyebrow {
  color: #ffcccc;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.palette span {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: var(--swatch);
}

.rsvp {
  align-content: start;
  overflow-y: auto;
}

.rsvp__form {
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(63, 77, 64, 0.28);
  border-radius: 8px;
  background: #f7f1e8;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(105, 120, 97, 0.12);
}

select option {
  background: var(--white);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(40, 48, 44, 0.4);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.6em;
  color: var(--sage-dark);
  font-weight: 800;
}

.slide-dots {
  position: fixed;
  z-index: 20;
  right: max(10px, calc((100vw - 430px) / 2 + 10px));
  top: 50%;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.slide-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.42);
  transition: height 220ms ease, background 220ms ease;
}

.slide-dots span.is-active {
  height: 22px;
  background: var(--white);
}

.wishes {
  display: grid;
  align-content: center;
  gap: 26px;
}

.wishes__content {
  display: grid;
  gap: 14px;
}

.wishes__cards {
  display: grid;
  gap: 16px;
}

.wishes__card {
  border: 1px solid rgba(120, 101, 91, 0.14);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 18px 45px rgba(51, 40, 34, 0.06);
}

.wishes__card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgb(108, 48, 54);
  margin-bottom: 8px;
  margin-top: 0;
}

.wishes__card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 360px) {
  .slide {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 2.38rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .timeline__item {
    width: 76%;
  }
}

@media (min-width: 431px) {
  .phone-slider {
    border-radius: 30px;
    height: min(100svh, 880px);
    max-height: 880px;
  }

  .slide {
    min-height: min(100svh, 880px);
  }
}