/* All fonts and artwork are local or drawn in the page. No external requests. */
:root { --cream: #f8f5ed; --paper: #fffdf8; --ink: #3d493e; --muted: #6a7364; --sage: #687b60; --peach: #ebcfb9; --gold: #a38142; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.6 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .25; background-image: radial-gradient(#c7bca6 .55px, transparent .55px); background-size: 5px 5px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, dialog { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--sage); }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2 { margin: 0; }
.wrap { width: min(1160px, calc(100% - 96px)); min-width: 0; margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 20; background: var(--paper); padding: 10px 20px; border: 1px solid var(--sage); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d9dccf; }
.wordmark { display: flex; align-items: center; gap: 11px; font: 23px Georgia, "Times New Roman", serif; letter-spacing: -.6px; white-space: nowrap; }
.wordmark svg { width: 28px; height: 28px; stroke: var(--sage); stroke-width: 1.6; fill: none; }
.wordmark-dot { margin-left: -10px; color: var(--sage); }
nav { display: flex; flex-wrap: wrap; gap: 8px 34px; align-items: center; font-size: 13px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 7px; }
nav a:hover { color: var(--sage); text-decoration: underline; text-underline-offset: 6px; }
nav span { padding-left: 8px; }
.hero { min-height: 676px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; padding-block: 54px 66px; }
.hero-copy { position: relative; min-width: 0; padding-top: 3px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2px; line-height: 1.8; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; }
.little-sun { color: var(--gold); font-size: 23px; font-weight: 400; line-height: 1; }
h1 { position: relative; width: fit-content; font: 400 clamp(70px, 7.5vw, 104px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -5px; }
h1 em { color: var(--sage); font-weight: 400; }
.title-star { position: absolute; bottom: 8px; right: -61px; font: 48px Georgia, serif; color: var(--gold); }
.full-name { display: flex; align-items: center; gap: 21px; font-size: 13px; letter-spacing: 3.2px; margin-top: 23px; }
.full-name span { font-size: 23px; color: var(--gold); letter-spacing: 0; line-height: 1; }
.intro { font-size: 17px; color: var(--muted); line-height: 1.75; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; background: var(--sage); color: white; font-size: 13px; padding: 14px 24px; border: 1px solid var(--sage); border-radius: 50px; margin-top: 29px; transition: background .2s, transform .2s; }
.button:hover { background: #53664b; transform: translateY(-2px); }
.button span { font-size: 19px; line-height: 1; }
.hero-footnote { font: italic 14px Georgia, "Times New Roman", serif; color: var(--muted); margin-top: 20px; }
.hero-pictures { min-width: 0; height: 540px; position: relative; display: flex; align-items: center; justify-content: center; padding-left: 51px; }
.peach-orbit { position: absolute; width: 420px; height: 438px; border-radius: 47% 53% 48% 52%; right: -2px; top: 48px; background: #efe1d0; transform: rotate(14deg); }
.main-photo { width: 344px; padding: 11px 11px 0; background: var(--paper); transform: rotate(5deg); border-radius: 180px 180px 4px 4px; box-shadow: 0 13px 30px #3d493e12; position: relative; margin-top: -15px; }
.main-photo img { height: 415px; object-fit: cover; border-radius: 165px 165px 2px 2px; }
.main-photo figcaption { height: 45px; display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--muted); font: italic 15px Georgia, serif; }
.main-photo figcaption span { color: var(--gold); font-size: 22px; }
.small-photo { position: absolute; left: -11px; bottom: 4px; width: 171px; padding: 8px 8px 0; background: var(--paper); transform: rotate(-10deg); box-shadow: 0 8px 25px #3d493e1a; }
.small-photo img { height: 190px; object-fit: cover; }
.small-photo figcaption { text-align: center; font: italic 12px Georgia, serif; color: var(--muted); padding-block: 10px 12px; }
.small-photo::before { content: ""; position: absolute; width: 65px; height: 23px; background: #c9d0b9a6; top: -10px; left: 49px; transform: rotate(4deg); }
.love-stamp { position: absolute; top: 15px; right: -5px; width: 100px; height: 100px; border: 1px dashed #ad985f; border-radius: 50%; background: #eddfb5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; transform: rotate(12deg); color: #756638; }
.love-stamp span { font-size: 8px; letter-spacing: 2px; line-height: 1.2; font-weight: 600; }
.love-stamp svg { width: 27px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero-sparkle { position: absolute; top: 0; left: 15px; width: 71px; height: 80px; stroke: #b09059; stroke-width: 1.5; }
.little-sprig { position: absolute; right: -18px; bottom: 5px; width: 90px; height: 100px; stroke: var(--sage); stroke-width: 1.5; }
.love-ribbon { min-height: 69px; display: flex; align-items: center; justify-content: center; gap: 54px; background: #edf0e4; border-top: 1px solid #dfe3d4; border-bottom: 1px solid #dfe3d4; font-size: 9px; letter-spacing: 2px; color: #5e7055; }
.love-ribbon span:nth-child(even) { font: 23px Georgia, serif; color: #9b8a52; }
.moments { padding-block: 88px 65px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 16px; }
h2 { font: 400 clamp(34px, 4vw, 48px)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -1.6px; }
h2 em { color: var(--sage); font-weight: 400; }
.section-heading > p { font-size: 14px; color: var(--muted); line-height: 1.8; padding-bottom: 3px; }
.gallery-hint { display: block; margin-top: 18px; font-size: 10px; letter-spacing: .3px; }
.gallery-hint > span { margin-left: 8px; }
/* Size columns from the space available instead of a fixed device column count. */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(136px, 18vw, 192px)), 1fr)); gap: 30px 19px; align-items: start; }
.memory { display: block; min-width: 0; padding: 7px 7px 0; background: var(--paper); box-shadow: 0 3px 10px #3d493e09; transition: transform .2s, box-shadow .2s; }
.memory:nth-child(5n+1) { transform: rotate(-2deg); }
.memory:nth-child(5n+3) { transform: rotate(2deg); }
.memory:nth-child(5n+5) { transform: rotate(-1deg); }
.memory:nth-child(even) { margin-top: 17px; }
.memory:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 8px 20px #3d493e18; }
.memory img { aspect-ratio: 3 / 4; object-fit: cover; background: #ebe8de; }
.memory-wide img { object-position: 68% center; }
.memory > span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 43px; font: italic 12px/1.3 Georgia, serif; padding: 8px 0; color: #63705e; }
.gallery-end { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 42px; }
.gallery-end span { font-size: 21px; color: #a78a55; }
.wish-section { background: #e9ede1; margin-top: 12px; border-radius: 50% 50% 0 0 / 35px 35px 0 0; }
.wish-inner { position: relative; padding-block: 67px 59px; text-align: center; }
.moon { display: block; width: 57px; height: 63px; margin: 0 auto 19px; stroke: #879070; stroke-width: 1.6; }
.wish-inner .eyebrow { margin-bottom: 23px; color: #63705d; }
.wish-inner h2 { font-size: clamp(29px, 3.3vw, 40px); line-height: 1.25; letter-spacing: -1px; }
.wish-inner > p:not(.eyebrow) { color: #66715f; font-size: 14px; line-height: 1.9; margin-top: 23px; }
.wish-signoff { font: italic 17px Georgia, serif; margin-top: 27px; }
.wish-signoff span { color: #9b8352; margin-left: 9px; font-size: 23px; vertical-align: middle; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 104px; font-size: 11px; color: var(--muted); }
.footer-name { font: 20px Georgia, serif; color: var(--ink); }
.back-top { padding-block: 8px; }
.back-top span { margin-left: 12px; }
.lightbox { position: fixed; width: min(1040px, 96vw); max-width: 96vw; max-height: 96vh; max-height: 96dvh; border: 0; padding: 15px 20px; border-radius: 12px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 100px #0003; }
.lightbox::backdrop { background: #20291fe8; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 12px; height: 42px; }
.lightbox button { border: 1px solid #ccd1c3; border-radius: 50px; background: transparent; color: var(--ink); min-width: 44px; min-height: 44px; cursor: pointer; }
.lightbox button:hover { background: #e7ebde; }
.close-lightbox { padding: 4px 15px; display: flex; gap: 14px; align-items: center; }
.close-lightbox span { font-size: 26px; line-height: 1; }
.lightbox-stage { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 14px; align-items: center; padding-top: 13px; }
.lightbox-image { width: 100%; height: min(72vh, 800px); height: min(72dvh, 800px); object-fit: contain; }
.lightbox-stage button { font-size: 21px; }
#photo-caption { text-align: center; font: italic 17px/1.5 Georgia, serif; padding-block: 14px 2px; }
body.album-open { overflow: hidden; }
@media (min-width: 1450px) { .hero { min-height: 710px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 12px; min-height: 650px; }
  h1 { font-size: 80px; }
  .hero-pictures { transform: scale(.88); transform-origin: center right; margin-left: -35px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .photo-gallery { gap: 25px 13px; }
  .memory > span { font-size: 11px; }
  .love-ribbon { gap: 30px; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { height: 88px; }
  .wordmark { font-size: 21px; }
  nav { gap: 22px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-top: 43px; padding-bottom: 43px; }
  .hero-copy { text-align: center; }
  .hero .eyebrow, .full-name { justify-content: center; }
  h1 { max-width: 100%; margin-inline: auto; font-size: clamp(48px, 15.5vw, 88px); letter-spacing: -.045em; }
  .title-star { right: 0; bottom: 8px; font-size: clamp(28px, 6vw, 39px); }
  .full-name { margin-top: 20px; }
  .intro { margin-top: 21px; font-size: 16px; }
  .button { margin-top: 23px; }
  .hero-footnote { margin-top: 16px; }
  .hero-pictures { width: 470px; max-width: 100%; height: 537px; margin: 18px auto 0; transform: none; padding-left: 30px; }
  .main-photo { width: 310px; }
  .main-photo img { height: 380px; }
  .peach-orbit { width: 370px; height: 405px; max-width: 95%; right: 4px; top: 66px; transform: none; }
  .small-photo { left: 0; bottom: 8px; width: 153px; }
  .small-photo img { height: 169px; }
  .small-photo::before { left: 38px; }
  .love-stamp { right: 0; top: 30px; width: 90px; height: 90px; }
  .hero-sparkle { left: 10px; top: 20px; width: 58px; }
  .little-sprig { right: 0; bottom: 8px; width: 72px; }
  .love-ribbon { gap: 20px; padding: 14px 20px; font-size: 8px; letter-spacing: 1.3px; flex-wrap: wrap; min-height: 64px; }
  .moments { padding-block: 60px 45px; }
  .section-heading { align-items: flex-start; gap: 22px; margin-bottom: 31px; }
  h2 { font-size: 37px; }
  .section-heading > p { padding-top: 7px; font-size: 12px; }
  .gallery-hint { font-size: 9px; margin-top: 13px; }
  .photo-gallery { gap: 24px 16px; }
  .memory > span { font-size: 12px; }
  .wish-inner { padding-block: 53px 48px; }
  .site-footer { min-height: 108px; flex-wrap: wrap; justify-content: center; gap: 10px 25px; padding-block: 23px; }
  .site-footer > p { flex-basis: 100%; text-align: center; order: 3; }
}
@media (max-width: 600px) {
  /* A dedicated navigation row keeps both links visible and easy to tap. */
  .site-header { height: auto; min-height: 106px; flex-direction: column; justify-content: center; gap: 5px; padding-block: 17px 8px; }
  .site-header nav { width: 100%; justify-content: center; gap: 0 22px; font-size: 12px; }
  .site-header nav a { justify-content: center; padding: 8px 4px; }
  .hero-pictures { width: 100%; max-width: 470px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 20px; gap: 8px; }
  .wordmark svg { width: 23px; height: 23px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .full-name { font-size: 11px; letter-spacing: 2.8px; gap: 16px; }
  .hero-pictures { height: 457px; margin-top: 14px; padding-left: 22px; }
  .main-photo { width: 260px; padding: 9px 9px 0; margin-top: -12px; }
  .main-photo img { height: 326px; }
  .main-photo figcaption { font-size: 13px; height: 40px; gap: 10px; }
  .small-photo { width: 132px; left: 0; bottom: 1px; padding: 6px 6px 0; }
  .small-photo img { height: 144px; }
  .small-photo figcaption { font-size: 10px; padding-block: 9px; }
  .small-photo::before { width: 50px; left: 35px; height: 20px; }
  .love-stamp { top: 20px; right: -1px; width: 77px; height: 77px; gap: 4px; }
  .love-stamp span { font-size: 7px; letter-spacing: 1.5px; }
  .love-stamp svg { width: 22px; height: 21px; }
  .peach-orbit { top: 61px; width: 300px; height: 338px; }
  .hero-sparkle { left: 0; top: 11px; width: 48px; }
  .little-sprig { width: 61px; height: 75px; bottom: 0; }
  .love-ribbon { gap: 10px; font-size: 7px; letter-spacing: 1px; }
  .love-ribbon span:nth-last-child(-n+2) { display: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; font-size: 13px; }
  .section-heading > p br { display: none; }
  h2 { font-size: 36px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  .gallery-hint { font-size: 10px; margin-top: 9px; }
  .photo-gallery { gap: 20px 15px; }
  .memory { padding: 6px 6px 0; }
  .memory > span { font-size: 11px; min-height: 40px; }
  .gallery-end { font-size: 11px; margin-top: 30px; }
  .wish-inner h2 { font-size: 30px; }
  .wish-inner h2 br { display: none; }
  .wish-inner > p:not(.eyebrow) { font-size: 13px; }
  .wish-inner > p:not(.eyebrow) br { display: none; }
  .footer-name { font-size: 18px; }
  .lightbox { padding: 10px; }
  .lightbox-stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lightbox-image { grid-column: 1 / -1; grid-row: 1; height: 63vh; height: 63dvh; }
  .photo-prev, .photo-next { grid-row: 2; width: 100%; }
  #photo-caption { font-size: 15px; padding-block: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
