:root {
  --white: #ffffff;
  --ink: #000000;
  --font:
    "Inter",
    system-ui,
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
}
.header__names {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header__date {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.header__cta {
  justify-self: end;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.header__cta:hover {
  background: var(--ink);
  color: var(--white);
}
.hero {
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
}
.hero__title {
  font-size: clamp(2rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.hero__figure {
  margin: 0;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.day {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.day__header {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.day__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.day__intro {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.6;
  max-width: 16rem;
}
.day__details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.day__detail {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}
.day__term {
  font-weight: 600;
}
.day__desc {
  margin: 0;
}
.day__note {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  text-align: right;
  align-self: start;
  white-space: normal;
}
.day__figure {
  margin: 0;
}
.day__photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.story {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.story__intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 36rem;
}
.story__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.story__text {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.65;
}
.story__gallery {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}
.story__frame {
  flex: 1;
  margin: 0;
  overflow: hidden;
}
.story__frame--short {
  height: clamp(170px, 26vw, 260px);
}
.story__frame--medium {
  height: clamp(240px, 38vw, 380px);
}
.story__frame--tall {
  height: clamp(310px, 48vw, 500px);
}
.story__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.celebrate {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.celebrate__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  min-height: clamp(420px, 55vh, 560px);
}
.celebrate__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.celebrate__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.celebrate__text {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.65;
  max-width: 22rem;
}
.celebrate__figure {
  margin: 0;
  height: 100%;
}
.celebrate__photo {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 50vh, 520px);
  object-fit: cover;
}
.rsvp {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.rsvp__inner {
  max-width: 480px;
  margin: 0 auto;
}
.rsvp__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.rsvp__intro {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rsvp__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rsvp__input,
.rsvp__select,
.rsvp__textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
}
.rsvp__textarea {
  resize: vertical;
  min-height: 4rem;
  line-height: 1.55;
}
.rsvp__textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.rsvp__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.25rem;
}
.rsvp__input:focus,
.rsvp__select:focus,
.rsvp__textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.rsvp__fieldset {
  border: none;
  padding: 0;
}
.rsvp__options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.rsvp__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.rsvp__radio {
  accent-color: var(--ink);
}
.rsvp__submit {
  align-self: center;
  margin-top: 0.25rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.rsvp__submit:hover {
  background: transparent;
  color: var(--ink);
}
@media (max-width: 1024px) {
  .day__header {
    grid-template-columns: 1fr 1fr;
  }
  .day__title {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .header__date {
    grid-column: 1 / -1;
    order: -1;
    text-align: left;
  }
  .header__cta {
    grid-column: 2;
    grid-row: 2;
  }
  .day__note {
    text-align: left;
  }
  .celebrate__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .celebrate__copy {
    order: 2;
    justify-content: flex-start;
  }
  .celebrate__figure {
    order: 1;
  }
  .celebrate__photo {
    min-height: min(320px, 45vh);
  }
}
@media (max-width: 640px) {
  .day__header {
    grid-template-columns: 1fr;
  }
  .story__gallery {
    overflow-x: auto;
    margin-inline: calc(-1 * clamp(1.5rem, 4vw, 3rem));
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 0.5rem;
    scroll-padding-inline: clamp(1.5rem, 4vw, 3rem);
  }
  .story__frame {
    flex: 0 0 38vw;
  }
  .story__frame--short {
    height: 190px;
  }
  .story__frame--medium {
    height: 260px;
  }
  .story__frame--tall {
    height: 330px;
  }
}
@media (max-width: 480px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.75rem;
  }
  .header__cta {
    justify-self: start;
  }
}
