:root {
  /* dark chocolate brown on a white with the faintest warmth */
  --paper: #fffefd;
  --ink: #3f2a22;
  --muted: #74594d;
  --soft: #a59184;
  --olive: #3f2a22;
  --accent: #e38b45;
  --hover: #8a5a44;
  --line: #ebe1d6;
  --line-2: #efe8e0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; }
p { margin: 0; }
[hidden] { display: none !important; }
.site { max-width: 1180px; margin: 0 auto; background: var(--paper); }
.eyebrow { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 15px 28px; font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2a1c16; color: var(--paper); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: default; }

/* language links */
.langs { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 11px; }
.langs button { border: 0; background: transparent; padding: 6px 2px; min-height: 32px; color: var(--muted); font-size: 11px; letter-spacing: .7px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ink); border-bottom: 1px solid var(--muted); }
.langs button:hover { color: var(--ink); }

/* invitation gate */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 42px; background: var(--paper); }
.gate-layout { width: min(1240px, 100%); display: grid; grid-template-columns: .92fr 1.08fr; gap: 6%; align-items: center; }
.gate-copy h1, .hero h1 { font-size: clamp(64px, 8vw, 116px); line-height: .84; letter-spacing: -2px; margin: 24px 0 64px; text-transform: uppercase; }
.gate-copy h1 span, .hero h1 span { display: block; }
.big-date { font: 400 clamp(28px, 3.2vw, 40px) var(--serif); margin-bottom: 18px; }
.gate-copy p.intro, .hero p.intro { font-size: 16px; max-width: 390px; margin-bottom: 18px; }
.venue { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.gate-photo, .hero-photo { width: 100%; object-fit: cover; filter: grayscale(100%) sepia(18%); }
.gate-photo { height: min(76vh, 700px); min-height: 480px; }
.gate-form { max-width: 410px; }
.gate-form input { width: 100%; border: 0; border-bottom: 1px solid var(--soft); background: transparent; padding: 13px 3px; font-size: 15px; outline: none; color: var(--ink); border-radius: 0; }
.gate-form input:focus { border-bottom-color: var(--ink); }
.gate-form .btn { width: 100%; margin-top: 16px; }
.gate-form .langs { justify-content: center; margin-top: 16px; }
.gate-msg { margin-top: 14px; font-size: 13px; color: #8E2A12; }

/* nav */
.topnav { height: 72px; display: flex; align-items: center; justify-content: center; gap: 34px; border-bottom: 1px solid var(--line-2); background: rgba(255,254,253,.96); position: sticky; top: 0; z-index: 5; padding: 0 20px; }
.topnav a { text-decoration: none; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 0; }
.topnav .langs { position: absolute; right: 24px; }
/* each tab carries one colour of the wedding palette: a thin underline on hover and on the current page */
.topnav a { --c: var(--ink); border-bottom: 2px solid transparent; transition: border-color .25s ease; }
.topnav a { --c: var(--ink); }
.topnav a:hover { color: var(--ink); border-bottom-color: var(--c); }
.topnav a[aria-current="page"] { border-bottom-color: var(--c); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 6%; padding: 56px 5.5% 72px; align-items: center; }
.hero-photo { height: 600px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* sections */
.section { padding: 84px 8%; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(40px, 5vw, 50px); margin: 0 0 18px; }
.lead { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* place */
.place-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.place-grid img { width: 100%; height: 380px; object-fit: cover; }
.place-grid .a { grid-column: span 4; }
.place-grid .b { grid-column: span 2; }
.place-grid .c { grid-column: span 6; height: 300px; }

/* schedule */
.schedule { max-width: 760px; margin: 0 auto; }
.day { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.day:first-child { border-top: 1px solid var(--line); }
.dayname { font: 400 28px var(--serif); letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; }
.dayname small { display: block; font: 400 11px var(--sans); letter-spacing: 2px; color: var(--muted); margin-top: 6px; }
.event { margin-bottom: 18px; }
.event:last-child { margin-bottom: 0; }
.time { font-size: 12px; letter-spacing: 1.8px; color: var(--ink); font-weight: 600; text-transform: uppercase; }
.event strong { display: block; font: 400 24px var(--serif); margin: 3px 0; }
.event p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.dress { font-size: 12px; color: var(--muted); margin-top: 14px; }
.dress b { font-weight: 600; color: var(--ink); }
.schedule-note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

.photo-band { margin: 0; position: relative; }
.photo-band img { width: 100%; height: clamp(300px, 42vw, 520px); object-fit: cover; }
.photo-band.tri { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 12px; }
.photo-band.tri img { height: clamp(300px, 36vw, 480px); }
.photo-band figcaption { position: absolute; left: 24px; bottom: 24px; background: #fff; padding: 9px 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* guide */
.guidegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
.guidecard { border: 1px solid var(--line); padding: 28px; }
.guidecard.wide { grid-column: span 2; }
.guidecard h3 { font-size: 30px; margin: 0 0 12px; }
.guidecard p { font-size: 13px; line-height: 1.75; color: var(--muted); }
.guidecard p + p { margin-top: 10px; }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-top: 8px; }
.route .time { display: block; margin-bottom: 4px; }
.route strong { display: block; font: 400 22px var(--serif); margin-bottom: 4px; }
.arrive { max-width: 620px; margin: 0 auto 32px; text-align: center; font: 400 22px/1.35 var(--serif); }

.section.first { border-top: 0; }
.planner { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.schedule-note a { color: var(--muted); }

/* hotel carousel */
.hotel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; margin-top: 18px; }
.hotel-img { aspect-ratio: 4 / 3; background: #ece2d6; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.hotel strong { display: block; font: 400 24px var(--serif); margin: 4px 0 8px; }
.hotel-link { margin-top: 10px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }
.hotel-nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.hotel-nav button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.hotel-nav button:hover { border-color: var(--ink); }

/* about us */
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; }
.story-photo { width: 100%; height: 520px; object-fit: cover; filter: grayscale(100%) sepia(18%); }
.story h3 { font-size: 36px; margin-bottom: 14px; }
.story p { font-size: 15px; color: var(--muted); line-height: 1.8; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; font: 400 22px var(--serif); list-style: none; min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; font-size: 13px; color: var(--muted); }

footer { text-align: center; padding: 56px 20px; color: var(--muted); font-size: 11px; letter-spacing: 2px; border-top: 1px solid var(--line); }
footer .btn { margin: 26px 0; }

/* rsvp */
.rsvp-main { max-width: 640px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 30px; }
.rsvp-main .section-head { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps li { padding-top: 10px; border-top: 2px solid var(--line); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.steps li.on { border-color: var(--olive); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field .lbl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 13px; border: 1px solid #d9c6b4; background: transparent; color: var(--ink); font-size: 15px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 1px solid var(--ink); border-color: var(--ink); }
.ev { margin: 0; border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ev legend { padding: 0 8px; }
.ev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.ev-head h3 { font-size: 30px; }
.person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.person .n { font-size: 15px; font-weight: 400; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice button { min-height: 44px; padding: 10px 16px; font-size: 13px; cursor: pointer; border: 1px solid #d9c6b4; background: transparent; color: var(--ink); }
.choice button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.error { color: #8E2A12; font-size: 14px; }
.textlink { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.summary li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary li span:first-child { font: 400 20px var(--serif); }

@media (max-width: 760px) {
  .gate { padding: 24px; }
  .gate-layout, .hero { grid-template-columns: 1fr; gap: 28px; }
  .gate-photo { grid-row: 1; height: 42vh; min-height: 260px; max-height: 420px; }
  .hero { padding: 32px 7% 48px; }
  .hero-photo { grid-row: 1; height: 440px; }
  .gate-copy h1, .hero h1 { font-size: 72px; margin: 18px 0 32px; }
  .topnav { gap: 18px; height: auto; min-height: 60px; flex-wrap: wrap; padding: 8px 16px; }
  .topnav .langs { position: static; width: 100%; justify-content: center; }
  .section { padding: 60px 7%; }
  .day { grid-template-columns: 1fr; gap: 10px; }
  .guidegrid, .routes { grid-template-columns: 1fr; }
  .guidecard.wide { grid-column: auto; }
  .place-grid img { height: 240px; }
  .place-grid .a, .place-grid .b, .place-grid .c { grid-column: span 6; }
  .place-grid .c { height: 200px; }
  .hotel, .story { grid-template-columns: 1fr; }
  .story-photo { height: 380px; }
  .photo-band.tri { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-band.tri .p2 { grid-column: span 2; order: -1; height: 260px; }
  .photo-band.tri .p1, .photo-band.tri .p3 { height: 280px; }
}

/* "Not you? Switch guest" link in the footer */
.switch-guest { display: block; margin: 18px auto 0; background: none; border: 0; padding: 4px; font: inherit; font-size: 12px; letter-spacing: .08em; color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.switch-guest:hover { opacity: 1; }

/* weekend: day title + dress code card with colour palette */
.daytitle { font: 400 26px var(--serif); margin-bottom: 14px; }
.dress a { color: var(--muted); }
.dresscard { position: relative; scroll-margin-top: 90px; }
.dresscard::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: linear-gradient(90deg, #5e1a24 0 20%, #b0532c 20% 40%, #d8aea4 40% 60%, #34452f 60% 80%, #4a2e24 80%); }
.dresscard .routes { margin-top: 20px; }
.palette { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.palette strong { display: block; font: 400 22px var(--serif); margin-bottom: 6px; }
.swatches { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.swatches li { display: flex; align-items: center; gap: 9px; }
.swatches span { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatches em { font-style: normal; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }

/* hint under the name field on the welcome page */
.gate-hint { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ask a question */
.ask-block { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.ask-block .section-head { margin-bottom: 0; }
.ask-block .ask-form, .ask-block .ask-thanks { max-width: none; margin: 0; }
.ask-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.ask-form .btn { align-self: flex-start; }
.ask-thanks { max-width: 560px; margin: 0 auto; text-align: center; font: 400 24px/1.4 var(--serif); }
.ask-link { display: inline-block; margin-top: 18px; color: var(--ink); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.dress-note { margin-top: 10px; }

/* schedule: time and event on one line, smaller, so the day title leads */
.event { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; align-items: baseline; margin-bottom: 10px; }
.event .time { grid-column: 1; grid-row: 1; font-size: 11px; }
.event strong { grid-column: 2; grid-row: 1; font: 400 18px/1.35 var(--serif); margin: 0; }
.event p { grid-column: 2; margin-top: 2px; }
.daytitle { margin: 18px 0 12px; }
.daytitle:first-child { margin-top: 0; line-height: 1.1; }
@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; row-gap: 2px; margin-bottom: 14px; }
  .event .time, .event strong, .event p { grid-column: 1; grid-row: auto; }
}
.dress-wrap { margin-top: 36px; }
/* guide: venue address + map */
.mapcard { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
.mapcopy { display: flex; flex-direction: column; align-items: flex-start; }
.mapcard address { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 22px; }
.mapcard .btn { margin-top: auto; }
.map { width: 100%; min-height: 240px; border: 0; filter: grayscale(100%) sepia(18%); }
@media (max-width: 760px) { .mapcard { grid-template-columns: 1fr; } .mapcard .btn { margin-top: 0; } }

/* weekend: add to calendar (a <details> dropdown, works without JavaScript) */
details.cal { position: relative; display: inline-block; margin-top: 26px; padding: 0; border: 0; text-align: left; }
details.cal summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 28px; background: var(--ink); color: var(--paper); font: 400 11px var(--sans); letter-spacing: 2px; text-transform: uppercase; }
details.cal summary::after { content: "▾"; float: none; color: inherit; font-size: 12px; }
details.cal[open] summary::after { content: "▴"; }
.cal-menu { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); width: 280px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(63,42,34,.08); z-index: 4; }
.cal-menu a { display: block; padding: 16px 20px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cal-menu a:last-child { border-bottom: 0; }
.cal-menu a:hover { background: #faf6f2; color: var(--ink); }
.cal-t { display: block; font: 400 20px/1.3 var(--serif); }
.cal-s { display: block; font-size: 12px; color: var(--muted); }

/* guide: travel basics as a small footnote block at the very end */
.basics-mini { max-width: 760px; margin: 0 auto; padding: 36px 8% 56px; border-top: 1px solid var(--line); }
.basics-mini .eyebrow { text-align: center; margin-bottom: 18px; }
.basics-mini ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.basics-mini li { font-size: 12px; line-height: 1.6; color: var(--muted); }
.basics-mini b { font-weight: 600; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); margin-right: 6px; }
.basics-mini .bh::after { content: ". "; }
@media (max-width: 760px) { .basics-mini ul { grid-template-columns: 1fr; } }

/* guide: shuttle note inside the hotels card */
.hotel-transport { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.hotel-transport strong { display: block; font: 400 22px var(--serif); margin-bottom: 6px; }

/* guide: "Join us" note inside the things-to-do card, same style as the shuttle note */
.do-join { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.do-join strong { display: block; font: 600 22px var(--serif); margin-bottom: 6px; }

/* dress code: palette sits inside the Saturday column */
.route .palette { margin-top: 18px; padding-top: 16px; }
.route .palette strong { font-size: 20px; }
.route .swatches { gap: 10px 16px; }

/* dress code: Friday narrower, Saturday wider; palette dots in one row with names underneath */
.dresscard .routes { grid-template-columns: 0.8fr 1.2fr; }
.route .swatches { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
.route .swatches li { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.route .swatches span { width: 28px; height: 28px; }
.route .swatches em { font-size: 9.5px; letter-spacing: 1.2px; white-space: nowrap; }
@media (max-width: 760px) {
  .dresscard .routes { grid-template-columns: 1fr; }
  .route .swatches { flex-wrap: wrap; justify-content: flex-start; gap: 14px 18px; }
}

/* about: mini phrasebook */
.phrasebook .eyebrow { margin-bottom: 10px; }
.pb dl { margin: 6px 0 0; }
.pb dt { font: 400 22px var(--serif); margin-top: 14px; }
.pb dd { margin: 2px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* rsvp: little celebration after a yes */
.done-fun { font: 400 26px/1.35 var(--serif); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* home + welcome page: a pale-gold ginkgo leaf drifting behind the names */
.hero, .gate-copy { position: relative; }
.hero::before, .gate-copy::before { content: ""; position: absolute; pointer-events: none; background: #e2bd72; opacity: .35; transform: rotate(-12deg); width: 560px; height: 450px; -webkit-mask: url(/ginkgo.png) center / contain no-repeat; mask: url(/ginkgo.png) center / contain no-repeat; }
.hero::before { left: -40px; top: 10px; }
.gate-copy::before { left: -110px; top: -60px; }
.hero > *, .gate-copy > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .hero::before, .gate-copy::before { width: 360px; height: 290px; left: -60px; top: auto; bottom: 120px; } }
