:root {
  --bg: #efe6dc;
  --paper: #fbf7f2;
  --paper-deep: #f2e8db;
  --ink: #241a18;
  --muted: #241a18;
  --accent: #8d1830;
  --accent-soft: #b54b62;
  --line: rgba(36, 26, 24, 0.14);
  --shadow: 0 20px 60px rgba(58, 30, 24, 0.14);
}

@font-face {
  font-family: "Bickham Script Pro";
  src:
    local("Bickham Script Pro Regular"),
    local("Bickham Script Pro"),
    url("./assets/fonts/BickhamScriptPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Didot";
  src: url("./assets/fonts/Didot-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Didot";
  src: url("./assets/fonts/Didot-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

@font-face {
  font-family: "Bickham Script Pro";
  src:
    local("Bickham Script Pro Semibold"),
    url("./assets/fonts/BickhamScriptPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bickham Script Pro";
  src:
    local("Bickham Script Pro Bold"),
    url("./assets/fonts/BickhamScriptPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(180deg, rgba(141, 24, 48, 0.08), transparent 24%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.25;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: url("./assets/floral-background.png") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(141, 24, 48, 0.04), transparent 30%, transparent 70%, rgba(141, 24, 48, 0.07));
}

.hero {
  padding: 34px;
  margin-bottom: 24px;
}

.cat-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 1;
  width: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-badge-label {
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 0.06em;
  font-size: 1.08rem;
  color: var(--accent);
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  white-space: nowrap;
}

.eyebrow,
.section-kicker,
.tiny {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
}

.hero-top {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero-title-block {
  width: min(680px, 100%);
}

h1,
h2 {
  margin: 10px 0 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 0.95;
}

h1 {
  max-width: none;
  white-space: nowrap;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 10em;
  margin: 18px auto 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  font-style: normal;
  line-height: 1.16;
  text-align: center;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
}

.hero-text,
.meta,
#invitationText,
#dresscodeText,
.form-note,
.wishes-text,
.timeline-copy,
.venue-detail span,
label span,
.form-message {
  font-family: "Inter", Arial, sans-serif;
  font-style: normal;
}

.hero-text,
.meta,
#invitationText,
#dresscodeText,
.form-note {
  max-width: 58ch;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.18rem;
}

.couple-stage {
  position: relative;
  isolation: isolate;
  margin-top: -190px;
  padding: 18px 18px 10px;
  border-radius: 30px;
  background: transparent;
  text-align: center;
}

.polaroid {
  width: min(240px, 100%);
  padding: 14px 14px 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(41, 20, 16, 0.12);
}

.photo-placeholder,
.venue-image {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 55%),
    linear-gradient(160deg, #d7c2b4, #efe6dc 65%, #ceb3a4);
  color: var(--accent);
}

.photo-placeholder.has-photo,
.venue-image.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-placeholder.has-photo span,
.couple-photo.has-photo span,
.venue-image.has-photo span {
  opacity: 0;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  border: 1px solid rgba(36, 26, 24, 0.1);
}

.photo-placeholder span {
  font-size: 4rem;
}

.couple-photo {
  position: relative;
  min-height: 660px;
  border-radius: 0;
  background-color: transparent;
  background-size: 124% auto;
  background-position: 40% bottom;
  background-repeat: no-repeat;
}

.couple-photo.has-photo {
  background-size: 124% auto;
  background-position: 40% bottom;
  background-repeat: no-repeat;
}

.couple-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 2.4rem;
}

.couple-caption[hidden] {
  display: none;
}

.photo-placeholder.accent {
  background: linear-gradient(160deg, #d9c6bd, #f8f0e8 60%, #ead9cf);
}

.polaroid p {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1.75rem;
}

.cat-polaroid {
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.cat-polaroid #catPhoto {
  aspect-ratio: auto;
  width: 100%;
  min-height: 158px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.cat-polaroid #catPhoto.has-photo {
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

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

.content-grid section {
  padding: 30px;
}

@media (min-width: 841px) {
  .hero {
    min-height: 720px;
    padding: 48px 46px 34px;
  }

  .cat-badge {
    top: auto;
    right: 34px;
    bottom: 32px;
    width: 130px;
  }

  .couple-stage {
    margin-top: 26px;
    padding: 0 120px 0;
  }

  .couple-photo,
  .couple-photo.has-photo {
    min-height: 650px;
    background-size: 92% auto;
    background-position: center bottom;
  }
}

.intro-card,
.photo-card,
.rsvp-card,
.countdown-card {
  grid-column: span 2;
}

.photo-card {
  padding: 18px;
}

.photo-card-image-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.35);
}

.photo-card-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.date-box {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(141, 24, 48, 0.04), rgba(141, 24, 48, 0.08));
}

.date-number {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--accent);
  letter-spacing: 0.08em;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-day {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day strong {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-day span {
  margin-top: 8px;
  font-size: 1.45rem;
}

.calendar-day.is-highlight {
  background: var(--accent);
  color: #fff;
}

.calendar-day.is-highlight strong {
  color: rgba(255, 255, 255, 0.78);
}

.venue-visual {
  margin: 20px 0 18px;
}

.venue-image {
  min-height: 260px;
  border-radius: 22px;
  border: 1px solid rgba(36, 26, 24, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
}

.venue-details {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.venue-detail {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(141, 24, 48, 0.05);
  border: 1px solid rgba(36, 26, 24, 0.08);
}

.venue-detail strong,
.venue-detail span {
  display: block;
}

.venue-detail strong {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
}

.venue-detail span {
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(141, 24, 48, 0.24);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(141, 24, 48, 0.24);
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #721126;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(141, 24, 48, 0.08);
  color: #721126;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.timeline-card h2 {
  max-width: 10em;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.timeline-item {
  position: relative;
  display: block;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 42px;
  text-align: center;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(720px, calc(100vw - 72px));
  height: 18px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg width='720' height='18' viewBox='0 0 720 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 9 C45 1 95 17 150 10 S250 4 310 9 S405 17 465 9 S565 2 625 8 S690 6 720 5' fill='none' stroke='%238d1830' stroke-width='2' stroke-linecap='round' opacity='.72'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-time {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.05;
}

.timeline-title {
  margin: 8px 0 6px;
  font-size: 1.75rem;
  color: var(--accent);
}

.timeline-copy {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  font-size: 1.36rem;
}

.wishes-text {
  margin: 22px 0 0;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.12rem;
}

.wishes-text p {
  margin: 0 0 16px;
}

.wishes-text p:last-child {
  margin-bottom: 0;
}

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

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

.rsvp-form label span {
  color: var(--ink);
  font-size: 1.08rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(36, 26, 24, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.08rem;
  font-family: "Inter", Arial, sans-serif;
  font-style: normal;
}

input::placeholder,
textarea::placeholder {
  color: rgba(36, 26, 24, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(141, 24, 48, 0.18);
  border-color: var(--accent-soft);
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
}

.countdown-card {
  padding: 34px 30px;
  text-align: center;
}

.countdown-value {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.3;
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .hero,
  .content-grid section {
    padding: 22px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .intro-card,
  .photo-card,
  .rsvp-card,
  .countdown-card {
    grid-column: span 1;
  }

  .hero-top {
    display: block;
    padding-top: 0;
  }

  .cat-badge {
    position: static;
    width: min(132px, 42vw);
    margin: 0 0 18px auto;
  }

  .timeline-item {
    max-width: 100%;
  }

  .couple-photo {
    min-height: 500px;
  }

  .countdown-value {
    font-size: clamp(1.4rem, 5vw, 2.1rem);
  }
}

@media (max-width: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .page-shell {
    width: min(100% - 12px, 1120px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hero,
  .content-grid section {
    padding: 18px;
  }

  .calendar-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }

  h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 9.5vw, 2.65rem);
    line-height: 1.05;
  }

  .hero-subtitle {
    max-width: 9.2em;
    margin-top: 12px;
    font-size: clamp(1.25rem, 6.4vw, 1.8rem);
    line-height: 1.16;
  }

  h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.55rem);
  }

  .polaroid {
    width: min(220px, 100%);
  }

  .hero-top {
    display: block;
    padding-top: 0;
  }

  .hero-top h1 {
    margin-top: 32px;
    margin-bottom: 18px;
  }

  .cat-badge {
    order: 3;
    align-self: flex-end;
    width: min(112px, 36vw);
    margin-top: 18px;
    margin-bottom: 0;
  }

  .cat-badge-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }

  .couple-stage {
    order: 2;
    margin-top: -170px;
    padding: 0;
  }

  .couple-photo {
    min-height: 600px;
    background-size: 144% auto;
    background-position: 40% 0;
  }

  .cat-polaroid #catPhoto {
    min-height: 92px;
  }

  .hero-text,
  .meta,
  #invitationText,
  #dresscodeText,
  .form-note,
  .timeline-copy,
  .venue-detail span,
  .wishes-text,
  .countdown-value,
  input,
  select,
  textarea,
  .form-message {
    font-size: 1rem;
  }

  .timeline-title {
    font-size: 1.45rem;
  }

  .timeline-time {
    font-size: 1.75rem;
  }

  .timeline-copy {
    font-size: 1.2rem;
  }

  .timeline-item {
    padding-bottom: 36px;
  }

  .timeline-item::after {
    bottom: 14px;
    width: calc(100vw - 40px);
  }

  .date-number {
    font-size: 2.2rem;
    text-align: center;
  }

  .calendar-day {
    min-width: 0;
    padding: 8px 2px;
    border-radius: 12px;
  }

  .calendar-day strong {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
  }

  .calendar-day span {
    margin-top: 4px;
    font-size: 0.92rem;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .countdown-value {
    line-height: 1.5;
  }

}
