/*
 * Public save-the-date page
 *
 * Every selector is rooted beneath .save-the-date-page so the private
 * invitation and RSVP experience continue to inherit only styles.css.
 */

body.save-the-date-page {
  /* Dominant colors sampled from the supplied original artwork. */
  --save-navy: #0a1b2e;
  --save-navy-soft: #112337;
  --save-navy-rgb: 10, 27, 46;
  --save-gold: #a27626;
  --save-gold-ink: #8f6d26;
  --save-gold-soft: #b4965b;
  --save-silver: #ededec;
  --save-white: #f8f8f6;
  --save-paper: #ffffff;
  --save-charcoal: #252d2f;
  --save-muted: #62666b;
  --save-display-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --page-width: 1120px;
  --page-padding: clamp(18px, 4vw, 44px);
  --ink: var(--save-charcoal);
  --muted: var(--save-muted);
  --line: rgba(var(--save-navy-rgb), 0.16);
  --soft: var(--save-white);
  --serif: var(--save-display-font);
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow-x: hidden;
  color: var(--save-charcoal);
  background:
    radial-gradient(circle at 8% 18%, rgba(162, 118, 38, 0.065), transparent 23rem),
    radial-gradient(circle at 94% 39%, rgba(var(--save-navy-rgb), 0.075), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--save-white) 58%, #f4f1ea 100%);
  font-family: "Karla", Arial, sans-serif;
}

body.save-the-date-page::before {
  position: fixed;
  z-index: -1;
  top: clamp(9rem, 22vh, 15rem);
  right: max(-0.13em, calc((100vw - 1280px) / 2));
  color: rgba(var(--save-navy-rgb), 0.025);
  content: "80";
  font-family: var(--save-display-font);
  font-size: clamp(18rem, 37vw, 36rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.13em;
  line-height: 0.7;
  pointer-events: none;
  user-select: none;
}

.save-the-date-page .skip-link {
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  border: 2px solid var(--save-white);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--save-white);
  background: var(--save-navy);
  box-shadow: 0 8px 24px rgba(10, 27, 46, 0.25);
  font-weight: 700;
  text-decoration: none;
}

.save-the-date-page .skip-link:focus-visible {
  outline: 3px solid var(--save-gold);
  outline-offset: 3px;
}

.save-the-date-page .page-shell {
  position: relative;
  box-sizing: border-box;
  width: min(100%, var(--page-width));
  min-width: 0;
  overflow-x: clip;
  padding-right: var(--page-padding);
  padding-bottom: clamp(32px, 6vw, 72px);
  padding-left: var(--page-padding);
}

.save-the-date-page .site-header {
  position: relative;
  padding: clamp(30px, 4.5vw, 52px) 0 clamp(18px, 2.5vw, 28px);
  text-align: center;
}

.save-the-date-page .site-header::after {
  display: block;
  width: min(100%, 260px);
  height: 1px;
  margin: clamp(18px, 2.5vw, 26px) auto 0;
  background: linear-gradient(90deg, transparent, var(--save-gold) 28%, var(--save-navy-soft) 72%, transparent);
  content: "";
}

.save-the-date-page .site-header .eyebrow {
  color: var(--save-gold-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.save-the-date-page .site-header h1 {
  margin: 4px 0 0;
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.save-the-date-page .site-header-intro {
  max-width: 33rem;
  margin: 10px auto 0;
  color: var(--save-muted);
  font-size: clamp(0.82rem, 1.5vw, 0.94rem);
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.save-the-date-page #main-content {
  position: relative;
  min-width: 0;
}

.save-the-date-page .hero {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 36px) 0 clamp(54px, 7vw, 84px);
  text-align: center;
}

.save-the-date-page .hero::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -4%;
  color: rgba(var(--save-navy-rgb), 0.028);
  content: "80";
  font-family: var(--save-display-font);
  font-size: clamp(15rem, 38vw, 27rem);
  font-style: italic;
  letter-spacing: -0.14em;
  line-height: 0.75;
  pointer-events: none;
  user-select: none;
}

.save-the-date-page .hero-poster {
  position: relative;
  width: min(100%, 390px);
  min-width: 0;
  margin: 0 auto;
  border: 1px solid rgba(var(--save-navy-rgb), 0.42);
  padding: clamp(9px, 2.7vw, 15px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 237, 236, 0.94)),
    var(--save-silver);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 45px rgba(10, 27, 46, 0.14),
    0 5px 14px rgba(37, 45, 47, 0.08);
}

.save-the-date-page .hero-poster::before {
  position: absolute;
  z-index: -1;
  inset: -6px;
  border: 1px solid rgba(162, 118, 38, 0.3);
  content: "";
  pointer-events: none;
}

.save-the-date-page .hero-poster::after {
  position: absolute;
  right: clamp(18px, 4vw, 30px);
  bottom: -1px;
  left: clamp(18px, 4vw, 30px);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--save-gold), transparent);
  content: "";
  pointer-events: none;
}

.save-the-date-page .hero-poster img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  background: var(--save-silver);
  box-shadow: 0 1px 8px rgba(10, 27, 46, 0.08);
  transition: filter 350ms ease, transform 350ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.save-the-date-page .event-summary {
  min-width: 0;
  max-width: 570px;
  margin: 0 auto;
  padding-top: clamp(35px, 8vw, 52px);
}

.save-the-date-page .save-the-date-title {
  margin: 0;
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(3.15rem, 12vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-wrap: balance;
}

.save-the-date-page .save-the-date-title::after {
  display: block;
  width: 54px;
  height: 3px;
  margin: 20px auto 22px;
  background: var(--save-gold);
  content: "";
}

.save-the-date-page .event-date {
  margin: 0;
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.save-the-date-page .event-theme {
  max-width: 29rem;
  margin: clamp(21px, 5vw, 28px) auto 0;
  color: var(--save-charcoal);
  font-family: var(--save-display-font);
  font-size: clamp(1.18rem, 4.6vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.save-the-date-page .countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 440px);
  min-width: 0;
  margin: clamp(24px, 5vw, 34px) auto 22px;
  border: 0;
  border-top: 1px solid rgba(var(--save-navy-rgb), 0.22);
  border-bottom: 1px solid rgba(var(--save-navy-rgb), 0.22);
  padding: 26px 0 13px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68) 18%, rgba(255, 255, 255, 0.68) 82%, transparent);
}

.save-the-date-page .countdown::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  color: var(--save-muted);
  content: "Until we celebrate";
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.save-the-date-page .countdown-unit {
  min-width: 0;
  gap: 3px;
  padding: 0 clamp(3px, 1.8vw, 10px);
}

.save-the-date-page .countdown-unit + .countdown-unit {
  border-left-color: rgba(var(--save-navy-rgb), 0.16);
}

.save-the-date-page .countdown-value {
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.save-the-date-page .countdown-label {
  color: var(--save-muted);
  font-size: clamp(0.54rem, 2.2vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.save-the-date-page .countdown.is-complete {
  display: block;
  min-height: 74px;
  padding: 32px 12px 16px;
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
}

.save-the-date-page .countdown.is-complete::before {
  content: "Josephine at 80";
}

.save-the-date-page .countdown.is-event-day::before,
.save-the-date-page .countdown.is-unavailable::before {
  content: "Josephine at 80";
}

.save-the-date-page .countdown.is-event-day,
.save-the-date-page .countdown.is-unavailable {
  min-height: 74px;
  padding-top: 32px;
  padding-bottom: 16px;
}

.save-the-date-page .countdown-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--save-navy);
  font-family: var(--save-display-font);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  font-weight: 600;
}

.save-the-date-page .save-the-date {
  width: min(100%, 380px);
  gap: 8px;
  margin: 0 auto clamp(25px, 5vw, 34px);
}

.save-the-date-page .save-the-date-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  gap: 10px;
  border: 1px solid var(--save-navy);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--save-white);
  background: var(--save-navy-soft);
  box-shadow: 0 10px 23px rgba(10, 27, 46, 0.19);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.095em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.save-the-date-page .calendar-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.save-the-date-page .save-the-date-button:hover {
  border-color: var(--save-navy);
  outline: 0;
  background: var(--save-navy);
  box-shadow: 0 13px 28px rgba(10, 27, 46, 0.25);
  transform: translateY(-2px);
}

.save-the-date-page .save-the-date-button:active,
.save-the-date-page .save-the-date-button.is-pressed {
  box-shadow: 0 5px 12px rgba(10, 27, 46, 0.22);
  transform: translateY(1px);
}

.save-the-date-page .save-the-date-button:focus-visible {
  border-color: var(--save-white);
  outline: 3px solid var(--save-gold);
  outline-offset: 3px;
  background: var(--save-navy);
}

.save-the-date-page .save-the-date-help {
  margin: 0;
  color: var(--save-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.save-the-date-page #details {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 2px;
  padding: clamp(46px, 8vw, 74px) clamp(22px, 8vw, 74px);
  color: var(--save-white);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(135deg, var(--save-navy), var(--save-navy-soft));
  box-shadow: 0 22px 50px rgba(10, 27, 46, 0.18);
}

.save-the-date-page #details::before {
  position: absolute;
  z-index: -1;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid rgba(237, 237, 236, 0.24);
  content: "";
  pointer-events: none;
}

.save-the-date-page #details::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-0.2em, -3vw, -0.08em);
  color: rgba(248, 248, 246, 0.055);
  content: "80";
  font-family: var(--save-display-font);
  font-size: clamp(14rem, 32vw, 25rem);
  font-style: italic;
  letter-spacing: -0.14em;
  line-height: 0.7;
  pointer-events: none;
  transform: translateY(-45%);
  user-select: none;
}

.save-the-date-page #details .section-heading {
  position: relative;
  margin-bottom: 24px;
}

.save-the-date-page #details .section-heading::after {
  display: block;
  width: 64px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--save-silver) 0 68%, var(--save-gold) 68% 100%);
  content: "";
}

.save-the-date-page #details .section-kicker {
  color: #daccae;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.save-the-date-page #details .section-heading h2 {
  max-width: 35rem;
  margin: 8px auto 0;
  color: var(--save-white);
  font-family: var(--save-display-font);
  font-size: clamp(2rem, 7vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.save-the-date-page #details .section-intro {
  position: relative;
  max-width: 39rem;
  margin: 0 auto;
  color: rgba(248, 248, 246, 0.87);
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.75;
  text-wrap: balance;
}

.save-the-date-page.is-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 360ms ease var(--reveal-delay, 0ms),
    transform 440ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms);
}

.save-the-date-page.is-reveal-ready [data-reveal="poster"] {
  --reveal-delay: 70ms;
}

.save-the-date-page.is-reveal-ready [data-reveal="summary"] {
  --reveal-delay: 150ms;
}

.save-the-date-page.is-reveal-ready [data-reveal="poster"] {
  transform: translateY(12px) scale(0.985);
}

.save-the-date-page.is-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.save-the-date-page [data-countdown-status],
.save-the-date-page .countdown-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .save-the-date-page .hero-poster:hover img {
    filter: saturate(1.025) contrast(1.015);
    transform: scale(1.006);
  }
}

@media (min-width: 900px) {
  .save-the-date-page .site-header {
    padding-top: 36px;
    padding-bottom: 16px;
  }

  .save-the-date-page .site-header::after {
    margin-top: 18px;
  }

  .save-the-date-page .hero {
    display: grid;
    grid-template-columns: minmax(360px, 474px) minmax(0, 1fr);
    gap: clamp(54px, 7vw, 88px);
    align-items: start;
    padding-top: 26px;
    text-align: left;
  }

  .save-the-date-page .hero::after {
    position: absolute;
    top: 11%;
    bottom: 15%;
    left: calc(474px + clamp(27px, 3.5vw, 44px));
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(var(--save-navy-rgb), 0.17) 18%, rgba(var(--save-navy-rgb), 0.17) 82%, transparent);
    content: "";
    pointer-events: none;
  }

  .save-the-date-page .hero-poster {
    width: 100%;
    max-width: 474px;
    margin: 0;
    padding: 14px;
  }

  .save-the-date-page .event-summary {
    align-self: center;
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 10px 0;
  }

  .save-the-date-page .save-the-date-title {
    font-size: clamp(4.25rem, 6.6vw, 5.45rem);
  }

  .save-the-date-page .save-the-date-title::after {
    margin-right: 0;
    margin-left: 0;
  }

  .save-the-date-page .event-theme {
    margin-right: 0;
    margin-left: 0;
  }

  .save-the-date-page .countdown,
  .save-the-date-page .save-the-date {
    margin-right: 0;
    margin-left: 0;
  }

  .save-the-date-page .countdown::before {
    text-align: left;
  }

  .save-the-date-page .countdown-unit:first-of-type {
    padding-left: 0;
  }

  .save-the-date-page #details {
    margin-top: 6px;
  }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .save-the-date-page .hero {
    grid-template-columns: minmax(330px, 42%) minmax(0, 1fr);
    gap: clamp(46px, 6vw, 64px);
  }

  .save-the-date-page .hero::after {
    display: none;
  }

  .save-the-date-page .save-the-date-title {
    font-size: clamp(3.8rem, 6.4vw, 4.8rem);
  }

  .save-the-date-page .event-theme {
    margin-top: 20px;
  }

  .save-the-date-page .countdown {
    margin-top: 24px;
  }
}

@media (max-width: 899px) {
  .save-the-date-page .page-shell {
    width: min(100%, 720px);
  }

  .save-the-date-page .hero::before {
    top: 41%;
    right: -14%;
  }
}

@media (max-width: 520px) {
  body.save-the-date-page {
    --page-padding: clamp(16px, 5vw, 22px);
  }

  body.save-the-date-page::before {
    display: none;
  }

  .save-the-date-page .site-header {
    padding-top: 27px;
    padding-bottom: 12px;
  }

  .save-the-date-page .site-header::after {
    margin-top: 16px;
  }

  .save-the-date-page .site-header h1 {
    font-size: clamp(2.3rem, 12vw, 3.15rem);
  }

  .save-the-date-page .hero {
    padding-top: 19px;
    padding-bottom: 52px;
  }

  .save-the-date-page .hero::before {
    display: none;
  }

  .save-the-date-page .hero-poster {
    width: min(100%, 350px);
  }

  .save-the-date-page .event-summary {
    padding-top: 38px;
  }

  .save-the-date-page .save-the-date-title {
    font-size: clamp(3.2rem, 17vw, 4.5rem);
  }

  .save-the-date-page .save-the-date-title::after {
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .save-the-date-page .countdown {
    margin-top: 25px;
  }

  .save-the-date-page #details {
    margin-right: -4px;
    margin-left: -4px;
  }
}

@media (max-width: 350px) {
  .save-the-date-page .countdown-unit {
    padding-right: 2px;
    padding-left: 2px;
  }

  .save-the-date-page .countdown-label {
    font-size: 0.5rem;
    letter-spacing: 0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .save-the-date-page *,
  .save-the-date-page *::before,
  .save-the-date-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .save-the-date-page.is-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .save-the-date-page .hero-poster,
  .save-the-date-page #details {
    border: 1px solid CanvasText;
  }

  .save-the-date-page .save-the-date-button {
    border: 2px solid ButtonText;
  }

  .save-the-date-page .save-the-date-button:focus-visible,
  .save-the-date-page .skip-link:focus-visible {
    outline: 3px solid Highlight;
  }
}
