/* Chelsey & Alex, coleswedding.com */

/* Fonts: latin subsets, self-hosted */
@font-face { font-family: 'Italiana'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/italiana-400-latin.woff2") format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-400-latin.woff2") format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-300-italic-latin.woff2") format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-400-italic-latin.woff2") format('woff2'); }
@font-face { font-family: 'Cormorant SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/cormorant-sc-400-latin.woff2") format('woff2'); }
@font-face { font-family: 'Tenor Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/tenor-sans-400-latin.woff2") format('woff2'); }

:root {
  --paper: #ece7d8;
  --paper-deep: #e4ded0;
  --ink: #1d1a16;
  --muted: #6e665a;
  --hairline: rgba(29, 26, 22, 0.28);
  --hairline-strong: rgba(29, 26, 22, 0.55);
  --nav-h: 64px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Italiana", "Cormorant Garamond", serif;
  --sc: "Cormorant SC", serif;
  --sans: "Tenor Sans", "Cormorant SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--serif);
  font-size: 18px; line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}
/* the engraver's plate mark */
body::after {
  content: ""; position: fixed; inset: 9px;
  border: 1px solid rgba(29, 26, 22, 0.13);
  pointer-events: none; z-index: 300;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; }

/* ─── Type helpers ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .44em; text-transform: uppercase;
  color: var(--muted); text-indent: .44em; /* balance the trailing tracking */
}
.it { font-style: italic; letter-spacing: .02em; }
.smallcaps { font-family: var(--sc); letter-spacing: .3em; }

/* ─── Ornament (rule · diamond · rule) ─── */
.orn { margin: 0 auto; width: 180px; display: flex; align-items: center; gap: 12px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--ink); opacity: .3; }
.orn span { width: 6px; height: 6px; background: var(--ink); opacity: .65; transform: rotate(45deg); }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(236, 231, 216, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--sc); font-size: 15px; letter-spacing: .3em;
}
.nav-brand svg { display: block; }
.nav-brand { gap: 0; }
.nav-brand img { height: 19px; width: auto; display: block; margin: 0 6px 2px 3px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.nav-links a {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--muted); border-bottom-color: var(--hairline); }
.nav-links a.nav-cta {
  border: 1px solid var(--ink); padding: 9px 16px;
  transition: background .15s, color .15s;
}
.nav-links a.nav-cta:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.cta-short { display: none; }
.nav-brand span, .nav-links a { white-space: nowrap; }
@media (max-width: 620px) {
  .nav-brand { font-size: 13px; }
  .nav-brand img { height: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; letter-spacing: .18em; }
  .nav-links a.nav-cta { padding: 8px 12px; }
  .nav-venues { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 350px) {
  .nav-brand { display: none; }
  .nav-links { gap: 11px; }
  .nav-links a { letter-spacing: .14em; }
}

/* ─── Sections ─── */
main { display: block; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.section {
  padding: clamp(56px, 10vw, 110px) clamp(20px, 5vw, 40px);
}
.section-inner { max-width: 980px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(32px, 6vw, 56px); }
.section-head .orn { margin-top: 18px; }
.band { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  --muted: #665e52; /* darker on the deeper paper: keeps muted text >= 4.5:1 (WCAG AA) */ }

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 80px)) clamp(20px, 5vw, 40px) 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-names {
  font-family: var(--display);
  font-size: clamp(34px, 7.5vw, 64px);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
}
.hero-and {
  font-style: italic; font-weight: 300;
  font-size: clamp(20px, 4vw, 30px); color: var(--muted);
  margin: 8px 0; line-height: 1;
}
.hero-date { font-size: clamp(19px, 4vw, 25px); }
.hero-place {
  font-family: var(--sc); font-size: 15px; letter-spacing: .32em; text-indent: .32em;
  color: var(--muted); margin-top: 10px;
}
.hero-count {
  margin-top: clamp(32px, 6vh, 54px);
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--muted);
  min-height: 1em;
}
.hero-art { width: min(860px, 92vw); margin: clamp(28px, 6vh, 56px) auto 0; }
.hero-art img { display: block; width: 100%; }
.hero-art figcaption {
  margin-top: 10px; text-align: center;
  font-style: italic; font-size: 14.5px; color: var(--muted);
}

/* ─── Day sheet ─── */
.day-sheet {
  margin: 14px 0 0; font-size: 16px; color: var(--muted); text-align: center;
}
.stop-now::before { width: 10px; height: 10px; margin-left: -5px; opacity: 1; }
.stop-now .stop-time { color: var(--ink); }

/* ─── The Day: timeline ─── */
.stops {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  text-align: center;
  position: relative;
}
.stops::before {
  content: ""; position: absolute; top: 3px; left: 8%; right: 8%;
  height: 1px; background: var(--ink); opacity: .22;
}
.stop { position: relative; padding-top: 28px; }
.stop::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px;
  background: var(--ink); opacity: .7; transform: rotate(45deg);
}
.stop-time {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--muted);
}
.stop-venue { font-family: var(--sc); font-size: 18px; letter-spacing: .14em; margin-top: 10px; }
.stop-note { font-style: italic; font-size: 15.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

@media (max-width: 720px) {
  .stops { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .stops::before { top: 10px; bottom: 10px; left: 3px; right: auto; width: 1px; height: auto; }
  .stop { padding: 0 0 32px 28px; }
  .stop:last-child { padding-bottom: 0; }
  .stop::before { left: 0; top: 7px; margin-left: 0; }
}

/* ─── Ceremony note ─── */
.ceremony-note {
  max-width: 56ch;
  margin: clamp(30px, 5vw, 44px) auto 0;
  text-align: center;
  font-size: 16px; line-height: 1.7;
  color: var(--muted);
}

/* ─── Dress ─── */
.dress-fold { margin-top: 22px; }
.dress-fold summary {
  display: inline-block; cursor: pointer; list-style: none;
}
.dress-fold summary::-webkit-details-marker { display: none; }
.fold-chev { margin-left: 8px; vertical-align: 1px; transition: transform .25s ease; }
.dress-fold[open] .fold-chev { transform: rotate(180deg); }
.dress-fold[open] summary { color: var(--muted); }
.dress-fold[open] .dress-photos { animation: dressfade .5s ease; }
@keyframes dressfade { from { opacity: 0; } to { opacity: 1; } }
.dress-fold .dress-photos { text-align: left; }

.dress-photos {
  columns: 4 170px; column-gap: 10px;
  margin-top: clamp(26px, 4vw, 36px);
}
.dress-photos figure {
  margin: 0 0 10px; border: 1px solid var(--hairline);
  padding: 5px; background: var(--paper);
  break-inside: avoid;
}
.dress-photos img { display: block; width: 100%; height: auto; }
.dress-foot {
  margin: 14px 0 4px; text-align: center;
  font-style: italic; font-size: 14.5px; color: var(--muted);
}


/* ─── Venues ─── */
.map-fig {
  margin: 0 0 clamp(28px, 5vw, 44px);
  border: 1px solid var(--hairline-strong);
  outline: 1px solid var(--hairline); outline-offset: 5px;
  padding: clamp(10px, 2vw, 18px);
  background: var(--paper);
}
.map-fig svg { display: block; width: 100%; height: auto; }
.map-fig figcaption {
  margin-top: 10px; text-align: center;
  font-style: italic; font-size: 14.5px; color: var(--muted);
}
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 36px); }
.venue {
  border: 1px solid var(--hairline-strong);
  outline: 1px solid var(--hairline); outline-offset: 5px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 36px);
  text-align: center; background: var(--paper);
}
.venue-role {
  font-family: var(--sans); font-size: 10px; letter-spacing: .4em; text-indent: .4em;
  text-transform: uppercase; color: var(--muted);
}
.venue-name { font-family: var(--sc); font-size: 20px; letter-spacing: .12em; margin-top: 12px; }
.venue-addr { font-style: italic; font-size: 15.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.venue-map {
  display: inline-block; margin-top: 16px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-indent: .3em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--hairline); padding-bottom: 3px;
}
@media (max-width: 720px) { .venues { grid-template-columns: 1fr; } }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 14px 30px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-indent: .32em;
  text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active, .nav-links a.nav-cta:active { transform: translateY(1px); }
.dish input:active + .dish-card, .dish-card:active { transform: translateY(1px); }
.btn[disabled] { background: transparent; color: rgba(29, 26, 22, .4); cursor: not-allowed; }
/* visually quiet until the form is complete, but still clickable so native
   validation can announce what's missing */
.btn-waiting { background: transparent; color: rgba(29, 26, 22, .55); }

/* ─── Footer ─── */
.footer {
  padding: clamp(48px, 8vw, 80px) 20px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.footer .orn { margin-bottom: 26px; }
.seal-emboss { display: block; margin: 0 auto 22px; }
.footer-line { font-style: italic; font-size: 16.5px; color: var(--muted); }
.footer-mark {
  margin-top: 16px;
  font-family: var(--sc); font-size: 12px; letter-spacing: .32em; text-indent: .32em;
  color: var(--muted);
}

/* ─── Menu page ─── */
.menu-wrap { max-width: 640px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(32px, 6vw, 56px)) 20px clamp(56px, 8vw, 90px); }
.menu-title {
  font-family: var(--display); font-size: clamp(32px, 8vw, 46px);
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; text-align: center;
}
.menu-sub { text-align: center; font-style: italic; font-size: 17px; color: var(--muted); margin-top: 10px; }
.course { margin-top: clamp(36px, 6vw, 48px); }
.course-head { text-align: center; margin-bottom: 28px; }
.course-head .eyebrow { display: block; } /* text-indent centering fix needs a block box */
.course-head .orn { width: 110px; margin-top: 18px; }
.dishes { display: flex; flex-direction: column; gap: 10px; }
.dish { position: relative; display: block; cursor: pointer; }
.dish input {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.dish-card {
  display: block;
  text-align: center; padding: 15px 40px;
  border: 1px solid rgba(29, 26, 22, 0.18);
  transition: border-color .15s, background .15s;
  position: relative;
}
.dish:hover .dish-card { border-color: var(--hairline-strong); }
.dish input:checked + .dish-card { border-color: var(--ink); background: rgba(29, 26, 22, 0.04); }
.dish input:focus-visible + .dish-card { outline: 2px solid var(--ink); outline-offset: 2px; }
.dish input:checked + .dish-card::after {
  content: ""; position: absolute; top: 11px; right: 13px;
  width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg);
}
.dish-name { display: block; font-size: 19.5px; line-height: 1.3; }
.dish-tag { font-family: var(--sc); font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-left: 8px; }
.dish-detail { font-style: italic; font-size: 15.5px; color: var(--muted); line-height: 1.4; margin-top: 3px; }

.field { margin-top: 26px; }
.field-label {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px;
}
.field input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(29, 26, 22, 0.3); border-radius: 0;
  padding: 8px 0 6px;
  font-family: var(--serif); font-size: 17px; font-style: italic;
  color: var(--ink); outline: none;
}
.field input:focus { border-bottom-color: var(--ink); }
.field input::placeholder { color: var(--muted); opacity: 1; }

.menu-actions { margin-top: 34px; text-align: center; }
.menu-actions .btn { width: 100%; max-width: 360px; }
.form-msg { margin-top: 14px; font-style: italic; font-size: 15.5px; color: var(--muted); }
.sent-state {
  border: 1px solid var(--hairline-strong);
  outline: 1px solid var(--hairline); outline-offset: 5px;
  background: var(--paper);
  text-align: center;
  padding: clamp(30px, 6vw, 46px) clamp(20px, 5vw, 44px) clamp(28px, 5vw, 40px);
  margin-top: clamp(28px, 5vw, 40px);
}
.sent-state .orn { width: 120px; }
.sent-line { font-style: italic; font-size: 17.5px; margin: 18px 0 0; }
.sent-summary { margin-top: 24px; display: flex; flex-direction: column; gap: 9px; }
.sent-summary p { margin: 0; }
.sent-course {
  display: block;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.sent-summary p > span:last-child {
  font-family: var(--sc); font-size: 17px; letter-spacing: .1em;
}
.sent-counterfoil {
  margin: 22px 0 0;
  font-family: var(--sc); font-size: 12px; letter-spacing: .24em; text-indent: .24em;
  color: var(--muted);
}
.sent-note { font-style: italic; font-size: 14.5px; color: var(--muted); line-height: 1.7; margin: 26px 0 0; }
.menu-deadline {
  margin-top: 20px; text-align: center;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--muted);
}

/* ─── 404 ─── */
.lost {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 20px;
}
.lost-line { font-style: italic; font-size: 18px; color: var(--muted); margin: 18px 0 30px; }

/* print */
@media print {
  .nav, body::after, #diary-line, .dress-fold, .nav-links { display: none; }
  .hero { min-height: 0; padding-top: 20px; }
  section, .footer { break-inside: avoid; }
}
