:root {
  color-scheme: light;
  --paper: #f2eee3;
  --paper-deep: #e7e0d1;
  --ink: #27392f;
  --muted: #6e776c;
  --forest: #263a30;
  --accent: #bd684f;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Trebuchet MS", "Gill Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }

.hero {
  position: relative;
  display: flex;
  min-height: 84svh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px 6vw 35px;
  color: #fffdf6;
  background: var(--forest);
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgb(20 31 25 / 48%), rgb(20 31 25 / 18%) 42%, rgb(20 31 25 / 58%)), url("images/couple-hero.jpg");
  background-position: center 46%;
  background-size: cover;
}

.hero-header, .hero-copy, .scroll-link { position: relative; z-index: 1; }
.hero-header { display: flex; align-items: center; justify-content: space-between; }
.monogram, .site-footer > a { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.monogram span, .site-footer span { color: #e4a18a; font-style: italic; }
.hero nav { display: flex; gap: 30px; }
.hero nav a, .scroll-link { color: inherit; font-size: 10px; letter-spacing: 1.5px; text-decoration: none; text-transform: uppercase; }
.hero nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.hero nav a:hover, .hero nav a:focus-visible { border-color: currentColor; }
.hero-copy { width: 100%; margin: auto 0; padding: 65px 0 55px; text-align: center; animation: appear 800ms ease-out both; }
.hero-kicker, .hero-date, .section-index { font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.hero-kicker { margin: 0 0 21px; }
.hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 18px; margin: 0; font-family: var(--serif); font-size: 82px; font-weight: 400; line-height: 1.03; }
.hero h1 i { color: #e4a18a; font-size: 54px; font-weight: 400; }
.hero-subtitle { margin: 19px 0 25px; font-family: var(--serif); font-size: 24px; font-style: italic; }
.hero-date { margin: 0; }
.hero-date span { padding: 0 10px; color: #e4a18a; }
.scroll-link { align-self: center; display: flex; align-items: center; gap: 12px; padding: 10px; }
.scroll-link span { color: #e4a18a; font-size: 16px; }

.section-light { background: var(--paper); }
.celebration { padding: 94px 8vw 105px; }
.section-heading { max-width: 680px; margin: 0 auto 55px; text-align: center; }
.section-index { margin: 0; color: var(--accent); }
.section-index span { padding: 0 7px; }
.section-heading h2, .gallery-heading h2, .countdown-section h2 { margin: 15px 0 10px; font-family: var(--serif); font-size: 44px; font-weight: 400; }
.section-intro, .gallery-heading > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 17px; font-style: italic; }
.events-days { display: grid; max-width: 1120px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; }
.event-day { min-width: 0; padding: 0 34px; }
.event-day:first-child { padding-left: 0; }
.event-day + .event-day { border-left: 1px solid #d2cbbb; }
.event-day-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 17px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.event-day-title span { color: var(--accent); font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.event-list { margin: 0; padding: 0; list-style: none; }
.event-list li { border-top: 1px solid #d2cbbb; }
.event-item { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 7px 13px; padding: 16px 0 17px; }
.event-item-heading { display: contents; }
.event-time { grid-row: span 2; margin: 4px 0 0; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .6px; white-space: nowrap; }
.event-item h4 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.event-dress { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.55; }
.event-dress strong { color: var(--ink); font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.story-section { padding: 92px 8vw 98px; background: var(--paper-deep); }
.story-layout { max-width: 780px; margin: 0 auto; }
.story-copy h2 { max-width: 470px; margin: 16px 0 15px; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.12; }
.story-lead { max-width: 490px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 17px; line-height: 1.7; }
.story-chapters { margin: 32px 0 0; padding: 0; list-style: none; }
.story-chapter { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 0 0 20px; }
.story-chapter:last-child { padding-bottom: 0; }
.story-chapter:not(:last-child)::before { position: absolute; top: 31px; bottom: 1px; left: 14px; border-left: 1px dashed var(--accent); content: ""; }
.chapter-mark { position: relative; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--accent); border-radius: 46% 54% 51% 49%; color: var(--accent); font-size: 9px; transform: rotate(-5deg); }
.story-chapter:nth-child(2) .chapter-mark { transform: rotate(5deg); }
.story-chapter h3 { margin: 2px 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.story-chapter p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.55; }
.city-roots { max-width: 900px; margin: 53px auto 0; padding-top: 36px; border-top: 1px dashed rgb(189 104 79 / 55%); }
.city-roots-heading { margin-bottom: 22px; text-align: center; }
.city-roots-heading h3 { margin: 9px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.city-roots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.city-figure { margin: 0; padding: 4px 18px 0; text-align: center; }
.city-figure + .city-figure { border-left: 1px dashed rgb(189 104 79 / 45%); }
.city-figure img { display: block; width: min(100%, 360px); height: 240px; margin: 0 auto; object-fit: contain; }
.city-figure figcaption { display: grid; gap: 4px; margin-top: 4px; }
.city-figure figcaption strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.city-figure figcaption span { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }

.gallery-section { padding: 87px 7vw 96px; color: #f6f1e7; background: var(--forest); }
.gallery-heading { margin-bottom: 37px; text-align: center; }
.gallery-heading .section-index { color: #e4a18a; }
.gallery-heading h2 { margin-bottom: 8px; }
.gallery-heading > p:last-child { color: #c8cfc6; }
.gallery-grid { display: grid; max-width: 1220px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 25vw)); gap: 12px; margin: 0 auto; }
.gallery-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; background-color: #657565; background-position: center; background-size: cover; }
.gallery-photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(18 28 22 / 65%)); content: ""; }
.gallery-photo--feature { grid-row: span 2; background-image: url("images/gallery-01.jpg"); background-position: center; }
.gallery-photo--one { background-image: url("images/gallery-02.jpg"); }
.gallery-photo--two { background-image: url("images/gallery-03.jpg"); }
.gallery-photo--three { background-image: url("images/gallery-04.jpg"); }
.gallery-photo figcaption { position: absolute; z-index: 1; right: 17px; bottom: 17px; left: 17px; font-size: 9px; letter-spacing: 1.5px; }

.invitation-section { padding: 95px 24px; background: var(--paper-deep); }
.invitation-sheet { max-width: 660px; margin: 0 auto; padding: 60px 35px 53px; border: 1px solid #c8beaa; text-align: center; }
.invitation-opening { margin: 34px 0 16px; font-family: var(--serif); font-size: 18px; font-style: italic; }
.invitation-sheet h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 14px; margin: 0; font-family: var(--serif); font-size: 54px; font-weight: 400; }
.invitation-sheet h2 i { color: var(--accent); font-size: 34px; font-weight: 400; }
.invitation-request { margin: 19px 0 34px; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.7; }
.invitation-date { display: grid; justify-items: center; gap: 9px; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.invitation-date time { color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: 0; }
.invitation-venue { margin: 32px 0 30px; }
.invitation-venue h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.invitation-venue p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.7; }
.invitation-letter { max-width: 470px; margin: 35px auto 29px; padding-top: 25px; border-top: 1px solid #c8beaa; text-align: left; }
.invitation-letter-kicker { margin: 0 0 10px; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 1.7px; text-align: center; }
.invitation-letter h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; font-weight: 400; text-align: center; }
.invitation-letter > p:not(.invitation-letter-kicker) { color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.75; }
.invitation-letter-signoff { margin: 20px 0 0; font-style: italic; text-align: right; }
.invitation-letter-signoff strong { display: inline-block; margin-top: 5px; color: var(--ink); font-size: 19px; font-weight: 400; }
.invitation-note { margin: 0; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.countdown-section { padding: 83px 24px 88px; color: #f6f1e7; background: #394b41; text-align: center; }
.countdown-section .section-index { color: #e4a18a; }
.countdown-section h2 { margin: 14px 0 36px; font-size: 38px; }
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.countdown-unit { display: grid; min-width: 122px; gap: 8px; padding: 0 22px; }
.countdown-unit + .countdown-unit { border-left: 1px solid rgb(246 241 231 / 25%); }
.countdown-unit > span { font-family: var(--serif); font-size: 43px; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown-unit small { color: #c8cfc6; font-size: 9px; letter-spacing: 1.7px; }
.countdown-note { margin: 29px 0 0; color: #c8cfc6; font-family: var(--serif); font-size: 16px; font-style: italic; }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 21px 6vw; color: #e9e3d6; background: #202e27; }
.site-footer > a { font-size: 20px; }
.site-footer p { margin: 0; font-size: 9px; letter-spacing: 1.4px; }
.site-footer > a:last-child { font-family: var(--sans); font-size: 16px; }

@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .hero { min-height: 88svh; padding: 22px 22px 27px; }
  .hero nav { gap: 16px; }
  .hero nav a { font-size: 9px; letter-spacing: .7px; }
  .hero h1 { gap: 5px 10px; font-size: 55px; }
  .hero h1 i { font-size: 36px; }
  .hero-subtitle { font-size: 21px; }
  .celebration { padding: 70px 24px 76px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .gallery-heading h2 { font-size: 36px; }
  .events-days { grid-template-columns: 1fr; }
  .event-day { padding: 0; }
  .event-day + .event-day { margin-top: 32px; padding-top: 28px; border-top: 1px solid #d2cbbb; border-left: 0; }
  .event-item { grid-template-columns: 77px minmax(0, 1fr); column-gap: 10px; }
  .story-section { padding: 68px 24px 73px; }
  .story-copy h2 { font-size: 36px; }
  .city-roots { margin-top: 38px; padding-top: 30px; }
  .city-roots-grid { gap: 8px; }
  .city-figure { padding-right: 6px; padding-left: 6px; }
  .city-figure img { height: 210px; }
  .city-figure figcaption strong { font-size: 19px; }
  .gallery-section { padding: 67px 18px 74px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; }
  .gallery-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .gallery-photo--feature { min-height: 0; grid-column: span 2; grid-row: auto; aspect-ratio: 1.45 / 1; }
  .gallery-photo figcaption { right: 10px; bottom: 11px; left: 10px; font-size: 8px; }
  .invitation-section { padding: 65px 16px; }
  .invitation-sheet { padding: 43px 18px 39px; }
  .invitation-sheet h2 { gap: 6px 10px; font-size: 42px; }
  .invitation-sheet h2 i { font-size: 27px; }
  .invitation-date time { font-size: 22px; }
  .invitation-letter { margin-top: 29px; padding-top: 21px; }
  .invitation-letter h3 { font-size: 24px; }
  .countdown-section { padding: 67px 16px 72px; }
  .countdown-section h2 { font-size: 32px; }
  .countdown-unit { min-width: 82px; padding: 0 12px; }
  .countdown-unit > span { font-size: 34px; }
  .site-footer { padding: 18px 20px; }
  .site-footer p { font-size: 8px; letter-spacing: .8px; }
}

@media (max-width: 420px) {
  .city-roots-grid { grid-template-columns: 1fr; gap: 20px; }
  .city-figure + .city-figure { padding-top: 18px; border-top: 1px dashed rgb(189 104 79 / 45%); border-left: 0; }
  .city-figure img { height: 220px; }
}

@media (max-width: 380px) {
  .hero-header { align-items: flex-start; }
  .hero nav { flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; max-width: 220px; }
  .hero nav a { padding: 5px 0; }
  .countdown-unit { min-width: 70px; padding: 0 8px; }
  .countdown-unit > span { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}