/* V8 / Refinements. Loads last; only overrides what is listed here. */

/* Display face for the large English headings. The font file is served from
   this repository, so visitors see it without installing anything. */
@font-face {
  font-family: 'Relationship of Melodrame';
  src: url('./fonts/relationship-of-melodrame.woff2') format('woff2'),
       url('./fonts/Relationship-of-melodrame.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root { --display: 'Relationship of Melodrame', var(--serif); }
.invitation-page .hero h1,
.invitation-page .note-words .quote,
.invitation-page .day-section h2,
.invitation-page .atlas-teaser h2,
.invitation-page .rsvp-copy h2,
.invitation-page .guestbook-copy h2,
.invitation-page .site-footer .footer-title {
  font-family: var(--display); font-weight: 400; letter-spacing: -.02em; font-synthesis: none;
}
/* The face has a single upright style: keep each <i> line's indent, never a faux slant. */
.invitation-page :is(.hero h1, .note-words .quote, .day-section h2, .atlas-teaser h2, .rsvp-copy h2, .guestbook-copy h2, .site-footer .footer-title) i {
  font-style: normal; letter-spacing: inherit;
}

/* 03 / Three map apps side by side. */
.route-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-link span:first-child { white-space: nowrap; }
.route-naver { background: #f8f7f3; }
.route-naver:hover { background: #d9ebe5; border-color: #387c76; }
@media (max-width: 700px) {
  .route-links { gap: 8px; }
  .route-link { gap: 4px; padding: 0 11px; }
  .route-link span:last-child { font-size: 20px; }
}

/* V8.1 / Size the display face to its own proportions. It is narrower and lighter
   than Bodoni, so the old sizes left each heading filling only about half its column. */
.invitation-page :is(.hero h1, .note-words .quote, .day-section h2, .atlas-teaser h2, .rsvp-copy h2, .guestbook-copy h2, .site-footer .footer-title) { word-spacing: -.06em; }
.invitation-page .hero h1 { font-size: clamp(100px, 12.2vw, 196px); }
.invitation-page .note-words .quote { font-size: clamp(72px, 9.6vw, 146px); line-height: 1.02; }
.invitation-page .day-section h2 { font-size: clamp(118px, 14.4vw, 220px); }
.invitation-page .atlas-teaser h2 { font-size: clamp(96px, 11.6vw, 180px); }
.invitation-page .rsvp-copy h2,
.invitation-page .guestbook-copy h2 { font-size: clamp(100px, 11.6vw, 176px); }
.invitation-page .site-footer .footer-title { font-size: clamp(120px, 22vw, 320px); }
@media (max-width: 700px) {
  .invitation-page .hero h1 { font-size: clamp(82px, 25vw, 104px); }
  .invitation-page .note-words .quote { font-size: clamp(60px, 18vw, 76px); }
  .invitation-page .day-section h2 { font-size: clamp(104px, 33vw, 136px); }
  .invitation-page .atlas-teaser h2 { font-size: clamp(70px, 21.5vw, 90px); }
  .invitation-page .rsvp-copy h2,
  .invitation-page .guestbook-copy h2 { font-size: clamp(92px, 29vw, 120px); }
  .invitation-page .site-footer .footer-title { font-size: clamp(110px, 34vw, 142px); }
}
/* The J's swash reaches left of its box: give it room so it isn't clipped at the screen edge. */
.invitation-page .site-footer .footer-title { padding-left: .12em; }

/* v4 / Match the "Our Story in Pictures." headline to nearby display sizes.
   simplify.css sizes this heading through #atlas-title, which outranks a class-only
   selector, so the id is carried here for the size to take effect. */
.invitation-page .atlas-teaser #atlas-title { font-size:clamp(106px,12.4vw,194px); }
@media(max-width:700px) {
  .invitation-page .atlas-teaser #atlas-title { font-size:clamp(78px,24vw,112px); }
}
@media(min-width:701px) and (max-width:900px) {
  .invitation-page .atlas-teaser #atlas-title { font-size:clamp(86px,12.4vw,112px); }
}
