:root {
  color-scheme: light;
  --ink: #261613;
  --muted: #715f55;
  --paper: #fff9f0;
  --paper-deep: #f8ead9;
  --red: #e31b2f;
  --red-deep: #b80f22;
  --red-dark: #560912;
  --rose: #ff5362;
  --gold: #c8963c;
  --gold-soft: #f0d8a4;
  --sage: #5b6a55;
  --blue: #a8bdd0;
  --line: rgba(36, 25, 21, 0.14);
  --shadow: 0 24px 70px rgba(42, 17, 11, 0.2);
  --photo-shadow: 0 28px 74px rgba(57, 20, 10, 0.3), 0 0 0 1px rgba(200, 150, 60, 0.58);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Allura", "Snell Roundhand", cursive;
  --font-signature: "Great Vibes", "Allura", "Snell Roundhand", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 24px;
  color: #fffaf3;
  background: linear-gradient(180deg, rgba(72, 8, 16, 0.36), rgba(72, 8, 16, 0));
  pointer-events: none;
}

.brand-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 239, 0.55);
  border-radius: 50%;
  text-decoration: none;
  font-family: var(--font-signature);
  font-size: 18px;
  white-space: nowrap;
  box-shadow: 0 0 0 4px rgba(227, 27, 47, 0.1);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 96vh;
  min-height: 96dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf3;
  background: #26060b;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(227, 27, 47, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(48, 6, 11, 0.42), rgba(48, 6, 11, 0.08) 44%, rgba(48, 6, 11, 0.42)),
    linear-gradient(0deg, rgba(38, 4, 8, 0.86) 0%, rgba(38, 4, 8, 0.16) 54%, rgba(38, 4, 8, 0.34) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  padding: 120px 24px 96px;
  margin: 0 auto;
  text-align: center;
}

.overline {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  width: min(100%, 860px);
  margin: 0 auto;
  font-family: var(--font-signature);
  font-size: 108px;
  line-height: 0.72;
  font-weight: 400;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

.hero-milestones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-milestones span + span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: rgba(240, 216, 164, 0.72);
}

.hero-fullnames {
  display: grid;
  gap: 3px;
  width: min(100%, 520px);
  margin: 12px auto 0;
  color: #f7e9da;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.hero-subtitle {
  width: fit-content;
  margin: 18px auto 0;
  color: #f7e9da;
  font-size: 22px;
  text-align: center;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 172px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.button-submit {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fffaf3;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(227, 27, 47, 0.25);
}

.button-primary:hover,
.button-submit:hover {
  background: linear-gradient(135deg, #ff2a3e, #c90f24);
}

.button-secondary {
  color: #fffaf3;
  border-color: rgba(255, 248, 239, 0.42);
  background: rgba(255, 248, 239, 0.12);
  backdrop-filter: blur(14px);
}

.button-soft {
  color: var(--red-dark);
  background: #fff7ec;
  border-color: var(--line);
}

.button-submit {
  width: 100%;
  border-radius: 8px;
}

.button[disabled] {
  opacity: 0.68;
  cursor: wait;
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 239, 0.4);
  border-radius: 50%;
  color: #fffaf3;
  text-decoration: none;
  background: rgba(16, 7, 8, 0.28);
}

.countdown-band {
  display: grid;
  grid-template-columns: minmax(0, 560px) auto;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  background:
    linear-gradient(90deg, rgba(227, 27, 47, 0.22), transparent 24%, transparent 76%, rgba(227, 27, 47, 0.22)),
    var(--red-dark);
  color: #fff8ef;
}

.countdown-copy {
  justify-self: auto;
}

.countdown-copy h2 {
  margin: 0;
  font-family: var(--font-script);
  font-size: 48px;
  font-weight: 500;
}

.countdown-grid {
  justify-self: start;
  display: grid;
  grid-template-columns: repeat(4, 88px);
  gap: 10px;
}

.countdown-grid span {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid rgba(240, 216, 164, 0.35);
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.08);
  color: #ead9c7;
  font-size: 12px;
  text-transform: uppercase;
}

.countdown-grid strong {
  display: block;
  color: #fff8ef;
  font-size: 32px;
  font-family: var(--font-display);
  line-height: 1;
}

.intro-section,
.details-section,
.gallery-section,
.rsvp-section {
  padding: 84px 24px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 520px);
  gap: 56px;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(227, 27, 47, 0.09), transparent 26%),
    radial-gradient(circle at 92% 84%, rgba(200, 150, 60, 0.18), transparent 30%),
    linear-gradient(180deg, #fff9f0, #fff4e8),
    var(--paper);
}

.intro-section::before,
.intro-section::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 90px;
  background: url("assets/decor/filigree.svg") center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

.intro-section::before {
  top: 28px;
  left: max(20px, calc(50% - 620px));
  transform: rotate(-4deg);
}

.intro-section::after {
  right: max(20px, calc(50% - 620px));
  bottom: 22px;
  transform: rotate(176deg);
}

.intro-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(200, 150, 60, 0.64);
  border-radius: 8px;
  box-shadow: var(--photo-shadow);
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.012);
}

.intro-copy h2,
.section-heading h2,
.dress-section h2,
.portrait-card h2,
.success-panel h2 {
  margin: 0;
  font-family: var(--font-script);
  font-size: 58px;
  line-height: 0.94;
  font-weight: 400;
}

.parents-names {
  display: grid;
  gap: 2px;
  text-align: center;
}

.parents-names span {
  display: block;
}

.parents-amp {
  color: inherit;
  font-family: var(--font-signature);
  font-size: 0.68em;
  line-height: 0.74;
}

.intro-copy p:not(.overline),
.section-heading p:not(.overline),
.dress-section p,
.event-card p,
.success-panel p:not(.overline) {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 34px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  color: var(--red-dark);
}

.section-heading::after {
  content: "";
  display: block;
  width: min(260px, 62vw);
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, rgba(227, 27, 47, 0.42), rgba(200, 150, 60, 0.72), rgba(227, 27, 47, 0.42), transparent);
}

.hero-ornament,
.mini-ornament {
  display: block;
  width: min(260px, 62vw);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
}

.mini-ornament {
  width: min(220px, 54vw);
  margin: 0 auto 16px;
}

.corner-flourish {
  position: absolute;
  z-index: 1;
  width: 170px;
  height: 170px;
  border-color: rgba(240, 216, 164, 0.52);
  opacity: 0.78;
  pointer-events: none;
}

.corner-flourish::before,
.corner-flourish::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(227, 27, 47, 0.44);
  border-radius: 50%;
}

.corner-flourish-left {
  left: 34px;
  bottom: 108px;
  border-left: 1px solid rgba(240, 216, 164, 0.52);
  border-bottom: 1px solid rgba(240, 216, 164, 0.52);
}

.corner-flourish-right {
  right: 34px;
  top: 90px;
  border-right: 1px solid rgba(240, 216, 164, 0.42);
  border-top: 1px solid rgba(240, 216, 164, 0.42);
}

.corner-flourish::before {
  width: 64px;
  height: 64px;
  inset: 26px auto auto 26px;
}

.corner-flourish::after {
  width: 98px;
  height: 98px;
  inset: auto 22px 22px auto;
}

.parallax-section {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #170709;
  color: #fffaf3;
}

.parallax-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: url("assets/photos/DSC_3392.jpg");
  background-size: cover;
  background-position: 50% 34%;
  background-attachment: fixed;
}

.parallax-photo {
  display: none;
}

.parallax-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 83, 98, 0.08), transparent 32%),
    linear-gradient(90deg, rgba(25, 5, 8, 0.58), rgba(25, 5, 8, 0.08) 48%, rgba(25, 5, 8, 0.58)),
    linear-gradient(0deg, rgba(25, 5, 8, 0.84), rgba(25, 5, 8, 0.08) 44%, rgba(25, 5, 8, 0.36));
}

.parallax-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 34vh 24px 24vh;
  text-align: center;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.48);
}

.parallax-copy h2 {
  width: min(100%, 760px);
  margin: 0 auto;
  font-family: var(--font-script);
  font-size: 78px;
  line-height: 0.86;
  font-weight: 400;
}

.parallax-flourish {
  position: absolute;
  z-index: 1;
  width: min(330px, 42vw);
  height: 96px;
  background: url("assets/decor/filigree.svg") center / contain no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.parallax-flourish-left {
  top: 72px;
  left: 42px;
  transform: rotate(-7deg);
}

.parallax-flourish-right {
  right: 42px;
  bottom: 62px;
  transform: rotate(173deg);
}

.details-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 27, 47, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(240, 216, 164, 0.24), rgba(255, 248, 239, 0)),
    #fffaf5;
}

.details-section::before,
.details-section::after,
.gallery-section::before,
.gallery-section::after,
.rsvp-section::before,
.rsvp-section::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 76px;
  background: url("assets/decor/filigree.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.details-section::before,
.gallery-section::before,
.rsvp-section::before {
  top: 26px;
  left: max(18px, calc(50% - 640px));
}

.details-section::after,
.gallery-section::after,
.rsvp-section::after {
  right: max(18px, calc(50% - 640px));
  bottom: 24px;
  transform: rotate(180deg);
}

.event-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  position: relative;
  min-height: 286px;
  padding: 28px;
  border: 1px solid rgba(200, 150, 60, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 235, 0.9));
  box-shadow: 0 18px 48px rgba(58, 34, 24, 0.1);
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(227, 27, 47, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.event-card-accent {
  border-color: rgba(227, 27, 47, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 236, 229, 0.94));
}

.event-time {
  margin: 0 0 28px;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.event-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-script);
  font-size: 30px;
  font-weight: 400;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(227, 27, 47, 0.24);
  border-radius: 999px;
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 250, 245, 0.68);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-link:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 27, 47, 0.48);
  background: #fffaf5;
}

.map-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.detail-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.dress-section {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 54px 24px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 83, 98, 0.32), transparent 34%),
    linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff8ef;
}

.dress-section > * {
  justify-self: auto;
}

.dress-section h2 {
  color: #fff8ef;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
}

.dress-section p {
  margin: 0;
  color: #ffe5dc;
  font-weight: 700;
}

.portraits-section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 520px));
  gap: 22px;
  justify-content: center;
  padding: 88px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(227, 27, 47, 0.13), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(200, 150, 60, 0.2), transparent 32%),
    linear-gradient(180deg, #fff9f0, #fff4e8);
}

.portrait-card {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(200, 150, 60, 0.64);
  border-radius: 8px;
  overflow: hidden;
  color: #fff8ef;
  box-shadow: var(--photo-shadow);
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(28, 4, 7, 0.86), rgba(28, 4, 7, 0.16) 58%, rgba(28, 4, 7, 0.06));
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: 1;
  border: 1px solid rgba(240, 216, 164, 0.52);
  border-radius: 8px;
  pointer-events: none;
}

.portrait-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transform: scale(1.012);
}

.portrait-card:nth-child(1) img {
  object-position: 50% 31%;
}

.portrait-card:nth-child(2) img {
  object-position: 50% 35%;
}

.portrait-card > div {
  position: relative;
  z-index: 1;
  padding: 36px;
}

.portrait-card h2 {
  width: min(100%, 420px);
  color: #fff8ef;
  font-family: var(--font-signature);
  font-size: 56px;
  line-height: 0.85;
}

.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff4e8, #fff9f0);
}

.gallery-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid button {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  padding: 5px;
  border: 1px solid rgba(200, 150, 60, 0.62);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(#fffaf2, #fffaf2) padding-box,
    linear-gradient(135deg, rgba(227, 27, 47, 0.42), rgba(200, 150, 60, 0.84)) border-box;
  cursor: zoom-in;
  box-shadow: var(--photo-shadow);
}

.gallery-grid button::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 248, 239, 0.56);
  border-radius: 5px;
  pointer-events: none;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 220ms ease;
}

.gallery-grid button:hover img {
  transform: scale(1.035);
}

.rsvp-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 27, 47, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(200, 150, 60, 0.15), rgba(255, 248, 239, 0)),
    #fffaf5;
}

.rsvp-form,
.success-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#fffdf9, #fffdf9) padding-box,
    linear-gradient(135deg, rgba(227, 27, 47, 0.45), rgba(200, 150, 60, 0.6)) border-box;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

fieldset.form-row {
  padding: 0;
  border: 0;
}

label,
legend {
  color: var(--ink);
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(36, 25, 21, 0.18);
  border-radius: 8px;
  background: #fffaf5;
  color: var(--ink);
  outline: none;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(227, 27, 47, 0.58);
  box-shadow: 0 0 0 4px rgba(227, 27, 47, 0.1);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented-control label {
  display: block;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(36, 25, 21, 0.16);
  border-radius: 8px;
  background: #fffaf5;
  color: var(--muted);
  text-align: center;
}

.segmented-control input:checked + span {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-color: var(--red);
  color: #fff8ef;
}

.deadline-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 18px;
  border-radius: 8px;
  background: rgba(184, 137, 66, 0.14);
  color: var(--muted);
}

.deadline-note strong {
  color: var(--red);
  font-size: 24px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.success-panel {
  text-align: center;
}

.success-panel .button {
  margin-top: 12px;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 32px 24px;
  background: #26060b;
  color: #ead9c7;
  text-align: center;
}

.site-footer p {
  margin: 0;
  max-width: min(100%, 520px);
}

.footer-brand {
  color: #fff8ef;
  font-family: var(--font-signature);
  font-size: 34px;
  line-height: 0.95;
}

.footer-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  font-weight: 600;
}

.footer-date span {
  display: inline-block;
}

.footer-date span + span::before {
  content: "|";
  margin-right: 10px;
  color: rgba(240, 216, 164, 0.58);
}

.music-control {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 216, 164, 0.36);
  border-radius: 999px;
  color: #fff8ef;
  font-size: 14px;
  font-weight: 850;
  background: rgba(72, 8, 16, 0.74);
  box-shadow: 0 16px 40px rgba(40, 8, 11, 0.28);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.music-control.is-playing {
  border-color: rgba(255, 248, 239, 0.5);
  background: rgba(142, 9, 25, 0.82);
}

.music-control.is-loading {
  cursor: progress;
}

.music-control .music-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.music-icon-pause,
.music-control.is-playing .music-icon-play {
  display: none;
}

.music-control.is-playing .music-icon-pause {
  display: block;
}

.music-embed {
  position: fixed;
  left: -240px;
  bottom: 0;
  width: 200px;
  height: 112px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lightbox {
  width: min(92vw, 860px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #130707;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.lightbox::backdrop {
  background: rgba(15, 5, 5, 0.76);
}

.lightbox img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: 50%;
  background: rgba(20, 7, 7, 0.74);
  color: #fff8ef;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.photo-frame {
  position: relative;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(240, 216, 164, 0.58);
  border-radius: 6px;
  pointer-events: none;
}

.photo-frame::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 152px;
  height: 44px;
  background: url("assets/decor/filigree.svg") center / contain no-repeat;
  opacity: 0.74;
  transform: rotate(180deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transition:
    opacity 1120ms ease,
    transform 1280ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1280ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  filter: blur(6px);
}

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 14px;
  }

  .hero {
    min-height: 94vh;
    min-height: 94dvh;
  }

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

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(22, 7, 8, 0.9) 0%, rgba(22, 7, 8, 0.46) 45%, rgba(22, 7, 8, 0.08) 100%),
      linear-gradient(90deg, rgba(22, 7, 8, 0.4), rgba(22, 7, 8, 0.08));
  }

  .hero-content {
    padding: 100px 18px 82px;
  }

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

  .hero-milestones {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .hero-fullnames {
    font-size: 15px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .countdown-band,
  .intro-section,
  .dress-section,
  .portraits-section,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .countdown-copy,
  .countdown-grid {
    justify-self: stretch;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .intro-section,
  .details-section,
  .gallery-section,
  .rsvp-section {
    padding: 64px 18px;
  }

  .parallax-section {
    min-height: 86vh;
    min-height: 86dvh;
  }

  .parallax-media {
    background-position: 50% 34%;
  }

  .parallax-copy {
    padding: 24vh 18px 18vh;
  }

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

  .parallax-flourish {
    width: min(230px, 54vw);
    opacity: 0.48;
  }

  .parallax-flourish-left {
    top: 22px;
    left: 16px;
  }

  .parallax-flourish-right {
    right: 16px;
    bottom: 16px;
  }

  .intro-copy h2,
  .section-heading h2,
  .dress-section h2,
  .portrait-card h2,
  .success-panel h2 {
    font-size: 34px;
  }

  .portrait-card {
    min-height: 560px;
  }

  .portraits-section {
    padding: 64px 18px;
  }

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

  .rsvp-form,
  .success-panel {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .brand-link {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .site-header {
    gap: 8px;
    padding: 10px;
  }

  .button {
    min-width: 0;
  }

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

  .hero-milestones {
    gap: 6px;
    font-size: 11px;
  }

  .hero-milestones span + span::before {
    width: 18px;
    margin-right: 7px;
  }

  .hero-fullnames {
    max-width: 290px;
    font-size: 13px;
    line-height: 1.25;
  }

  .hero-subtitle {
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
  }

  .corner-flourish {
    display: none;
  }

  .countdown-band {
    padding: 28px 18px;
  }

  .countdown-copy h2 {
    font-size: 28px;
  }

  .countdown-grid {
    gap: 6px;
  }

  .countdown-grid span {
    min-height: 68px;
    font-size: 10px;
  }

  .countdown-grid strong {
    font-size: 25px;
  }

  .event-card {
    min-height: 250px;
    padding: 22px;
  }

  .event-card h3 {
    font-size: 26px;
  }

  .dress-section {
    padding: 44px 18px;
  }

  .intro-section::before,
  .intro-section::after,
  .details-section::before,
  .details-section::after,
  .gallery-section::before,
  .gallery-section::after,
  .rsvp-section::before,
  .rsvp-section::after {
    width: 190px;
    opacity: 0.09;
  }

  .parallax-section {
    min-height: 680px;
  }

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

  .parallax-flourish {
    opacity: 0.28;
  }

  .parallax-flourish-left {
    display: none;
  }

  .portrait-card {
    min-height: 500px;
  }

  .portrait-card > div {
    padding: 24px;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    font-size: 30px;
  }

  .site-footer {
    padding: 32px 18px 88px;
  }

  .footer-date {
    display: grid;
    gap: 1px;
  }

  .footer-date span + span::before {
    content: none;
  }

  .music-control {
    left: 12px;
    top: 12px;
    bottom: auto;
    z-index: 21;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .music-control span {
    display: none;
  }
}

@media (max-width: 900px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }
}
