:root {
  color-scheme: light;
  --ivory: #fffcf4;
  --ink: #102745;
  --teal: #185b62;
  --gold: #8c6227;
  --line: #c4a572;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #0b2040;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(12px, 4vw, 56px);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 100%, #175b69, #0b2040 74%);
}
main {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(100%, 990px);
  text-align: center;
  background: var(--ivory);
  box-shadow: 0 20px 65px #050e23a0;
  padding: clamp(39px, 5.5vh, 61px) clamp(24px, 5vw, 84px) clamp(51px, 7vh, 74px);
}
.frame {
  position: absolute;
  z-index: -1;
  inset: clamp(7px, 1.35vw, 16px);
  border: 1.5px solid #a88850;
  box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 5px #b89962;
  pointer-events: none;
}
.frame span {
  position: absolute;
  width: clamp(75px, 16vw, 193px);
  aspect-ratio: 430 / 446;
  background: url('/invitation-corner.png') center / contain no-repeat;
}
.frame span:nth-child(1) { top: 3.5px; left: 3.5px; }
.frame span:nth-child(2) { top: 3.5px; right: 3.5px; transform: scaleX(-1); }
.frame span:nth-child(3) { bottom: 3.5px; left: 3.5px; transform: scaleY(-1); }
.frame span:nth-child(4) { bottom: 3.5px; right: 3.5px; transform: scale(-1); }
.couple {
  display: block;
  width: clamp(158px, 21vw, 214px);
  height: auto;
  margin: -10px auto 9px;
  filter: brightness(1.09);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent, black 7% 94%, transparent),
    linear-gradient(to right, transparent, black 13% 89%, transparent);
  mask-composite: intersect;
}
.intro { margin: 0; font-size: clamp(1.08rem, 2.3vw, 1.45rem); font-style: italic; }
h1 {
  margin: 5px 0 12px;
  font-size: clamp(2.2rem, 8.5vw, 5.55rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.043em;
  color: var(--gold);
}
h1 em { font-weight: 400; }
.date { font-size: clamp(1.18rem, 2.65vw, 1.66rem); font-style: italic; margin: 0 0 6px; }
.start-time { margin: 0 0 6px; font-size: clamp(1rem, 2vw, 1.2rem); }
.place { color: var(--teal); margin: 0; font-size: 1.03rem; }
.countdown { width: min(100%, 570px); margin-top: clamp(23px, 4.8vh, 42px); }
.eyebrow, .unit {
  font: 650 0.67rem/1.5 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow { margin: 0; }
.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 12px 0 16px;
  padding: 11px 0;
}
.clock > div { display: grid; justify-items: center; gap: 3px; }
.clock > div + div { border-inline-start: 1px solid #e1cfac; }
.number {
  font-size: clamp(2rem, 8.2vw, 4.05rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums;
}
.times { color: var(--ink); font: 0.84rem/1.55 system-ui, sans-serif; }
.times p { margin: 4px 0; }
#local-line { color: var(--teal); }
.dot { color: var(--gold); }
footer { margin-top: clamp(18px, 3.6vh, 30px); max-width: 35rem; }
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ornament::before, .ornament::after {
  content: '';
  width: clamp(33px, 10vw, 78px);
  height: 1px;
  background: var(--line);
}
footer p { margin: 8px 0 0; line-height: 1.5; }
#invitation a { color: inherit; text-decoration: none; }
#invitation a:hover, #invitation a:focus-visible { text-decoration: underline; }
#livestream-status:empty { display: none; }
@media (max-width: 430px) {
  .unit { font-size: 0.57rem; letter-spacing: 0.075em; }
}
@media (prefers-reduced-motion: no-preference) {
  header, .countdown, footer { animation: arrive 620ms ease-out both; }
  .countdown { animation-delay: 70ms; }
  footer { animation-delay: 135ms; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
