/* Clear upright digits: the numeral 1 must not resemble a Roman I. */
.event-calendar strong,
.grand-countdown b,
.mini-countdown b,
.story-timeline time,
.event-year,
.event-date,
.event-facts span,
.event-place,
.entrance-footer p,
input[inputmode="numeric"], input[type="number"], input[type="date"] {
  font-family: var(--sans);
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.event-calendar strong { font-family: var(--sans); font-size: 25px; font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.grand-countdown b { font-family: var(--sans); font-size: clamp(32px,4.5vw,51px); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; }
.mini-countdown b { font-family: var(--sans); font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.story-timeline time { font-family: var(--sans); font-size: 20px; font-weight: 400; letter-spacing: -.02em; padding-block: 7px; }
/* Decorative illustrations stay alongside the names, without adding a new screen. */
.personal-identity { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: 12px; width: 100%; max-width: 510px; margin-inline: auto; }
.personal-identity .display-names strong { font-size: clamp(58px,7vw,86px); }
.personal-identity .display-names .amp { font-size: 22px; margin-block: 6px; }
.couple-portrait { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; min-height: 260px; }
.couple-portrait img { position: relative; z-index: 1; display: block; width: 100%; max-width: 220px; height: 285px; object-fit: contain; filter: drop-shadow(0 10px 10px #1c121a32); transform-origin: 50% 95%; animation: couple-sway 7s ease-in-out infinite; }
.couple-halo { position: absolute; inset: 8% 0 1%; border: 1px solid #d2af6e33; border-radius: 50% 50% 5px 5px; background: radial-gradient(ellipse at 50% 70%,#d9b77022,transparent 72%); }
.couple-spark { position: absolute; z-index: 2; color: #efd79d; pointer-events: none; animation: couple-shimmer 4s ease-in-out infinite; }
.couple-spark-one { top: 12%; left: 0; font-size: 22px; }
.couple-spark-two { top: 32%; right: 0; font-size: 13px; animation-delay: -2s; }
@keyframes couple-sway { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes couple-shimmer { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.1); } }
@media (max-width:640px) {
  .grand-countdown b { font-size: 32px; }
  .mini-countdown b { font-size: 23px; }
  .story-timeline time { font-size: 16px; }
  .personal-identity { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 8px; }
  .personal-identity .display-names strong { font-size: clamp(47px,13.8vw,63px); }
  .personal-identity .display-names .amp { font-size: 19px; }
  .couple-portrait { min-height: 190px; }
  .couple-portrait img { height: 208px; }
  .couple-spark-one { font-size: 15px; }
  .couple-spark-two { font-size: 10px; }
}
@media (max-width:360px) {
  .grand-countdown b { font-size: 28px; }
  .event-calendar strong { font-size: 23px; }
  .personal-identity .display-names strong { font-size: 47px; }
  .couple-portrait img { height: 180px; }
}
/* A portrait album is the visual centrepiece beneath the story timeline. */
.story-portraits { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; max-width: 780px; margin: 65px auto 0; padding-top: 40px; border-top: 1px solid #cdb16f40; }
.story-portraits::before { content: '✧'; position: absolute; top: -15px; left: calc(50% - 22px); width: 44px; background: #1d3d33; color: #d8bd7a; font-size: 24px; text-align: center; }
.story-portrait { position: relative; display: grid; place-items: end center; isolation: isolate; min-width: 0; margin: 0; height: 410px; padding: 18px 17px 0; overflow: hidden; border: 1px solid #c8af704f; border-radius: 48% 48% 8px 8px / 28% 28% 8px 8px; background: radial-gradient(ellipse at 50% 45%,#c4b37f18,transparent 70%),linear-gradient(145deg,#5e7e5b22,#08281f22); box-shadow: inset 0 1px #e9d29722,0 12px 30px #091d171c; }
.story-portrait::after { position: absolute; z-index: -1; inset: 10px; border: 1px solid #c8af7029; border-radius: inherit; content: ''; }
.story-portrait img { display: block; width: 100%; height: 100%; max-height: 385px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 9px #051b1533); transform-origin: bottom center; animation: portrait-breathe 7s ease-in-out infinite; animation-play-state: paused; }
.portrait-back img { animation-name: portrait-walk; animation-duration: 4.5s; }
.couple-portrait img, .couple-portrait .couple-spark { animation-play-state: paused; }
.animated-portrait.is-visible-portrait img, .animated-portrait.is-visible-portrait .couple-spark { animation-play-state: running; }
@keyframes portrait-breathe { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-4px) rotate(.5deg); } }
@keyframes portrait-walk { 0%,50%,100% { transform: translateY(0) rotate(-.4deg); } 25%,75% { transform: translateY(-3px) rotate(.4deg); } }
@media (max-width: 640px) {
  .story-portraits { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 45px; padding-top: 30px; }
  .story-portrait { height: 225px; padding: 12px 8px 0; }
  .story-portrait img { max-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .couple-portrait img, .couple-spark, .story-portrait img { animation: none !important; }
}
