/* ==========================================================================
   1. Design tokens: change colors, fonts, and widths here
   ========================================================================== */
:root {
  --bg: #fafaf8;
  --bg-alt: #f3f2ee;
  --surface: #fff;
  --ink: #2b2b28;
  --ink-soft: #55554f;
  --muted: #7a7a72;
  --rule: #dcdbd4;
  --accent: #4f5c45;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;
  --script: "Pinyon Script", "Edwardian Script ITC", cursive;

  --max-width: 980px;
  --nav-height: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--nav-height) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { margin: 1rem 0; line-height: 1; }

h1.names { width: 100%; }
h1.names picture {
  display: block;
  width: min(100%, 58rem);
  margin-inline: auto;
}
h1.names img { display: block; width: 100%; height: auto; }
h2 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 2.5rem; }
h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h4 { font-size: 1.4rem; font-weight: 400; margin-bottom: .4rem; }

p { margin: 0 0 1rem; }
address { font-style: normal; }
a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #dde5d6; }

/* ==========================================================================
   3. Shared pieces
   ========================================================================== */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: clamp(5rem, 12vw, 9rem) 1.25rem;
  text-align: center;
}
.section > * { max-width: var(--max-width); margin-inline: auto; }
.section-alt { background: var(--bg-alt); }

.prose { max-width: 36em; font-family: var(--serif); font-size: 1.3rem; line-height: 1.65; }
.prose + h3 { margin-top: 2rem; margin-bottom: 1.2rem; }
.lede { font-family: var(--serif); font-size: 1.3rem; margin: -1rem auto 2.5rem; text-wrap: balance; }

.link {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .3s;
}
.link:hover { border-color: var(--ink); }

.btn {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: .8rem 1.6rem;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }

.story-photo { max-width: 440px; margin: 3rem auto; }
.story-photo img { width: 100%; }
.story-photo figcaption {
  margin-top: .8rem;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 680px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder highlight: delete the "todo" class once real content is in */
.todo { background: #fff3c4; outline: 1px dashed #d9b44a; }

/* ---------- photo placeholders (delete once all real photos are in) ---------- */
.photo-slot {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .025) 14px 15px),
    var(--surface);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled,
.nav.menu-open { background: rgba(250, 250, 248, .95); box-shadow: 0 1px 0 var(--rule); }

.nav-mark { display: flex; align-items: center; }
.nav-mark img { height: 54px; width: auto; display: block; }

.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 1.8rem); }
.nav-links a {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav-links a:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s, top .3s;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden; /* keeps hidden links out of keyboard tab order */
    transition: max-height .4s var(--ease), visibility 0s .4s;
  }
  .nav-links.open {
    max-height: 80vh;
    visibility: visible;
    border-bottom: 1px solid var(--rule);
    transition: max-height .4s var(--ease);
  }
  .nav-links a { padding: 1rem; text-align: center; border: 0; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* accounts for mobile browser toolbars */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
}
.date { font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; }

.countdown { display: flex; gap: clamp(1.4rem, 5vw, 3rem); margin-top: 2.5rem; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 3rem; }
.countdown span {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* Hero starts hidden only when JS is on; site.js animates it in.
   If JS never runs, the fallback animation reveals it after 3s. */
.js .hero > * { opacity: 0; animation: reveal-fallback 0s 3s forwards; }
@keyframes reveal-fallback { to { opacity: 1; } }

/* ==========================================================================
   6. Schedule
   ========================================================================== */
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.event-time { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.event h3 { margin: .4rem 0 1rem; }
.event-place { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3rem; }
.event-addr { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }

@media (max-width: 680px) {
  .events { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Hotels
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.card { background: var(--surface); border: 1px solid var(--rule); padding: 2rem; }
.card h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.card-addr { color: var(--muted); font-size: .9rem; }
.card-rate { font-family: var(--serif); font-size: 2rem; margin: 1.2rem 0 0; }
.card-rate small { font-size: 1rem; color: var(--muted); }
.card-meta {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   8. Things to do
   ========================================================================== */
.explore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  text-align: left;
}
.explore article { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.explore p { color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.faq { max-width: 720px; text-align: left; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2rem 1.3rem 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.3rem; line-height: 1.7; color: var(--ink-soft); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
  text-align: center;
  padding: 4rem 1rem 5rem;
  border-top: 1px solid var(--rule);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-names {
  font-family: var(--serif);
  font-size: 2.2rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: .4rem;
}
.footer-names em { color: var(--accent); }

.footer-logo {
  width: clamp(160px, 40vw, 280px);
  height: auto;
  margin: 0 auto 1.5rem;
}
