@font-face {
  font-family: "Libre Caslon Display";
  src: url("./fonts/LibreCaslonDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root { color-scheme: dark; --paper: #FAEBD7; --ink: #152238; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Georgia, "Times New Roman", serif; }
.invitation { width: min(100%, 900px); margin: auto; background: var(--ink); text-align: center; }
.invitation-hero {
  padding: 48px 16px 40px;
  background: var(--paper);
  color: var(--ink);
  /* Extend this section's background across the desktop gutters. */
  border-image: linear-gradient(var(--paper), var(--paper)) fill 0 / 0 / 0 100vw;
}
.eyebrow { margin: 0 0 28px; font: 10px/1.8 "Courier New", monospace; letter-spacing: 3px; }
.hero-quote { margin: 10px 0 24px; font: italic clamp(30px, 6vw, 48px)/1.25 Georgia, serif; }
.message { font-size: 15px; line-height: 1.9; }
h1[tabindex="-1"]:focus { outline: none; }
.content-block { max-width: 670px; margin: auto; padding: 76px 32px; }
h2 { margin: 0 0 30px; font-size: clamp(30px, 5vw, 45px); line-height: 1.25; font-weight: 400; }
.celebration { border-top: 1px solid rgb(250 235 215 / .2); }
#celebration-title { font-family: "Libre Caslon Display", Georgia, serif; }
.dress-code { margin: 38px 0 8px; }
.dress-code h3 { margin: 0 0 20px; font: clamp(30px, 5vw, 45px)/1.25 "Libre Caslon Display", Georgia, serif; font-weight: 400; }
.dress-code-colors { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.dress-code-swatch { display: block; width: clamp(56px, 12vw, 84px); aspect-ratio: 1; border: 1px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px rgb(250 235 215 / .12); }
.dress-code-swatch-blush { background: #D4A88F; }
.dress-code-swatch-champagne {
  background: linear-gradient(115deg, #8f806d 0%, #e7dccb 16%, #b9a88f 30%, #f6eddf 43%, #a89985 57%, #eee3d3 72%, #b5a48d 86%, #8c7d6b 100%);
  border-color: #e7d9c7;
  box-shadow: inset 0 1px 3px rgb(255 255 255 / .7), inset 0 -3px 6px rgb(55 42 26 / .3), 0 0 0 1px rgb(250 235 215 / .12), 0 2px 6px rgb(0 0 0 / .25);
}
.dress-code-swatch-black { background: #252323; }
.dress-code-swatch-pink { background: #DCA7AC; }
time { display: block; margin: 32px 0; }
.date { display: block; font-size: 32px; letter-spacing: 3px; }
.hour { display: block; margin-top: 12px; font: 14px/1.5 "Courier New", monospace; letter-spacing: 3px; }
.venue { margin: 35px 0; }
.venue h2 { margin-bottom: 18px; font-style: italic; }
.ballroom, address { font: 12px/1.9 "Courier New", monospace; letter-spacing: .5px; }
address { max-width: 360px; margin: auto; font-style: normal; }
.map { display: inline-block; margin-top: 28px; padding: 14px 24px; border: 1px solid var(--paper); color: var(--ink); background: var(--paper); font: 12px/1.5 "Courier New", monospace; text-decoration: none; }
.map:hover { color: var(--paper); background: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.closing { font-size: 15px; line-height: 1.8; font-style: italic; }
.countdown { display: flex; justify-content: center; gap: 22px; margin: 48px 0; }
.countdown[hidden] { display: none; }
.countdown strong { display: block; font: 22px/1.5 "Courier New", monospace; font-weight: 400; }
.countdown span { font: 8px/1.5 "Courier New", monospace; letter-spacing: 1px; }
.scroll-note { display: inline-flex; flex-direction: column; gap: 15px; color: var(--paper); font: 10px/1.5 "Courier New", monospace; letter-spacing: 2px; text-decoration: none; }
.scroll-note span { font-size: 24px; }
.chapter-photo { position: relative; margin: 0; }
.chapter-photo img { display: block; width: 100%; height: auto; }
.hero-photo { width: min(100%, 533px); margin-inline: auto; }
.chapter-photo figcaption { position: absolute; inset: auto 0 0; padding: 70px 24px 40px; background: linear-gradient(transparent, rgb(21 34 56 / .65)); color: var(--paper); font: italic clamp(24px, 4vw, 40px)/1.3 Georgia, serif; }
.story p, .invitation-footer p { font-size: 16px; line-height: 1.95; }
.story .eyebrow, .invitation-footer .eyebrow { font-size: 10px; line-height: 1.8; }
#our-story, .story-chapter { max-width: 900px; }
#story-title, .story-chapter-title { font-family: "Cormorant Garamond", Georgia, serif; }
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.story-intro-photo { margin: 0; }
.story-intro-photo:only-child { grid-column: 2; }
.story-intro-photo img { display: block; width: 100%; height: auto; }
.story-intro p { margin: 0; text-align: left; }
@media (max-width: 600px) {
  /* Keep the alternating photo/copy pairs side by side on phones. */
  .story-intro { gap: clamp(16px, 5.3vw, 24px); }
  .story .story-intro p { font-size: clamp(9px, 2vw, 12px); line-height: 1.9; }
  #our-story, .story[aria-labelledby="walking-title"] { padding-inline: clamp(16px, 4.2vw, 26px); }
  #our-story { padding-bottom: 36px; }
  .story[aria-labelledby="walking-title"] { padding-top: 40px; }
  .story[aria-labelledby="walking-title"] .story-intro { margin-top: 20px; }
  #story-title, #walking-title { font-size: clamp(22px, 5.3vw, 30px); }
}
blockquote { margin: 36px 0 0; padding: 28px 0; border-top: 1px solid rgb(250 235 215 / .2); font: italic clamp(23px, 4vw, 31px)/1.5 Georgia, serif; }
.companions-gallery, .portraits-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.companions-gallery img, .portraits-gallery img { display: block; width: 100%; height: auto; }
.companions-gallery-wide { grid-column: 1 / -1; }
.content-block.partnership-intro { padding-bottom: 0; }
.partnership-intro blockquote { padding-bottom: 0; }
.content-block.partnership-gallery { padding-top: 32px; }
.partnership-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); }
.partnership-landscapes, .partnership-portraits { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.partnership-gallery img { display: block; width: 100%; height: auto; }
.partnership-portraits-column { display: grid; grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr); gap: clamp(16px, 2vw, 28px); min-width: 0; }
.partnership-copy { align-self: center; margin: 0; text-align: left; font: italic clamp(16px, 2.5vw, 23px)/1.55 "Cormorant Garamond", Georgia, serif; }
@media (max-width: 600px) {
  .partnership-gallery { column-gap: 18px; }
  .partnership-landscapes, .partnership-portraits { gap: 10px; }
  .partnership-portraits-column { gap: 14px; }
  .partnership-copy { font-size: 12px; line-height: 1.5; }
}
.album-section { padding: 60px 22px 20px; }
.wedding-album, .album-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wedding-album a { display: block; }
.wedding-album img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.album-more { grid-column: 1 / -1; }
.album-more summary { width: fit-content; cursor: pointer; margin: 28px auto 38px; padding: 14px 22px; border: 1px solid var(--paper); font: 11px/1.8 "Courier New", monospace; letter-spacing: 1px; }
.album-fallback { width: 100%; }
.invitation-footer { padding-bottom: 110px; background: var(--ink); color: var(--paper); }
.footer-signature { display: block; width: 100%; max-width: 600px; height: auto; margin: 24px auto 30px; }
.invitation-footer > p:not(.eyebrow):not(.footer-date) { max-width: 460px; margin-inline: auto; }
.invitation-footer .footer-date { margin-top: 36px; font: 10px/1.8 "Courier New", monospace; letter-spacing: 2px; }
@media (max-width: 480px) {
  .invitation-hero { padding: 34px 12px; }
  .content-block { padding: 56px 26px; }
  .story p, .invitation-footer p { font-size: 15px; }
  .eyebrow { letter-spacing: 2px; }
  .album-section { padding-inline: 12px; }
  .companions-gallery, .portraits-gallery, .wedding-album, .album-more-grid { gap: 8px; }
  .chapter-photo figcaption { padding: 55px 20px 28px; }
  .invitation-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
