/* Nora & Jalen. Elopement + backyard party. Multi-page, trail-map minimal. Edit :root to restyle. */
:root {
  --paper: #F3F3EF;
  --fog: #E4E7E2;
  --graphite: #1C2124;
  --slate: #4B5357;
  --line: #B9BEB6;
  --rust: #C4532A;
  --moss: #56664B;
  --sky: #A9BCC6;

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4.5vw, 3.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.03rem/1.6 var(--sans); color: var(--graphite); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .01em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Topo canvas ---------- */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo path { fill: none; stroke: var(--line); stroke-width: .9; vector-effect: non-scaling-stroke; }
.topo path.major { stroke: #9CA299; stroke-width: 1.3; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .75rem var(--gutter); background: rgba(243,243,239,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__brand { font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 1.05rem; }
.nav__brand span { color: var(--rust); }
.nav__menu { display: flex; gap: .2rem; padding: .25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.nav__menu a { font-family: var(--mono); font-size: .8rem; text-decoration: none; padding: .45rem .8rem; border-radius: 7px; white-space: nowrap; }
.nav__menu a:hover { background: var(--fog); }
.nav__menu a[aria-current="page"] { background: var(--graphite); color: var(--paper); }
.nav__coord { justify-self: end; color: var(--slate); }
.nav__toggle { display: none; justify-self: end; font-family: var(--mono); font-size: .8rem; padding: .55rem .8rem; border: 1px solid var(--graphite); border-radius: 8px; background: none; color: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border: 1px solid var(--graphite); border-radius: 10px; background: var(--graphite); color: var(--paper); font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s; }
.btn:hover { background: var(--rust); border-color: var(--rust); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); min-height: calc(100svh - 64px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--slate); margin-bottom: 1.6rem; }
.hero__meta b { color: var(--rust); font-weight: 500; }
.hero__names { font-size: clamp(3.6rem, 9vw, 8.4rem); line-height: .9; }
.hero__names span { display: block; }
.hero__names i { font-style: normal; font-weight: 300; color: var(--rust); }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; margin: 1.8rem 0 2rem; color: var(--slate); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__photo { position: relative; margin: 0; align-self: stretch; min-height: 420px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.pin { position: absolute; display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: var(--paper); border: 1px solid var(--graphite); border-radius: 6px; font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
.pin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 3px rgba(196,83,42,.25); }
.hero__photo .pin--a { left: -1.2rem; top: 12%; }
.hero__photo .pin--b { right: 1rem; bottom: 1rem; }

/* ---------- Two dates ---------- */
.dates { border-bottom: 1px solid var(--line); }
.dates__grid { display: grid; grid-template-columns: 1fr 1fr; }
.date { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.5rem); text-decoration: none; transition: background-color .3s; }
.date + .date { border-left: 1px solid var(--line); }
.date:hover { background: var(--fog); }
.date__idx { color: var(--rust); }
.date h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: .7rem 0 .8rem; }
.date p { color: var(--slate); max-width: 40ch; margin: 0; }
.date dl { display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; margin: 1.4rem 0 0; }
.date dt { color: var(--slate); }
.date dd { margin: 0; }
.date__go { align-self: start; width: 44px; height: 44px; border: 1px solid var(--graphite); border-radius: 50%; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.date__go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.date:hover .date__go { background: var(--graphite); color: var(--paper); }

/* ---------- Countdown strip ---------- */
.clock { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.clock__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: end; }
.clock h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }
.clock__nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--graphite); border-radius: 6px; overflow: hidden; }
.clock__nums div { padding: 1rem 1.2rem; }
.clock__nums div + div { border-left: 1px solid var(--line); }
.clock__nums b { display: block; font: 500 clamp(2.2rem, 5vw, 4rem)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock__nums span { color: var(--slate); }

/* ---------- Story strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.strip figure { margin: 0; position: relative; background: var(--paper); }
.strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.strip figcaption { position: absolute; left: .8rem; bottom: .8rem; }

/* ---------- Page head ---------- */
.phead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phead__inner { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.phead__kicker { color: var(--rust); margin-bottom: 1rem; }
.phead h1 { font-size: clamp(3rem, 7.5vw, 6.6rem); line-height: .92; max-width: 13ch; }
.phead p.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--slate); max-width: 52ch; margin: 1.5rem 0 0; }

/* ---------- Trail (signature) ---------- */
.trail { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.trail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trail__map { position: relative; background: var(--paper); min-height: 480px; }
.trail__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-bg { fill: none; stroke: var(--paper); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.route { fill: none; stroke: var(--graphite); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; stroke-linejoin: round; }
.route-done { fill: none; stroke: var(--rust); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.wp circle { fill: var(--paper); stroke: var(--graphite); stroke-width: 2; }
.wp text { font: 500 13px var(--mono); fill: var(--graphite); }
.wp--summit circle { fill: var(--rust); stroke: var(--rust); }
.hiker { fill: var(--rust); stroke: var(--paper); stroke-width: 3; }
.hiker-ring { fill: none; stroke: var(--rust); stroke-width: 1.5; opacity: .5; }
.trail__legend { position: absolute; left: .8rem; top: .8rem; display: grid; gap: .3rem; padding: .6rem .7rem; background: rgba(243,243,239,.92); border: 1px solid var(--line); border-radius: 6px; }
.trail__read { background: var(--graphite); color: var(--paper); padding: clamp(1.2rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1.2rem; }
.read__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #3A4145; border: 1px solid #3A4145; border-radius: 6px; overflow: hidden; }
.read__row div { background: var(--graphite); padding: .8rem .9rem; }
.read__row span { display: block; color: #9AA3A6; }
.read__row b { display: block; font: 500 1.35rem/1.1 var(--mono); white-space: nowrap; letter-spacing: -.03em; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.read__title { font-size: 1.7rem; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.read__note { color: #C9CFD1; margin: 0; }
.read__photo { margin: auto 0 0; border-radius: 4px; overflow: hidden; aspect-ratio: 3/2; }
.read__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.profile { grid-column: 1 / -1; position: relative; background: var(--paper); padding: 1rem 1rem .6rem; }
.profile svg { display: block; width: 100%; height: 170px; overflow: visible; }
.profile .area { fill: url(#elev); }
.profile .ridge { fill: none; stroke: var(--graphite); stroke-width: 2; }
.profile .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.profile .grid text, .profile .axis text { font: 11px var(--mono); fill: var(--slate); }
.profile .cursor { stroke: var(--rust); stroke-width: 1.5; }
.profile .cursor-dot { fill: var(--rust); stroke: var(--paper); stroke-width: 3; }
.profile .wpmark { fill: var(--graphite); }
.profile input[type="range"] { position: absolute; left: 1rem; right: 1rem; top: 1rem; height: 170px; width: calc(100% - 2rem); margin: 0; opacity: 0; cursor: ew-resize; }
.profile input[type="range"]:focus-visible + .profile__hint { outline: 2px solid var(--rust); }
.profile__hint { display: flex; justify-content: space-between; color: var(--slate); padding-top: .4rem; border-radius: 4px; }

/* ---------- Info blocks ---------- */
.blocks { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.blocks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.block { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); }
.block h3 { font-size: 1.5rem; margin: .8rem 0 .7rem; }
.block p { color: var(--slate); margin-bottom: .8rem; }
.block--live { background: var(--graphite); color: var(--paper); }
.block--live p { color: #C9CFD1; }
.live { display: inline-flex; align-items: center; gap: .5rem; color: var(--rust); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.block--live .btn { background: var(--paper); color: var(--graphite); border-color: var(--paper); margin-top: .4rem; }
.block--live .btn:hover { background: var(--rust); color: var(--paper); border-color: var(--rust); }
.sec-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.sec-title h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ---------- Party ---------- */
.party { padding: clamp(3rem, 6vw, 5rem) 0; }
.party__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.timetable { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.timetable li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timetable time { font-family: var(--mono); font-size: .9rem; color: var(--rust); }
.timetable b { font-weight: 600; font-size: 1.1rem; }
.timetable span { color: var(--slate); }
.yard { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.yard svg { display: block; width: 100%; height: auto; }
.yard .lawn { fill: #E3E7DD; }
.yard .house { fill: var(--graphite); }
.yard .zone { fill: var(--paper); stroke: var(--graphite); stroke-width: 1.5; }
.yard .zone--hot { fill: var(--rust); stroke: var(--rust); }
.yard .lights { fill: none; stroke: var(--slate); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.yard .bulb { fill: #E8B04B; }
.yard text { font: 500 12px var(--mono); fill: var(--graphite); }
.yard .zone--hot + text { fill: var(--paper); }
.yard figcaption { padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--slate); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); }
.facts div { background: var(--paper); padding: 1.2rem 1.3rem; }
.facts dt { color: var(--rust); margin-bottom: .4rem; }
.facts dd { margin: 0; }
.photo-wide { margin: 0; border-block: 1px solid var(--line); }
.photo-wide img { width: 100%; height: clamp(320px, 60vh, 640px); object-fit: cover; object-position: 50% 12%; }

/* ---------- RSVP ---------- */
.rsvp { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.rsvp__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rsvp__photo { margin: 0; border-radius: 6px; overflow: hidden; }
.rsvp__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.rsvp__photo figcaption { padding: .6rem 0; color: var(--slate); }
.form { display: grid; gap: 1.1rem; }
.f { display: grid; gap: .4rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.f > span, .f legend { font-family: var(--mono); font-size: .78rem; color: var(--slate); padding: 0; }
.f input, .f select, .f textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--graphite); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(196,83,42,.18); }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s, background-color .2s; }
.opt small { font-family: var(--mono); font-size: .74rem; color: var(--slate); }
.opt input:checked + span { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); background: var(--fog); }
.opt input:checked + span b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--rust); vertical-align: .1em; }
.opt input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-family: var(--mono); font-size: .85rem; color: var(--rust); min-height: 1.3em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--graphite); background: var(--graphite); color: var(--paper); }
.foot__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem 2.5rem; align-items: end; padding: 2.4rem 0; }
.foot__names { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0; }
.foot__names span { color: var(--rust); font-weight: 300; }
.foot p { margin: 0; }
.foot .mono { color: #AEB5B8; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .trail__grid, .party__grid, .rsvp__grid, .clock__grid { grid-template-columns: 1fr; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__grid, .trail__grid, .party__grid, .rsvp__grid { grid-template-columns: minmax(0, 1fr); }
  .blocks__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .rsvp__photo { max-width: 420px; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__coord { display: none; }
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: .6rem var(--gutter) 1rem; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { font-size: .95rem; padding: .8rem .6rem; }
  .dates__grid, .strip { grid-template-columns: 1fr; }
  .date + .date { border-left: 0; border-top: 1px solid var(--line); }
  .strip figure:nth-child(n+2) { display: none; }
  .clock__nums { grid-template-columns: 1fr 1fr; }
  .clock__nums div:nth-child(3) { border-left: 0; }
  .clock__nums div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trail__map { min-height: 0; aspect-ratio: 16 / 11; }
  .wp text { font-size: 24px; }
  .wp text[x^="-"] { transform: translateX(-150px); }
  .wp--summit text { transform: translate(-30px, -30px); }
  .trail__legend { display: none; }
  .hero__photo .pin--a { left: .6rem; top: .6rem; }
  .f-two, .opts, .facts { grid-template-columns: 1fr; }
  .timetable li { grid-template-columns: 4.5rem 1fr; }
  .timetable li span { grid-column: 2; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
