: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; 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: 400; 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; }
.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: 1px solid #302f2766; 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: 500; 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(52px, 13vw, 72px); line-height: 1.1; margin-block: 20px 16px; }
  .hero h1 span { display: block; margin: 8px 0; }
  .hero .eyebrow { font-size: 13px; letter-spacing: 1.5px; }
  .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: 1.5px; }
  .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 { font-size: clamp(48px, 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: flex; flex-wrap: wrap; gap: 16px; max-width: 1500px; margin: 0 auto; padding: 0 4vw 40px; }
.album-photo { display: block; flex: var(--ratio) 1 calc(var(--ratio) * 240px); min-width: 0; text-decoration: none; }
.album-photos::after { content: ""; flex-grow: 1000; }
.album-photo img { height: auto; }
.album-photo > span { display: flex; justify-content: space-between; padding: 5px 2px; font-size: 13px; letter-spacing: 2px; }
.album-photo:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.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: 900px) {
  .album-photo { flex-basis: calc(var(--ratio) * 190px); }
}
@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; }
  .album-photo { flex-basis: calc(var(--ratio) * 150px); }
  .album-photo > span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
