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

:root {
  color-scheme: light;
  --forest: #315142;
  --forest-deep: #243b32;
  --gold: #a47e3e;
  --white: #ffffff;
  --paper: #e4e9e6;
  --ink: #2b332f;
  --muted: #6d746f;
  --border: rgba(36, 59, 50, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cinzel", Georgia, serif;
  font-synthesis: none;
  font-weight: 400;
}

::selection {
  color: var(--white);
  background: var(--forest-deep);
}

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

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2.5rem);
  place-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(24rem, 1.1fr);
  width: min(100%, 72rem);
  min-height: min(47rem, calc(100vh - 5rem));
  overflow: hidden;
  border: 1px solid rgba(183, 137, 56, 0.34);
  border-radius: 0.5rem;
  background: var(--white);
}

.photo-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: var(--forest-deep);
}

.couple-photo-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.7);
  background: var(--forest-deep);
  aspect-ratio: 2 / 3;
}

.couple-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.content-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4.75rem, 7vw, 6.5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.construction-notice {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid rgba(36, 59, 50, 0.28);
  color: var(--forest-deep);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.construction-notice span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--gold);
}

.monogram {
  width: clamp(8.5rem, 18vw, 12rem);
  height: auto;
  margin-bottom: 0.15rem;
}

.couple-names {
  position: relative;
  width: min(100%, 32rem);
  margin: 0;
  line-height: 0;
}

.couple-names img {
  display: block;
  width: 100%;
  height: auto;
}

.wedding-date {
  margin-top: 0.85rem;
  color: var(--forest);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 17rem);
  margin: 1.65rem 0 1.45rem;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 137, 56, 0.75));
}

.ornament span:last-child {
  transform: rotate(180deg);
}

.ornament i {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.countdown-section {
  width: min(100%, 32rem);
}

.countdown-section h2 {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--border);
}

.countdown-unit {
  min-width: 0;
  padding: 1rem 0.35rem 0.85rem;
}

.countdown-unit + .countdown-unit {
  border-left: 1px solid var(--border);
}

.countdown-unit strong {
  display: block;
  color: var(--forest-deep);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-unit span {
  display: block;
  margin-top: 0.45rem;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.countdown-message,
.noscript-message {
  margin: 1rem 0 0;
  color: var(--forest-deep);
  font-weight: 500;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .photo-column {
    padding: 0;
  }

  .content-column {
    min-height: 36rem;
    padding: 5.25rem 1.25rem 2.75rem;
  }

  .construction-notice {
    top: 1.1rem;
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .monogram {
    width: 8.5rem;
  }
}

@media (max-width: 420px) {
  .countdown-unit {
    padding-inline: 0.2rem;
  }

  .couple-names {
    width: min(100%, 24rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
