@import url('/fonts.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory: #F7F4EC;
  --ink: #1D1B16;
  --ink-dim: rgba(29,27,22,.55);
  --brass: #A8834B;
  --brass-line: rgba(168,131,75,.5);
  --brass-faint: rgba(168,131,75,.22);
  --serif: 'Bodoni Moda', 'Didot', serif;
  --sans: 'Jost', 'Futura', system-ui, sans-serif;
  --pad: clamp(22px, 5vw, 72px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — near-invisible, gives the ivory ground a printed texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brass); color: var(--ivory); }
a:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 4px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad);
  background: linear-gradient(to bottom, var(--ivory) 60%, rgba(247,244,236,0));
}

.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: .02em;
}

.nav-brand span { color: var(--brass); }

.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); }

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s;
  padding-bottom: 2px;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--brass); border-bottom: 1px solid var(--brass); }

/* ── PAGE HEAD ── */
.page-head {
  padding: clamp(140px, 22vh, 200px) var(--pad) clamp(40px, 7vh, 72px);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 26px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: .005em;
}

.page-title em { font-style: italic; color: var(--brass); }

.page-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--ink-dim);
  margin-top: 22px;
  line-height: 1.5;
}

.rule-v {
  width: 1px;
  height: clamp(30px, 5vh, 52px);
  background: linear-gradient(to bottom, transparent, var(--brass), transparent);
  margin: clamp(24px, 4vh, 40px) auto 0;
}

/* ── WRAP ── */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(72px, 12vh, 130px);
}

.wrap-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(72px, 12vh, 130px);
}

/* ── PROSE ── */
.prose { text-align: center; }

.prose p {
  font-size: clamp(16px, 1.9vw, 19px);
  margin-bottom: 1.5em;
  color: var(--ink);
  line-height: 1.85;
}

.prose .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.5;
  margin-bottom: 1.3em;
}

.prose .lede em, .prose .lede span { color: var(--brass); }

/* ── PHOTOS ── */
.photo-full {
  margin: clamp(40px, 7vh, 76px) auto;
  max-width: 640px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brass-line);
}

.photo-full img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}

.photo-full:hover img { transform: scale(1.035); }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 20px);
  margin: clamp(40px, 7vh, 76px) auto;
  max-width: 1000px;
}

.photo-pair figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brass-line);
}

.photo-pair figure img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}

.photo-pair figure:hover img { transform: scale(1.035); }

.photo-full figcaption, .photo-pair figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(to top, rgba(15,13,9,.78) 0%, rgba(15,13,9,.3) 50%, transparent 80%);
  color: #F7F4EC;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: .01em;
  text-align: left;
  text-transform: none;
}

/* ── ORDER OF SERVICE ── */
.order { max-width: 720px; margin: 0 auto; }

.order-part {
  text-align: center;
  padding: clamp(40px, 7vh, 64px) 0 clamp(20px, 3vh, 30px);
}

.order-part .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}

.order-part h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .01em;
}

.order-part .venue-tag {
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 8px;
  display: block;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(120px, 185px) 1fr;
  gap: clamp(18px, 3.5vw, 40px);
  padding: clamp(20px, 3.2vh, 30px) 0;
  border-top: 1px solid var(--brass-faint);
  align-items: center;
}

.order-row:last-child { border-bottom: 1px solid var(--brass-faint); }

.order-time {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--ink);
}

.order-time sup {
  font-size: .3em;
  font-style: italic;
  color: var(--brass);
  vertical-align: super;
  margin-left: 3px;
  letter-spacing: 0;
}

.order-event {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.25;
}

.order-note {
  font-size: 14px;
  color: var(--ink-dim);
  margin-top: 6px;
  line-height: 1.65;
}

.order-row.key .order-time { color: var(--brass); }
.order-row.key .order-event { font-style: italic; }

/* ── INFO ROWS (travel / accommodation) ── */
.info-list { border-top: 1px solid var(--brass-line); }

.info-row {
  display: grid;
  grid-template-columns: minmax(110px, 200px) 1fr;
  gap: clamp(20px, 5vw, 72px);
  padding: clamp(30px, 5vh, 48px) 0;
  border-bottom: 1px solid var(--brass-faint);
}

.info-key {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 8px;
}

.info-val h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 28px);
  margin-bottom: 12px;
  line-height: 1.25;
}

.info-val p, .info-val li {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 10px;
  line-height: 1.75;
}

.info-val strong { color: var(--ink); font-weight: 400; }

.info-val li { padding-left: 18px; position: relative; }
.info-val li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--brass);
  font-weight: 700;
}

.info-val a { border-bottom: 1px solid var(--brass); transition: color .2s; }
.info-val a:hover { color: var(--brass); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--brass-faint); }
.faq-item:first-of-type { border-top: 1px solid var(--brass-line); }

.faq-item summary {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2.3vw, 23px);
  padding: clamp(20px, 3vh, 28px) 44px clamp(20px, 3vh, 28px) 4px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 24px;
  color: var(--brass);
  transition: transform .25s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--brass); }

.faq-item .faq-a {
  padding: 0 4px clamp(20px, 3vh, 28px);
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 62ch;
  line-height: 1.8;
}

/* ── STAMP ── */
.stamp {
  border: 1px solid var(--brass-line);
  display: inline-block;
  padding: clamp(20px, 3vw, 32px) clamp(30px, 5vw, 56px);
  margin: 10px 0 30px;
  position: relative;
  background: var(--ivory);
}

.stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--brass-faint);
  pointer-events: none;
}

.stamp .k {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}

.stamp .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.15;
}

.stamp .v a { border-bottom: 1.5px solid var(--brass); }
.stamp .v a:hover { color: var(--brass); }

/* ── BUTTON ── */
.btn {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--ink);
  padding: 17px 48px 16px 52px;
  transition: background .25s, box-shadow .25s;
}

.btn:hover, .btn:focus-visible {
  background: var(--brass);
  box-shadow: 0 10px 34px rgba(168,131,75,.3);
}

/* ── NEXT LINK ── */
.next-block {
  text-align: center;
  padding: clamp(56px, 9vh, 96px) var(--pad);
  border-top: 1px solid var(--brass-faint);
}

.next-block .eyebrow { margin-bottom: 16px; }

.next-block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 32px);
  margin-bottom: 30px;
  line-height: 1.4;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--brass-line);
  padding: clamp(48px, 8vh, 80px) var(--pad);
  text-align: center;
}

.footer .f-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 38px);
}

.footer .f-names span { color: var(--brass); }

.footer .f-date {
  font-size: 10.5px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 12px;
}

.footer .f-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.footer .f-nav a {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s;
}

.footer .f-nav a:hover { color: var(--brass); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav { flex-direction: column; gap: 12px; padding: 14px var(--pad); }
  .page-head { padding-top: 150px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 9.5px; letter-spacing: .16em; }
  .photo-pair { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 96px 1fr; gap: 14px; }
  .info-row { grid-template-columns: 1fr; gap: 10px; }
  .info-key { padding-top: 0; }
}

/* ── POLISH LAYER ── */

#event-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
}

#event-strip a, #event-strip span.es-link {
  color: var(--ivory);
  border-bottom: 1px solid rgba(247,244,236,.5);
}

body.has-strip { padding-top: 34px; }
body.has-strip .nav { top: 34px; }

@media (max-width: 640px) {
  #event-strip { font-size: 9.5px; padding: 8px 12px; }
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
}

/* Nav: frosted on scroll, animated underlines */
.nav {
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, top .3s;
}

.nav.scrolled {
  background: rgba(247,244,236,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--brass-faint);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.6,.2,1);
}

.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { border-bottom: none; }
.nav-links a.active::after { transform: scaleX(1); }

/* Page transitions */
body.page-enter { opacity: 0; }
body.page-enter-active { opacity: 1; transition: opacity .45s ease; }
body.page-exit { opacity: 0; transition: opacity .26s ease; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 400;
  cursor: zoom-out;
}

#lightbox.open { opacity: 1; pointer-events: auto; }

#lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border: 1px solid var(--brass-line);
  padding: 10px;
  background: var(--ivory);
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.2,.6,.2,1);
}

#lightbox.open img { transform: scale(1); }

#lb-close {
  position: absolute;
  top: 20px; right: 28px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 34px;
  color: #F7F4EC;
  cursor: pointer;
  line-height: 1;
}

/* Photos feel touchable */
.photo-pair img, .photo-full img, .gallery img { cursor: zoom-in; transition: box-shadow .3s; }
.photo-pair figure:hover img, .photo-full figure:hover img { box-shadow: 0 14px 44px rgba(29,27,22,.14); }

/* Hotel cards lift */
.hotel-card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.hotel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(168,131,75,.16);
}

/* Buttons: brass sweep */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.btn:hover::before { transform: translateX(0); }
.btn > * , .btn { z-index: 0; }
.btn { isolation: isolate; }
.btn::before { z-index: -1; }

@media (prefers-reduced-motion: reduce) {
  .hotel-card, .btn::before, #lightbox img, .nav-links a::after { transition: none !important; }
}

/* ── MOBILE REFINEMENTS ── */
@media (max-width: 640px) {
  /* Nav: horizontal scroll strip instead of cramped wrap */
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 2px 8px;
    justify-content: flex-start;
    mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 14px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 14px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex-shrink: 0; font-size: 10px; letter-spacing: .18em; }
}

/* ── PRINT: The Day as a clean order of service ── */
@media print {
  .nav, .footer, .next-block, #scroll-progress, #lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head { padding: 0 0 24pt; }
  .page-title, .order-time, .order-event, .order-part h2 { color: #000 !important; }
  .order-time sup, .order-part .num, .eyebrow { color: #555 !important; }
  .order-row { break-inside: avoid; padding: 10pt 0; border-top: 1pt solid #ddd; }
  .order-row.key .order-time, .order-row.key .order-event { color: #000 !important; }
  .order-note { color: #555; }
  /* hide interactive jukebox when printing */
  .wrap [id="jukebox"], .wrap:has(#jukebox) > div { display: none; }
  a { text-decoration: none; color: inherit; }
}
@media print { .no-print { display: none !important; } }
