:root {
  --ink: #24322d;
  --paper: #f6f3ed;
  --white: #fff;
  --sand: #ddc8ac;
  --line: rgba(36, 50, 45, .2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
img { display: block; width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1.6rem clamp(1.25rem, 4vw, 4rem); color: white; }
.monogram { text-decoration: none; font-family: var(--serif); font-size: 1.55rem; letter-spacing: .08em; }
.monogram span, .footer-mark span { font-style: italic; opacity: .78; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { color: white; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-rsvp { border: 1px solid rgba(255,255,255,.7); padding: .65rem 1rem; }

.hero { position: relative; min-height: 100svh; color: white; display: grid; place-items: center; overflow: hidden; }
.hero-photo, .hero-shade { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-photo { object-position: center 48%; }
.hero-shade { background: linear-gradient(180deg, rgba(17,28,24,.18), rgba(17,28,24,.1) 50%, rgba(17,28,24,.45)); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 8rem 1.5rem 6rem; text-shadow: 0 2px 30px rgba(20,20,20,.25); }
.eyebrow { margin: 0 0 1rem; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.dark { color: #7a6551; }
h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(4.2rem, 11vw, 9.5rem); letter-spacing: -.035em; }
h1 i { font-size: .64em; }
.hero-date { font-size: clamp(.88rem, 2vw, 1.05rem); letter-spacing: .12em; text-transform: uppercase; margin: 1.75rem 0 2.3rem; }
.hero-date span { margin: 0 .6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-width: 10.75rem; padding: .9rem 1.25rem; text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); text-shadow: none; }
.button-dark { background: var(--ink); color: white; }
.scroll-cue { position: absolute; z-index: 2; right: clamp(1.25rem, 4vw, 4rem); bottom: 1.75rem; display: flex; gap: .8rem; align-items: center; color: white; text-decoration: none; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue b { font-size: 1.1rem; }

.section { position: relative; padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 7vw, 8rem); }
.section-number { position: absolute; left: clamp(1.25rem, 4vw, 4rem); top: 2rem; font-size: .72rem; letter-spacing: .16em; }
.story { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; max-width: 1400px; margin: auto; }
.story h2, .details h2 { font-size: clamp(4.25rem, 8vw, 8rem); letter-spacing: -.04em; }
.story-copy { max-width: 38rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.story-copy p { margin: 0 0 1.2rem; color: #46534e; }
.story-copy .lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.25; }

.photo-break { position: relative; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(1rem, 3vw, 3.5rem); align-items: center; padding: 0 clamp(1.25rem, 6vw, 7rem) clamp(7rem, 12vw, 11rem); max-width: 1500px; margin: auto; }
.photo-break figure { margin: 0; overflow: hidden; }
.photo-break img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo-break figure:hover img { transform: scale(1.02); }
.photo-tall { height: min(70vw, 780px); }
.photo-wide { height: min(49vw, 560px); }
.handwritten { position: absolute; left: 44%; bottom: 4.8rem; margin: 0; padding: .3rem .7rem; background: var(--paper); font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.7rem); transform: rotate(-3deg); }

.details { background: #e4dbcf; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.details-card { background: var(--paper); padding: clamp(2.2rem, 5vw, 4.5rem); text-align: center; box-shadow: 0 20px 60px rgba(40,42,35,.08); }
.date-block { display: grid; gap: .35rem; text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; }
.date-block strong { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 10vw, 8rem); line-height: 1; letter-spacing: -.04em; }
.rule { height: 1px; background: var(--line); margin: 2rem 0; }
.venue-block { margin-bottom: 2rem; }
.venue-block p { margin: .15rem 0; }
.venue-block p:first-child { font-family: var(--serif); font-size: 1.65rem; }
.rsvp-note { margin: 1rem 0 0; color: #6e7772; font-size: .78rem; }

.closing { position: relative; height: min(86svh, 900px); overflow: hidden; color: white; }
.closing img { height: 100%; object-fit: cover; object-position: center 44%; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,31,27,.58), rgba(20,31,27,.03) 70%); }
.closing-copy { position: absolute; z-index: 2; left: clamp(1.25rem, 7vw, 8rem); top: 50%; transform: translateY(-50%); }
.closing-copy p { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; }
.closing-copy h2 { font-size: clamp(4rem, 8vw, 8rem); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: white; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; }
footer p { margin: 0; }
.footer-mark { font-family: var(--serif); font-size: 1.3rem; }
footer a { justify-self: end; text-underline-offset: .25rem; }

.monogram, .footer-mark, .story-copy .lead, .venue-block p:first-child { font-weight: 600; }
.handwritten, .story-copy p, .hero-date { font-weight: 500; }
nav a, .button, .eyebrow { font-weight: 700; }

.registry { text-align: center; }
.registry h2 { font-size: clamp(3.5rem, 7vw, 6rem); margin-bottom: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { padding-top: 1.1rem; }
  nav a:not(.nav-rsvp):not(.nav-registry) { display: none; }
  .hero-photo { object-position: 55% center; }
  .hero-copy { padding-top: 11rem; }
  .hero-date { display: flex; flex-direction: column; gap: .2rem; }
  .hero-date span { display: none; }
  .story, .details { grid-template-columns: 1fr; }
  .story-copy { padding-top: 2rem; }
  .photo-break { grid-template-columns: 1fr; padding-bottom: 6rem; }
  .photo-tall { height: 125vw; }
  .photo-wide { height: 70vw; width: 84%; margin-left: auto !important; margin-top: -2.5rem !important; border: .65rem solid var(--paper); }
  .handwritten { left: 1.5rem; bottom: 3rem; }
  .details-intro br { display: none; }
  .closing { height: 76svh; }
  .closing img { object-position: 58% center; }
  .closing::after { background: linear-gradient(0deg, rgba(20,31,27,.65), rgba(20,31,27,.04) 75%); }
  .closing-copy { top: auto; bottom: 3rem; transform: none; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer a { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero-copy>a,.details-card>a,.cover-note>a,.wedding-info>a{display:flex;width:fit-content;max-width:100%;margin:1rem auto 0}.cover-note>a,.wedding-info>a{margin-left:0}nav a[href^="https://trips."]{display:none}#details-title,#wedding-title{word-spacing:.08em}
