@font-face {
  font-family: "Arsenica";
  src: url("assets/fonts/Arsenica-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Sloop Script Pro";
  src: url("assets/fonts/SloopScriptPro-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --font-serif: "Arsenica", Georgia, "Times New Roman", serif;
  --font-script: "Sloop Script Pro", "Brush Script MT", cursive;
  --paper: #f3efe7;
  --paper-2: #e8edf0;
  --ink: #141a16;
  --muted: #4d594d;
  --deep: #10251b;
  --leaf: #31583f;
  --cream: #fffaf1;
  --lilac: #b7a8ce;
  --rose: #e3bdc4;
  --blue: #b4c9df;
  --gold: #c59a4d;
  --line: rgba(20, 26, 22, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
}

section,
article {
  scroll-margin-top: 64px;
}

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

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

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

address {
  font-style: normal;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  color: var(--cream);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  background: linear-gradient(rgba(10, 20, 14, 0.5), rgba(10, 20, 14, 0));
  transition:
    background 0.32s ease,
    color 0.32s ease,
    padding 0.32s ease,
    box-shadow 0.32s ease;
}

.topbar.is-scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--ink);
  text-shadow: none;
  background: rgba(243, 239, 231, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(20, 26, 22, 0.08),
    0 14px 30px rgba(20, 26, 22, 0.09);
}

.brand {
  font-size: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.topbar.is-scrolled .brand {
  color: var(--leaf);
}

.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 18px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 96px 7vw 70px;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.hero-photo,
.theme > img,
.closing-photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: center 47%;
}

.hero-shade,
.theme-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 14, 10, 0.74), rgba(7, 14, 10, 0.12) 54%, rgba(7, 14, 10, 0.55)),
    linear-gradient(0deg, rgba(7, 14, 10, 0.68), transparent 46%);
}

.hero-copy {
  width: min(860px, 100%);
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 92px;
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  display: block;
  margin-top: 12px;
  font-family: var(--font-script);
  font-size: 126px;
  font-style: normal;
  line-height: 0.78;
  text-transform: none;
}

.hero-date {
  margin: 28px 0 0;
  font-size: 28px;
}

.invitation-video {
  padding: 18px;
  background: var(--deep);
}

.invitation-video video {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 822;
  background: #050806;
  object-fit: contain;
}

.letter {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 560px);
  gap: 6vw;
  justify-content: center;
  align-items: center;
  padding: 90px 7vw;
  background:
    radial-gradient(circle at 86% 12%, rgba(183, 168, 206, 0.3), transparent 30%),
    linear-gradient(120deg, var(--paper), #f9f5ee 58%, var(--paper-2));
}

figure {
  margin: 0;
}

.portrait-frame img,
.wide-photo img,
.tall-photo img,
.date-block figure img,
.gallery-grid img,
.program-photo img,
.rsvp-photo img,
.look-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame {
  min-height: 660px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(16, 37, 27, 0.2);
}

.letter-copy {
  max-width: 780px;
}

.letter-copy h2,
.theme-copy h2,
.program-copy h2,
.dress-copy h2,
.rsvp-copy h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 400;
  line-height: 0.98;
}

.letter-copy p:not(.eyebrow),
.dress-copy p {
  margin: 26px 0 0;
  font-size: 32px;
  line-height: 1.22;
}

.story-strip {
  display: grid;
  grid-template-columns: 1.08fr 0.78fr 0.72fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background: var(--deep);
  color: var(--cream);
}

.story-strip figure {
  min-height: 620px;
  overflow: hidden;
}

.wide-photo img {
  object-position: center 42%;
}

.story-note {
  display: grid;
  gap: 20px;
  place-items: center;
  padding: 48px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  background: rgba(255, 250, 241, 0.06);
}

.story-note p {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  text-align: center;
}

.story-note cite {
  font-size: 22px;
  font-style: normal;
  text-align: center;
}

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

.date-block {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.date-block figure {
  min-height: 640px;
  overflow: hidden;
}

.date-copy {
  display: grid;
  align-content: center;
  padding: 84px 8vw;
}

.date-copy h2 {
  margin: 8px 0 18px;
  font-size: 70px;
  font-weight: 400;
  line-height: 1;
}

.date-time {
  margin: 0 0 34px;
  font-size: 48px;
}

.date-copy p:not(.eyebrow):not(.date-time),
.date-copy address {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
}

.map-link {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.map-link span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.015em;
  text-decoration: none;
  opacity: 0.82;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.map-link span::after {
  content: "↗";
  font-size: 15px;
  line-height: 1;
}

.map-link:hover span,
.map-link:focus-visible span {
  opacity: 1;
  background: rgba(20, 26, 22, 0.07);
}

.date-block-dark .map-link:hover span,
.date-block-dark .map-link:focus-visible span {
  background: rgba(255, 250, 241, 0.13);
}

.date-block-dark {
  color: var(--cream);
  background: var(--deep);
}

.date-block-dark figure img {
  object-position: center 52%;
}

.theme {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  isolation: isolate;
}

.theme > img {
  object-position: center 70%;
}

.theme-shade {
  background:
    linear-gradient(rgba(9, 20, 14, 0.52), rgba(9, 20, 14, 0.5)),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 241, 0.18), transparent 42%);
}

.theme-copy {
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

.theme-copy h2 {
  font-size: 86px;
  text-transform: uppercase;
}

.theme-en {
  margin: 18px 0 0;
  font-family: var(--font-script);
  font-size: 72px;
  line-height: 0.9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 390px 390px;
  gap: 18px;
  padding: 18px;
  background: var(--paper-2);
}

.gallery-grid figure {
  overflow: hidden;
}

.gallery-large {
  grid-row: span 2;
}

.program {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 44% 56%;
  background: #f8f3eb;
}

.program-photo {
  min-height: 760px;
  overflow: hidden;
}

.program-photo img {
  object-position: center 52%;
}

.program-copy {
  display: grid;
  align-content: center;
  padding: 86px 8vw;
}

.program-copy h2 {
  margin-bottom: 42px;
}

.program-copy ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-copy li {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.program-copy time {
  color: var(--leaf);
  font-size: 40px;
}

.program-copy span {
  font-size: 30px;
}

.program-copy li:last-child {
  border-bottom: 0;
}

.program-copy li:last-child span {
  font-family: var(--font-script);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.9;
  color: var(--leaf);
}

.dress {
  position: relative;
  overflow: hidden;
  padding: 116px 7vw 112px;
  background:
    linear-gradient(rgba(243, 239, 231, 0.92), rgba(243, 239, 231, 0.94)),
    var(--paper);
  perspective: 1200px;
}

.flower-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: url("assets/film/dandelions.jpg") center 68% / cover;
  opacity: 0.36;
  pointer-events: none;
}

.flower-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(243, 239, 231, 0.08), var(--paper));
}

.dress-copy {
  position: relative;
  max-width: 980px;
  margin: 0 auto 46px;
  text-align: center;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 30px;
}

.palette button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow:
    0 0 0 1px rgba(20, 26, 22, 0.12),
    0 10px 24px rgba(20, 26, 22, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.palette button:hover,
.palette button:focus-visible,
.palette button.is-selected {
  box-shadow:
    0 0 0 3px var(--cream),
    0 0 0 5px rgba(20, 26, 22, 0.32),
    0 18px 34px rgba(20, 26, 22, 0.22);
}

.look-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.look-card {
  position: relative;
  min-width: 0;
  height: 470px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--cream);
  background: transparent;
  box-shadow: 0 22px 46px rgba(20, 26, 22, 0.16);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.look-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(8, 14, 10, 0.78));
}

.look-card img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.look-card span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-size: 31px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.look-card:hover,
.look-card:focus-visible,
.look-card.is-selected {
  box-shadow:
    0 0 0 3px var(--cream),
    0 0 0 5px rgba(20, 26, 22, 0.28),
    0 28px 56px rgba(20, 26, 22, 0.24);
}

.look-card:hover img,
.look-card:focus-visible img,
.look-card.is-selected img {
  filter: saturate(1.06) contrast(1.03);
}

.notes {
  padding: 112px 7vw;
  background:
    linear-gradient(rgba(243, 239, 231, 0.92), rgba(243, 239, 231, 0.96)),
    var(--paper);
}

.notes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.note h3 {
  margin: 8px 0 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.02;
}

.note p:not(.eyebrow) {
  margin: 22px 0 0;
  font-size: 24px;
  line-height: 1.34;
}

.link-accent {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.link-accent:hover,
.link-accent:focus-visible {
  opacity: 0.68;
}

.closing-photo {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 70px 7vw;
  color: var(--cream);
  isolation: isolate;
}

.closing-photo > img {
  object-position: center 48%;
}

.closing-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 30%, rgba(7, 14, 10, 0.68));
}

.closing-copy p {
  margin: 0;
  max-width: 720px;
  font-size: 68px;
  line-height: 0.98;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

.rsvp {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 6vw;
  align-items: center;
  padding: 96px 7vw;
  background: var(--paper-2);
}

.rsvp-photo {
  min-height: 720px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(16, 37, 27, 0.18);
}

.rsvp-panel {
  max-width: 760px;
}

.rsvp-copy h2 {
  margin-bottom: 28px;
  font-size: 54px;
}

.rsvp-form {
  display: grid;
  gap: 16px;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form span,
.rsvp-form legend {
  font-size: 20px;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 26, 22, 0.26);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.86);
  outline: none;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(49, 88, 63, 0.16);
}

.choice {
  grid-template-columns: 20px 1fr;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 26, 22, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.54);
}

.choice input {
  min-height: auto;
  margin: 0;
}

.rsvp-form button[type="submit"] {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: var(--cream);
  background: var(--deep);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.rsvp-form button[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--leaf);
}

.rsvp-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: var(--leaf);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Staggered reveal: children of a section rise in sequence. */
html.reveal-ready [data-reveal] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

html.reveal-ready [data-reveal].is-visible > * {
  opacity: 1;
  transform: none;
}

html.reveal-ready [data-reveal].is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}

html.reveal-ready [data-reveal].is-visible > *:nth-child(3) {
  transition-delay: 0.2s;
}

html.reveal-ready [data-reveal].is-visible > *:nth-child(4) {
  transition-delay: 0.3s;
}

html.reveal-ready [data-reveal].is-visible > *:nth-child(5) {
  transition-delay: 0.4s;
}

html.reveal-ready [data-reveal].is-visible > *:nth-child(6) {
  transition-delay: 0.5s;
}

@media (max-width: 1060px) {
  .hero h1 {
    font-size: 72px;
  }

  .hero h1 em {
    font-size: 104px;
  }

  .letter,
  .date-block,
  .program,
  .rsvp {
    grid-template-columns: 1fr;
  }

  .portrait-frame,
  .program-photo,
  .rsvp-photo {
    min-height: 560px;
  }

  .date-block-dark figure {
    order: 2;
  }

  .story-strip {
    grid-template-columns: 1fr;
  }

  .story-strip figure {
    min-height: 500px;
  }

  .gallery-grid {
    grid-template-rows: 340px 340px;
  }

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

  .notes-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .topbar {
    padding: 13px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding: 82px 20px 48px;
  }

  .hero-photo {
    object-position: center 50%;
  }

  .hero-shade {
    background:
      linear-gradient(rgba(7, 14, 10, 0.18), rgba(7, 14, 10, 0.7)),
      rgba(7, 14, 10, 0.12);
  }

  .eyebrow {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero h1 em {
    margin-top: 8px;
    font-size: 68px;
  }

  .hero-date {
    font-size: 22px;
  }

  .invitation-video {
    padding: 10px;
  }

  .letter,
  .date-copy,
  .program-copy,
  .dress,
  .rsvp {
    padding: 56px 20px;
  }

  .letter {
    gap: 36px;
  }

  .portrait-frame,
  .program-photo,
  .rsvp-photo {
    min-height: 430px;
  }

  .letter-copy h2,
  .program-copy h2,
  .dress-copy h2 {
    font-size: 43px;
  }

  .theme-copy h2 {
    font-size: 44px;
  }

  .rsvp-copy h2 {
    font-size: 38px;
  }

  .letter-copy p:not(.eyebrow),
  .dress-copy p {
    font-size: 24px;
  }

  .story-strip {
    position: relative;
    gap: 10px;
    padding: 10px;
  }

  .story-strip figure {
    min-height: 360px;
  }

  .story-note {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    left: 10px;
    min-height: 360px;
    padding: 32px 22px;
    border: 0;
    background: rgba(8, 20, 14, 0.56);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  }

  .story-note p {
    font-size: 28px;
  }

  .story-note cite {
    font-size: 18px;
  }

  .date-block {
    min-height: auto;
  }

  .date-block figure {
    min-height: 420px;
  }

  .date-copy h2 {
    font-size: 48px;
  }

  .date-time {
    font-size: 34px;
  }

  .date-copy p:not(.eyebrow):not(.date-time),
  .date-copy address {
    font-size: 24px;
  }

  .theme {
    min-height: 76vh;
    padding: 72px 20px;
  }

  .theme-en {
    font-size: 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
    padding: 10px;
  }

  .gallery-grid figure {
    min-height: 360px;
  }

  .gallery-large {
    display: none;
  }

  .program {
    display: block;
    min-height: auto;
  }

  .program-photo {
    display: none;
  }

  .program-copy li {
    grid-template-columns: 90px 1fr;
    gap: 14px;
  }

  .program-copy time {
    font-size: 29px;
  }

  .program-copy span {
    font-size: 23px;
  }

  .flower-band {
    height: 128px;
  }

  .palette button {
    width: 44px;
    height: 44px;
  }

  .look-grid {
    gap: 10px;
  }

  .look-card {
    height: 310px;
  }

  .look-card span {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 20px;
  }

  .notes {
    padding: 60px 20px;
  }

  .note h3 {
    font-size: 34px;
  }

  .note p:not(.eyebrow) {
    font-size: 20px;
  }

  .closing-photo {
    min-height: 76vh;
    padding: 54px 20px 64px;
  }

  .closing-copy p {
    max-width: 18ch;
    font-size: clamp(30px, 9.6vw, 40px);
    line-height: 1.04;
  }

  .rsvp {
    gap: 34px;
  }

  .rsvp-form span,
  .rsvp-form legend {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero h1 em {
    font-size: 60px;
  }

  .program-copy li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
