:root {
  --paper: #cec2ad;
  --ink: #302f27;
  --ivory: #f6f0e5;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 18px; font-weight: 700; line-height: 1.7; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(36px, 3.5vw, 52px); }
h3 { font-size: 29px; }
p + p { margin-top: 22px; }
section { scroll-margin-top: 24px; }
.section-pad { padding: 76px max(6vw, calc((100% - 1120px) / 2)); }
.eyebrow { font-size: 14px; letter-spacing: 2.4px; text-transform: uppercase; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; }
.skip-link { position: absolute; z-index: 2; left: 20px; top: 16px; padding: 12px; background: var(--ivory); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; gap: 26px; justify-content: center; align-items: center; min-height: 52px; border: 1px solid currentColor; padding: 12px 24px; font-size: 15px; letter-spacing: 1px; text-decoration: none; }
.button:hover { background: var(--ivory); color: var(--ink); }

.hero { min-height: 760px; min-height: 100svh; max-height: 1100px; color: var(--ivory); display: flex; flex-direction: column; justify-content: center; padding: 80px 6vw 40px; position: relative; isolation: isolate; background: #32342c url("assets/images/hero.jpg") center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #17191299, #17191222 70%), linear-gradient(0deg, #17191288, transparent 30%); }
.hero-heading { text-align: center; width: 55%; margin: auto 0; padding: 40px 0; }
.hero h1 { font-size: clamp(62px, 6.5vw, 100px); line-height: 1.25; margin: 28px 0 12px; }
.hero h1 span { display: block; font-size: .6em; }
.hero-subtitle { font-family: var(--serif); font-size: clamp(23px, 2.6vw, 38px); text-transform: uppercase; letter-spacing: 3px; }
.hero-details { display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: 19px; letter-spacing: 1px; text-transform: uppercase; }
.hero-details a { text-decoration: none; }
.link-arrow { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-subtitle, .hero-details, .story-side, .schedule-list dt, .event-date, .gift-placeholder p, .album-header > p:not(.eyebrow):not(.album-hint), .album-footer > p { font-weight: 600; }
.hero-details, .event-date, .event-nav, .schedule-list dt { font-variant-numeric: lining-nums; }

.our-story { text-align: center; }
.story-layout { display: grid; grid-template-columns: 1fr 268px 1fr; align-items: center; gap: 32px; }
.story-layout h2, .story-side { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.25; text-transform: uppercase; }
.story-layout img { aspect-ratio: 2 / 3; }
.story-copy { max-width: 800px; margin: 32px auto 0; }
.couple-banner img { max-height: 850px; aspect-ratio: 1366 / 768; }

.event-details { display: block; }
.event-details h2 { margin: 15px 0 38px; }
.schedule-list { margin: 0; }
.schedule-list > div { display: grid; grid-template-columns: 85px 1fr; gap: 20px; align-items: center; padding: 25px 0; border-top: 1px solid #302f274d; }
.schedule-list > div:last-child { border-bottom: 1px solid #302f274d; }
.schedule-list dt { font-family: var(--serif); font-size: 29px; }
.schedule-list dd { margin: 0; font-size: 17px; }
.families { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 0; margin-bottom: 40px; }
.families > div { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.families > div > p:last-child { margin-top: 18px; }
.families h3 { margin-top: 16px; font-size: 32px; }
.families .family-role { margin: 8px 0 20px; font-size: 15px; }
.families p { font-size: 16px; }
.memorial-lotus { width: 25px; height: 20px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.events-heading { text-align: center; max-width: 720px; margin: 0 auto; }
.event-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 32px; }
.event-nav a { border-bottom: 1px solid currentColor; padding: 12px 16px; text-decoration: none; font-size: 15px; }
.event-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 0; }
.event-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; border-top: 2px solid var(--ink); padding-top: 24px; scroll-margin-top: 24px; }
.event-card > .schedule-list, .event-schedule { align-self: stretch; }
@media (min-width: 901px) {
  .event-card > .schedule-list { display: grid; }
}
.event-card h3 { font-size: 32px; margin: 16px 0 25px; }
.event-card .event-date { font-family: var(--serif); font-size: 38px; line-height: 1.2; }
.event-card .event-weekday { font-size: 14px; margin: 12px 0 25px; }
.event-card h4 { font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 600; margin: 28px 0 12px; }
.event-card > p:last-child { font-size: 16px; }
.event-card .schedule-list > div { grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; }
.event-card .schedule-list dd { font-size: 15px; }
#bride-reception .schedule-list > div { border-top: 0; }

.gallery { padding: 65px 0 0; background: #bbb09b; }
.gallery-heading { text-align: center; padding: 0 24px 48px; }
.gallery-heading h2 { margin-top: 16px; }
.gallery-grid { display: grid; grid-template-columns: 260fr 180fr 168fr; grid-template-rows: repeat(3, 1fr); aspect-ratio: 608 / 346; }
.gallery-grid img { width: 100%; height: 100%; min-height: 0; min-width: 0; }
.gallery-01 { grid-column: 1; grid-row: 1 / 4; }
.gallery-02 { grid-column: 2; grid-row: 1; }
.gallery-03 { grid-column: 3; grid-row: 1; }
.gallery-04 { grid-column: 2; grid-row: 2; }
.gallery-05 { grid-column: 2; grid-row: 3; }
.gallery-06 { grid-column: 3; grid-row: 2 / 4; }

.wedding-gift { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.gift-photo { aspect-ratio: 2 / 3; }
.gift-copy h2 { margin: 18px 0 30px; font-size: clamp(32px, 3.2vw, 46px); }
.gift-placeholder { border-top: 1px solid #302f274d; margin-top: 30px; padding-top: 22px; }
.gift-placeholder > span { font-size: 32px; line-height: 1; }
.gift-placeholder p { margin: 8px 0 0; font-family: var(--serif); font-size: 25px; }
.gift-placeholder small { font-size: 14px; }

.contact { background: var(--ink); color: var(--paper); text-align: center; padding-top: 64px; padding-bottom: 30px; }
.contact h2 { font-size: clamp(70px, 8vw, 110px); margin: 26px 0 16px; }
.contact-intro { max-width: 520px; margin: 0 auto; font-size: 16px; }
.contact > img { width: min(100%, 380px); margin: 32px auto 40px; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-details h3 { font-size: 25px; margin-bottom: 10px; }
.contact-details p { font-size: 16px; }
.contact-details small { font-size: 13px; }
.back-top { display: inline-block; padding: 12px; margin-top: 45px; font-size: 14px; }
.demo-note { border-top: 1px solid #cec2ad33; padding-top: 20px; margin-top: 25px; font-size: 13px; }

@media (min-width: 1600px) {
  .gallery-grid { max-width: 1600px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .section-pad { padding: 60px 6vw; }
  .story-layout { grid-template-columns: 1fr 220px 1fr; gap: 24px; }
  .story-layout h2, .story-side { font-size: 27px; }
  .event-cards { grid-template-columns: 1fr; gap: 36px; }
  .event-card { display: block; }
  .wedding-gift { gap: 40px; }
  .hero-details { font-size: 18px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .section-pad { padding: 48px 24px; }
  .hero { min-height: 820px; padding: 36px 24px 26px; background-image: url("assets/images/hero-mobile.jpg"); background-position: center bottom; }
  .hero-heading { width: 100%; margin: 0; padding: 0; }
  .hero::before { background: linear-gradient(180deg, #17191277, transparent 55%, #17191288); }
  .hero-details { margin-top: auto; }
  .hero h1 { font-size: clamp(40px, 11vw, 66px); line-height: 1.1; margin-block: 20px 16px; }
  .hero h1 span { display: block; margin: 8px 0; }
  .hero .eyebrow { font-size: 13px; letter-spacing: 0.6px; }
  .hero-subtitle { font-size: 23px; letter-spacing: 1.5px; }
  .hero-details { flex-direction: column; gap: 10px; text-align: center; font-size: 17px; }
  .story-layout { grid-template-columns: 1fr; gap: 28px; }
  .story-layout img { width: min(100%, 268px); margin-inline: auto; }
  .story-layout h2, .story-side { font-size: 30px; }
  .story-copy { margin-top: 35px; }
  .our-story > .eyebrow { font-size: 13px; letter-spacing: 0.6px; }
  .couple-banner img { aspect-ratio: 4 / 5; object-position: 85% center; }
  .families { grid-template-columns: 1fr; gap: 32px; }
  .families > div { display: block; }
  .event-nav { gap: 8px; }
  .event-nav a { padding-inline: 8px; font-size: 14px; }
  .schedule-list > div { padding: 20px 0; }
  .gallery { padding-top: 50px; }
  .gallery-heading { padding-bottom: 32px; }
  .gallery-heading .eyebrow { font-size: 13px; letter-spacing: 1.4px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 150px); aspect-ratio: auto; }
  .gallery-01 { grid-column: 1; grid-row: 1 / 3; }
  .gallery-02 { grid-column: 2; grid-row: 1; }
  .gallery-03 { grid-column: 2; grid-row: 2; }
  .gallery-04 { grid-column: 1; grid-row: 3; }
  .gallery-05 { grid-column: 1; grid-row: 4; }
  .gallery-06 { grid-column: 2; grid-row: 3 / 5; }
  .wedding-gift { grid-template-columns: 1fr; gap: 36px; }
  .gift-photo { max-height: none; }
  .contact h2 { font-size: 72px; }
  .contact-details { grid-template-columns: 1fr; gap: 30px; }
  .contact > img { margin-bottom: 35px; }
  .contact { padding-bottom: 25px; }
}

 .gallery-more { text-align: center; padding: 38px 24px 48px; }
.gallery-more p { margin-bottom: 20px; font-size: 16px; }
.album-header { padding: 24px 4vw 32px; text-align: center; }
.album-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; font-size: 14px; }
.album-nav a { padding-block: 12px; }
.album-header h1 span { display: inline-block; white-space: nowrap; }
.album-header h1 { font-size: clamp(40px, 7vw, 100px); font-weight: 400; line-height: 1.4; margin: 22px 0 10px; }
.album-header > p:not(.eyebrow):not(.album-hint) { font-family: var(--serif); font-size: 30px; }
.album-header .album-hint { font-size: 14px; max-width: 540px; margin: 20px auto 0; }
.album-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 24px 48px; }
.album-photo { display: block; min-width: 0; text-decoration: none; }
.album-photo-wide { grid-column: 1 / -1; }
.album-photo img { height: auto; }
.album-photo:focus-visible { outline-offset: 5px; }
.album-footer { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 60px 24px; text-align: center; background: var(--ink); color: var(--paper); }
.album-footer > p { font-family: var(--serif); font-size: 28px; }
.album-footer > a:last-child { font-size: 15px; padding: 12px; }
@media (max-width: 600px) {
  .album-nav { align-items: flex-start; margin-bottom: 24px; }
  .album-nav span { max-width: 115px; text-align: right; }
  .album-header { padding-bottom: 24px; }
  .album-header .eyebrow { font-size: 13px; letter-spacing: 1px; }
  .album-photos { gap: 10px; padding-inline: 16px; }
  }


.language-toggle { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 12; width: 48px; min-height: 44px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: white; mix-blend-mode: difference; font: 700 14px var(--mono); cursor: pointer; }
.language-toggle[hidden] { display: none; }
.language-toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.album-nav { padding-right: 58px; }
html[lang="en"] .event-card .schedule-list > div { grid-template-columns: 90px minmax(0, 1fr); }
html[lang="en"] .event-card .event-date { font-size: 32px; }
html[lang="en"] .music-prompt h2 { font-size: 30px; }
.music-prompt { width: min(460px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-align: center; }
.music-prompt::backdrop { background: rgb(15 14 12 / 65%); }
.music-prompt h2 { font-size: 36px; margin: 18px 0; }
.music-prompt > p { font-size: 16px; }
.music-prompt > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.music-prompt button { font-family: var(--mono); font-weight: 700; cursor: pointer; background: transparent; }
.music-prompt .music-accept { background: var(--ink); color: var(--ivory); }
.music-player { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9; width: min(220px, calc(100vw - 82px)); padding: 9px 12px; border: 1px solid #cec2ad88; border-radius: 14px; background: var(--ink); color: var(--ivory); box-shadow: 0 6px 24px #0003; }
.music-player { opacity: 0.65; transition: opacity 250ms ease; }
.music-player:hover, .music-player:focus-within { opacity: 1; }
.music-player[hidden] { display: none; }
.music-player p { margin: 0; line-height: 1.4; }
.music-player .music-caption { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.music-player .music-title { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 2px 0 6px; }
.music-player > div { display: flex; align-items: center; gap: 4px; }
.music-player button { min-width: 44px; min-height: 44px; padding: 4px 6px; border: 1px solid #cec2ad66; border-radius: 8px; background: transparent; color: inherit; font: 700 13px var(--mono); cursor: pointer; }
.music-player .music-play { flex: 1; }
.music-player button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.contact, .album-footer { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .music-player { padding: 8px 10px; }
  .music-player .music-title { font-size: 18px; }
}
.music-status:not(:empty) { position: fixed; right: 60px; bottom: 85px; z-index: 11; max-width: min(280px, 65vw); padding: 12px; background: var(--ink); color: var(--ivory); font-size: 13px; }
.floating-nav { position: fixed; right: 6px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 10; color: var(--ivory); font-size: 13px; }
.floating-nav summary { display: flex; align-items: center; justify-content: space-between; gap: 0; width: 44px; min-height: 48px; padding: 10px; border: 1px solid #cec2ad88; border-radius: 28px; background: var(--ink); box-shadow: 0 6px 24px #0003; cursor: pointer; list-style: none; }
.floating-nav summary { justify-content: center; }
.menu-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.floating-nav summary::-webkit-details-marker { display: none; }
.floating-nav summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.floating-links { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 4px; width: 190px; padding: 8px; border: 1px solid #cec2ad88; border-radius: 16px; background: var(--ink); box-shadow: 0 6px 24px #0003; }
.floating-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 10px; line-height: 1.4; text-decoration: none; }
.floating-links a[aria-current], .floating-links a:hover { background: var(--paper); color: var(--ink); }
.contact, .album-footer { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: 90px; }
.hero { padding-bottom: 180px; }
@media (max-width: 600px) {
  .hero { padding-top: 76px; }
}
@media (max-width: 600px) {
  .floating-nav { right: 6px; bottom: max(12px, env(safe-area-inset-bottom)); }
}

body:has(.lightbox[open]) { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 64px 64px 32px; margin: 0; border: 0; background: transparent; color: var(--ivory); }
.lightbox::backdrop { background: rgb(15 14 12 / 94%); }
.lightbox[open] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.lightbox figure { margin: 0; min-width: 0; pointer-events: none; }
.lightbox img { width: 100%; height: calc(100dvh - 150px); object-fit: contain; pointer-events: auto; }
.lightbox figcaption { text-align: center; padding-top: 12px; font-size: 14px; }
.lightbox button { width: 48px; height: 48px; padding: 0; border: 1px solid #f6f0e566; border-radius: 50%; background: #302f27; color: inherit; font: 32px/1 var(--mono); cursor: pointer; }
.lightbox button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.lightbox-close { position: absolute; right: 20px; top: max(12px, env(safe-area-inset-top)); }
@media (max-width: 600px) {
  .lightbox { padding: 72px 8px 28px; }
  .lightbox[open] { display: block; }
  .lightbox img { height: calc(100dvh - 190px); }
  .lightbox button { width: 44px; height: 44px; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
.floating-links { transform-origin: bottom right; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 350ms; animation-timing-function: ease-in-out; }
.image-loading { background: linear-gradient(110deg, #b6a88f 30%, #ddd1bb 45%, #b6a88f 60%); background-size: 220% 100%; animation: image-shimmer 1.5s linear 3; }
.album-photo { overflow: hidden; }
.album-photo img { transition: transform 350ms ease; }
@media (hover: hover) {
  .album-photo:hover img { transform: scale(1.025); }
}
@keyframes image-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html { scroll-behavior: auto; }
}
