:root {
  --ivory: #fbfaf5;
  --linen: #d7d6d1;
  --sand: #a9998a;
  --sage: #d7d6d1;
  --sage-deep: #7a8692;
  --rose: #7a8692;
  --rose-soft: #e8edf0;
  --gold: #a9998a;
  --plum: #414052;
  --navy: #565c72;
  --navy-deep: #414052;
  --slate-blue: #7a8692;
  --deep-iris: #414052;
  --blue: #7a8692;
  --blue-soft: #e8edf0;
  --blue-pale: #f5f7f7;
  --floral-blue: #7a8692;
  --floral-blue-deep: #565c72;
  --ink: #242535;
  --muted: #4b5362;
  --paper: #fffdf8;
  --line: rgba(86, 92, 114, 0.34);
  --ornate-line: rgba(169, 153, 138, 0.82);
  --shadow: 0 22px 54px rgba(65, 64, 82, 0.18);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffefa 0%, var(--ivory) 42%, #eeece6 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.wall-mode .site-header,
body.wall-mode .site-footer,
body.wall-mode .page-hero,
body.wall-mode [data-photo-form],
body.wall-mode [data-gallery] section:nth-child(2) {
  display: none;
}

body.wall-mode {
  background: #11100e;
  color: var(--ivory);
}

body.wall-mode .section {
  padding: 24px;
}

body.wall-mode .gallery-tools {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: auto;
  margin: 0;
}

body.wall-mode [data-approve-all],
body.wall-mode [data-clear-photos] {
  display: none;
}

body.wall-mode .masonry {
  column-count: 3;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.brand__text {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.nav-toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle__line::before {
  transform: translateY(-7px);
}

.nav-toggle__line::after {
  transform: translateY(5px);
}

.nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 14px;
  left: 14px;
  display: none;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav.is-open {
  display: flex;
}

.nav__link {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__link:hover,
.nav__link.is-active {
  background: var(--blue-soft);
  color: var(--navy);
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 88px 20px 70px;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(65, 64, 82, 0.52), rgba(65, 64, 82, 0.94)),
    url("../images/couple/proposal-waterfall-wide.jpg") center / cover no-repeat;
}

.hero__content {
  width: min(690px, 100%);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
  position: relative;
}

.hero-crest,
.page-crest {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: contain;
}

.hero-crest {
  margin: 0 0 18px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section h2,
.timeline-item h2,
.quiz-shell h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(4.25rem, 18vw, 8.6rem);
  letter-spacing: 0;
}

.hero__date {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
}

.hero__tagline {
  max-width: 650px;
  margin: 12px 0 0;
  font-size: 1.04rem;
}

.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button-row--compact {
  margin-top: 16px;
}

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

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.16);
}

.button--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

.button--ghost {
  background: transparent;
}

.button--small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.button:disabled,
.choice:disabled {
  cursor: default;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  margin: 28px 0 0;
}

.countdown span {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.14);
  color: var(--ivory);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 1;
}

.section {
  position: relative;
  padding: 64px 20px;
  overflow: hidden;
}

.section--sage {
  background: linear-gradient(135deg, #f8f7f2, #e8e7e2);
}

.section--rose {
  background: linear-gradient(135deg, #fffdf8, #e8edf0);
}

.section__header {
  position: relative;
  max-width: 760px;
  margin: 0 auto 30px;
  padding-bottom: 24px;
  text-align: center;
}

.section__header::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: min(260px, 70vw);
  height: 16px;
  background:
    linear-gradient(90deg, transparent, var(--gold), transparent) center / 100% 2px no-repeat,
    radial-gradient(circle at center, var(--navy) 0 4px, transparent 5px);
  content: "";
  transform: translateX(50%);
  opacity: 0.62;
}

.section h2,
.page-hero h1 {
  color: var(--navy);
  font-size: clamp(2.25rem, 9vw, 4.6rem);
}

.section__header p,
.page-hero p,
.split p {
  color: var(--muted);
}

.page-hero {
  position: relative;
  padding: 74px 20px 48px;
  background:
    linear-gradient(rgba(251, 248, 241, 0.84), rgba(251, 248, 241, 0.96)),
    url("../images/couple/proposal-ring.jpg") center / cover no-repeat;
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  position: absolute;
  width: min(310px, 62vw);
  aspect-ratio: 7 / 4;
  background: url("../images/floral-bouquet.png") center / contain no-repeat;
  content: "";
  filter: invert(35%) sepia(20%) saturate(1170%) hue-rotate(179deg) brightness(92%) contrast(88%);
  opacity: 0.18;
  pointer-events: none;
}

.page-hero::before {
  top: 12px;
  left: -78px;
}

.page-hero::after {
  right: -86px;
  bottom: -52px;
  transform: rotate(180deg) scaleX(-1);
}

.page-hero__inner,
.split,
.info-grid,
.detail-grid,
.schedule-list,
.guide-grid,
.timeline,
.faq-list,
.interactive-grid,
.gallery-layout,
.message-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.page-hero__inner .page-crest,
.reply-card__header .page-crest {
  margin: 0 auto 18px;
}

.info-grid,
.detail-grid,
.interactive-grid,
.message-grid {
  display: grid;
  gap: 16px;
}

.info-card,
.detail-card,
.schedule-item,
.guide-card,
.play-card,
.message-card,
.form-panel,
.integration-note,
.quiz-shell,
.faq {
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, rgba(173, 156, 141, 0.88), rgba(46, 80, 111, 0.58)) border-box;
  box-shadow: 0 14px 34px rgba(33, 58, 84, 0.12);
}

.info-card,
.detail-card,
.schedule-item,
.guide-card,
.play-card,
.message-card,
.integration-note,
.quiz-shell {
  padding: 24px;
}

.info-card h3,
.detail-card h3,
.schedule-item h3,
.guide-card h2,
.play-card h3,
.photo-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

.info-card p,
.detail-card p,
.schedule-item p,
.guide-card p,
.play-card p,
.message-card p {
  color: var(--muted);
}

.split {
  display: grid;
  gap: 26px;
  align-items: center;
}

.feature-image {
  margin: 0;
}

.feature-image img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
  border: 2px solid var(--ornate-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  outline: 1px solid rgba(46, 80, 111, 0.42);
  outline-offset: 8px;
}

.feature-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  gap: 18px;
  align-items: center;
}

.timeline-item__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ornate-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline-item__content {
  padding: 4px;
}

.party-page {
  display: grid;
  gap: 46px;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.party-group .section__header {
  margin-bottom: 20px;
}

.party-grid {
  display: grid;
  gap: 16px;
}

.party-card {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, rgba(169, 153, 138, 0.9), rgba(86, 92, 114, 0.58)) border-box;
  box-shadow: 0 14px 34px rgba(65, 64, 82, 0.12);
}

.party-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.party-card__body {
  padding: 20px;
}

.party-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.05;
}

.party-card p {
  color: var(--muted);
}

.detail-grid {
  margin-top: 18px;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-item {
  display: grid;
  gap: 4px;
}

.schedule-item .eyebrow {
  color: var(--navy);
}

.schedule-item h3 {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  min-height: 58px;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.form-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.reply-card {
  position: relative;
  padding: clamp(44px, 8vw, 78px) clamp(28px, 8vw, 84px);
  overflow: hidden;
}

.reply-card::before {
  position: absolute;
  inset: 18px;
  background:
    url("../images/floral-sprig.png") left top / min(260px, 56vw) auto no-repeat,
    url("../images/floral-sprig.png") right bottom / min(260px, 56vw) auto no-repeat;
  content: "";
  filter: invert(35%) sepia(20%) saturate(1170%) hue-rotate(179deg) brightness(92%) contrast(88%);
  opacity: 0.24;
  pointer-events: none;
}

.reply-card::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(95, 127, 189, 0.34);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.reply-card__header {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  text-align: center;
}

.reply-card__header h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1;
}

.reply-card > *:not(.reply-card__header) {
  position: relative;
  z-index: 1;
}

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

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 800;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 80, 111, 0.34);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  font-weight: 500;
}

textarea {
  resize: vertical;
}

.segmented {
  display: grid;
  gap: 10px;
}

.segmented label,
.checkbox-grid label {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.segmented input,
.checkbox-grid input {
  width: 18px;
  min-height: 18px;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
}

.microcopy a {
  color: var(--navy);
  font-weight: 800;
}

.form-status,
.microcopy {
  color: var(--muted);
  font-size: 0.93rem;
}

.has-error input:invalid {
  border-color: #9f3d3d;
}

.integration-note {
  width: min(920px, 100%);
  margin: 24px auto 0;
}

code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  overflow-x: auto;
  border-radius: 8px;
  background: #2b2426;
  color: var(--ivory);
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.choice:hover,
.choice.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.choice.is-correct {
  border-color: #66755f;
  background: #edf1ea;
}

.choice.is-wrong {
  border-color: #9f6868;
  background: #f5eeee;
}

.answer-feedback {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-pale);
}

.answer-feedback p {
  margin: 0 0 10px;
}

.quiz-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.gallery-tools {
  width: min(1120px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px auto;
}

.gallery-layout {
  display: grid;
  gap: 34px;
}

.gallery-layout h2 {
  margin-bottom: 16px;
}

.masonry {
  column-count: 1;
  column-gap: 16px;
}

.photo-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 58, 92, 0.38);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(58, 39, 28, 0.08);
}

.photo-card img {
  width: 100%;
}

.photo-card div {
  padding: 16px;
}

.message-grid {
  margin-top: 24px;
}

.message-card p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 22px;
  color: var(--muted);
  position: relative;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  content: "*";
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.song-photo-grid {
  display: grid;
  gap: 14px;
}

.song-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ornate-line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.song-photo-grid figure:first-child {
  grid-row: span 2;
}

.song-photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.song-photo-grid figure:first-child img {
  height: 360px;
}

.song-photo-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.song-request-list {
  width: min(920px, 100%);
  margin: 34px auto 0;
}

.guide-grid {
  display: grid;
  gap: 18px;
}

.guide-card h2 {
  margin: 0 0 10px;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(86, 92, 114, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
}

.guide-list strong,
.guide-list a {
  color: var(--navy);
  text-decoration-thickness: 1px;
}

.guide-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 20px;
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  color: var(--ivory);
}

.footer-crest {
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  border-radius: 999px;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.site-footer p {
  margin: 0;
}

.site-footer .eyebrow {
  color: var(--sand);
}

.footer-link {
  font-weight: 800;
  text-decoration: none;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.easter-egg {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 999px;
  background: transparent;
  color: var(--sand);
  font-weight: 900;
  cursor: pointer;
}

.easter-message {
  max-width: 280px;
  color: var(--linen);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

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

@media (min-width: 680px) {
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .info-grid,
  .detail-grid,
  .party-grid,
  .interactive-grid,
  .message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .masonry {
    column-count: 2;
  }
}

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

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    max-width: calc(100% - 240px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav__link {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 84vh;
    padding-inline: max(42px, calc((100vw - 1180px) / 2));
  }

  .section {
    padding: 86px 28px;
  }

  .split,
  .timeline-item {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item:nth-child(even) .timeline-item__media {
    order: 2;
  }

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

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

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

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

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

  .song-photo-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .masonry {
    column-count: 3;
  }
}
