/* Margaret & [Groom] — wedding site
   World: the trail signboard. Routed cream lettering on sign-brown boards,
   pine ground with topo contours, one coral blaze for the live action. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-italic-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --pine: #1d3a2c;
  --pine-deep: #142a20;
  --pine-line: #305c46;
  --board: #3b2a1e;
  --board-deep: #2a1d14;
  --board-edge: #563d2c;
  --cream: #f0e6cf;
  --cream-soft: #d3c3a3;
  --cream-dim: #b4a382;
  --teal: #2f6f7e;
  --teal-deep: #22525e;
  --blaze: #f4845f;
  --blaze-hot: #ff9a78;
  --blaze-ink: #2a1d14;
  --rule: rgba(240, 230, 207, 0.22);
  --keyline: rgba(240, 230, 207, 0.32);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 64ch;
  --radius: 10px;
  --shadow-board: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 4px 10px -6px rgba(0, 0, 0, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-plant: cubic-bezier(0.22, 1.35, 0.36, 1);

  color-scheme: dark;
}

/* ---------- reset & browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 12;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--blaze); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--cream); }
::selection { background: var(--blaze); color: var(--blaze-ink); }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--blaze); }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--board-edge) var(--pine-deep); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--pine-deep); }
::-webkit-scrollbar-thumb { background: var(--board-edge); border: 3px solid var(--pine-deep); border-radius: 8px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--blaze); color: var(--blaze-ink); padding: 0.6rem 1rem; border-radius: 4px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- topo ground ---------- */
.topo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  color: var(--pine-line); opacity: 0.9;
}
.topo svg { width: 100%; height: 100%; }
main, .site-nav, .site-footer { position: relative; z-index: 1; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.02;
  text-wrap: balance;
}
.routed { /* letters cut into the board */
  color: var(--cream);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.07);
}
h1, h2, h3 { margin: 0; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; font-weight: 450; }
.muted { color: var(--cream-soft); }
.tabular { font-variant-numeric: tabular-nums; }

/* placeholder facts awaiting the couple */
.tbd {
  color: var(--blaze-hot);
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  cursor: help;
}

/* ---------- board (routed sign) ---------- */
.board {
  position: relative;
  background: linear-gradient(180deg, #43301f, var(--board) 40%, #33241a);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-board);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  isolation: isolate;
}
.board::before { /* routed keyline */
  content: "";
  position: absolute; inset: 10px;
  border: 2px solid var(--keyline);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.board > * { position: relative; z-index: 1; }
.board--teal { background: linear-gradient(180deg, #367c8c, var(--teal) 45%, #2a626f); }
.board--teal .rows .label, .board--teal .rows svg, .board--teal .rows .value small { color: var(--cream); stroke: var(--cream); }
.board--teal .tbd { color: #ffc4ad; }
.board--teal::before { border-color: rgba(240, 230, 207, 0.4); }
.board__title {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  margin-bottom: 0.9rem;
}
.board__note { margin-top: 1.25rem; color: var(--cream-soft); font-size: 0.95rem; }

/* ruled rows: one fact per full-width row */
.rows { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 1.5rem minmax(6.5rem, 10rem) 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows svg { width: 1.5rem; height: 1.5rem; stroke: var(--cream-soft); margin-top: 0.1rem; }
.rows .label {
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--cream-soft);
  padding-top: 0.3rem;
}
.rows .value { font-size: 1.05rem; }
.rows .value small { display: block; color: var(--cream-soft); font-size: 0.92rem; }
@media (max-width: 560px) {
  .rows li { grid-template-columns: 1.5rem 1fr; }
  .rows .label { grid-column: 2; padding-top: 0; }
  .rows .value { grid-column: 2; }
}

/* ---------- blaze (the one live color) ---------- */
.blaze {
  --bg: var(--blaze);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  background: var(--bg);
  color: var(--blaze-ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7), 0 2px 0 #b95a3b;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.blaze::before { /* paint stroke */
  content: "";
  position: absolute; inset: 0;
  background: var(--blaze-hot);
  transform: translateX(-104%) skewX(-12deg);
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}
.blaze:hover::before, .blaze:focus-visible::before { transform: translateX(0) skewX(-12deg) scaleX(1.3); }
.blaze:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.75), 0 4px 0 #b95a3b; }
.blaze:active { transform: translateY(1px); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.7), 0 1px 0 #b95a3b; }
.blaze svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; }
.blaze[aria-disabled="true"], .blaze:disabled { opacity: 0.6; cursor: progress; }
.blaze--ghost {
  --bg: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--keyline);
}
.blaze--ghost::before { background: rgba(240, 230, 207, 0.12); }
.blaze--ghost:hover { box-shadow: inset 0 0 0 2px var(--cream); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--gutter);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(20, 42, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(240, 230, 207, 0.12);
}
.plate {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(180deg, #46321f, var(--board));
  color: var(--cream);
  padding: 0.45rem 0.8rem 0.45rem 0.7rem;
  border-radius: 6px;
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--keyline), 0 6px 14px -8px rgba(0, 0, 0, 0.8);
}
.plate svg { width: 1.1rem; height: 1.1rem; stroke: var(--blaze); }
.site-nav__links { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  display: block; padding: 0.5rem 0.75rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--cream);
  border-radius: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: background 0.3s var(--ease-out);
}
.site-nav__links a:hover { background: rgba(240, 230, 207, 0.12); }
.site-nav__links a[aria-current="true"] { background: rgba(240, 230, 207, 0.16); }
.site-nav .blaze { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.site-nav .blaze[aria-current="true"] { --bg: var(--blaze-hot); box-shadow: 0 0 0 3px var(--pine-deep), 0 0 0 5px var(--blaze); }
.menu-btn {
  display: none;
  width: 2.6rem; height: 2.6rem;
  background: rgba(20, 42, 32, 0.6);
  border: 2px solid var(--keyline);
  border-radius: 6px;
  cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 1.4rem; height: 1.4rem; stroke: var(--cream); }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
@media (max-width: 820px) {
  .site-nav__links {
    display: none;
    position: absolute; top: calc(100% + 0.25rem); left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: 0;
    padding: 0.75rem;
    background: linear-gradient(180deg, #43301f, var(--board));
    border-radius: var(--radius);
    box-shadow: var(--shadow-board), inset 0 0 0 2px var(--keyline);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { padding: 0.9rem 1rem; font-size: 0.95rem; text-shadow: none; }
  .site-nav__links a + a, .site-nav__links li + li a { border-top: 1px solid var(--rule); }
  .menu-btn { display: grid; }
  .site-nav__right { display: flex; gap: 0.5rem; align-items: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  padding: 6rem var(--gutter) clamp(2rem, 6vh, 4rem);
}
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo picture { display: block; height: 100%; }
@media (min-width: 901px) { .hero__photo { left: -30%; } }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 78%;
  transform-origin: 40% 70%;
  animation: drift 26s var(--ease-out) both;
}
@keyframes drift { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 42, 32, 0.5) 0%, rgba(20, 42, 32, 0) 26%, rgba(20, 42, 32, 0) 60%, rgba(29, 58, 44, 0.75) 88%, var(--pine) 100%);
}
.hero__scrim .topo-local {
  position: absolute; inset: auto 0 0 0; height: 55%;
  color: rgba(240, 230, 207, 0.14);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.hero__board {
  position: relative; z-index: 2;
  width: min(100%, 640px);
  text-align: center;
  animation: rise 1.1s var(--ease-out) 0.15s both;
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 0; padding-bottom: clamp(2rem, 6vh, 3rem); justify-items: stretch; }
  .hero__photo { position: relative; height: 62svh; min-height: 380px; margin: 0 calc(-1 * var(--gutter)); }
  .hero__photo img { object-position: 50% 85%; }
  .hero__board { margin-top: -5rem; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__kicker-free { display: none; }
.hero__names {
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: 0.98;
}
.hero__names .amp {
  display: block;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 2.2rem);
  letter-spacing: 0.2em;
  color: var(--cream-soft);
  margin: 0.25em 0;
}
.hero__rows { margin-top: 1.5rem; }
.hero__rows li { grid-template-columns: 1.5rem auto 1fr; text-align: left; }
.hero__rows .value { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 600; letter-spacing: 0.02em; font-size: 1.2rem; }
.hero__rows .value small { font-family: var(--body); letter-spacing: 0; font-weight: 450; }
.hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
#countdown-row { display: none; }
#countdown-row.is-set { display: grid; }
#countdown-row b { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 800; color: var(--blaze); font-size: 1.3rem; letter-spacing: 0.04em; margin-right: 0.3em; }

/* ---------- sections & marker posts ---------- */
.trail { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.wrap { width: min(100%, 1120px); margin-inline: auto; }
.wrap--narrow { width: min(100%, 820px); }

.marker {
  display: flex;
  align-items: flex-start;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  transform-origin: bottom left;
}
.marker__post {
  position: relative;
  flex: none;
  width: 14px; height: clamp(84px, 11vw, 120px);
  background: linear-gradient(90deg, #5b4231, #3b2a1e 55%, #2a1d14);
  border-radius: 3px 3px 1px 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 14px -8px rgba(0, 0, 0, 0.8);
}
.marker__post::after { /* the blaze painted on the post */
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 12%; height: 18%;
  background: var(--blaze); border-radius: 1px;
}
.marker__plate {
  position: relative;
  display: inline-block;
  flex: none;
  max-width: calc(100% - 14px);
  background: linear-gradient(180deg, #46321f, var(--board));
  color: var(--cream);
  padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  border-radius: 6px 12px 12px 6px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: var(--shadow-board);
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1;
  padding-right: 2.2rem;
  margin-left: -3px;
  margin-top: 10px;
}
.marker__plate::before {
  content: ""; position: absolute; inset: 6px 6px; border: 2px solid var(--keyline);
  border-radius: 3px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.marker h2 { position: relative; }
/* plant animation */
.plant { opacity: 0; transform: translateY(26px) scaleY(0.92); }
.plant.is-planted { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-plant); }
.plant.is-planted.d1 { transition-delay: 0.08s; }
.plant.is-planted.d2 { transition-delay: 0.16s; }
.plant.is-planted.d3 { transition-delay: 0.24s; }

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.story-portrait { aspect-ratio: 4 / 5; }
.story-portrait img { object-position: 50% 18%; }
.story-grid .board { grid-column: 1 / 9; }
.story-grid .story-portrait { grid-column: 9 / 13; }
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-board);
  background: var(--pine-deep);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo__cap { /* small routed caption plate pinned to the photo */
  position: absolute; left: 1rem; bottom: 1rem;
  background: linear-gradient(180deg, #46321f, var(--board));
  color: var(--cream);
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  box-shadow: inset 0 0 0 2px var(--keyline), 0 8px 16px -8px rgba(0, 0, 0, 0.8);
}
.trail-log {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.trail-log figure { margin: 0; }
.trail-log figcaption { margin-top: 0.75rem; color: var(--cream-soft); font-size: 0.95rem; max-width: 34ch; }
.story-slot { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .story-grid .board, .story-grid .story-portrait { grid-column: 1 / -1; }
  .story-grid .story-portrait { max-width: 520px; aspect-ratio: 4 / 5; min-height: 0; }
  .trail-log { grid-template-columns: 1fr 1fr; }
  .trail-log figure:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .trail-log { grid-template-columns: 1fr; } .trail-log figure:last-child { grid-column: auto; } }

/* ---------- the day ---------- */
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.day-grid .board--full { grid-column: 1 / -1; }
@media (max-width: 760px) { .day-grid { grid-template-columns: 1fr; } }

/* full-bleed photo band between sections */
.band {
  position: relative;
  min-height: clamp(360px, 60vh, 640px);
  border-top: 2px solid var(--keyline);
  border-bottom: 2px solid var(--keyline);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  overflow: hidden;
}
.band__photo { position: absolute; inset: 0; z-index: 0; }
.band__photo picture { display: block; height: 100%; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
.band__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(20, 42, 32, 0.22); }
.band > .wrap { position: relative; z-index: 2; }
.band .board { width: min(100%, 640px); }
.band--right .board { margin-left: auto; }
@media (min-width: 901px) { .band--right .band__photo { left: -22%; } .band--right .board { width: min(100%, 540px); } }

/* ---------- registry ---------- */
.registry .board { text-align: center; }
.registry .board .blaze { margin-top: 1.5rem; }
@media (max-width: 480px) { .registry .board .blaze { padding-inline: 1.1rem; letter-spacing: 0.06em; } .registry .board .blaze svg { display: none; } }
.registry p { margin-inline: auto; }

/* ---------- rsvp form ---------- */
.rsvp .board { width: min(100%, 720px); margin-inline: auto; }
.field { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.field label, fieldset legend {
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--cream-soft);
  padding: 0;
}
.field .hint { font-size: 0.88rem; color: var(--cream-dim); }
.slot { /* routed slot in the board */
  width: 100%;
  background: linear-gradient(180deg, #1f1610, var(--board-deep));
  color: var(--cream);
  border: 2px solid rgba(240, 230, 207, 0.2);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.slot::placeholder { color: var(--cream-dim); opacity: 1; }
.slot:focus { outline: 3px solid var(--blaze); outline-offset: 2px; border-color: var(--blaze); }
.slot:user-invalid { border-color: var(--blaze-hot); }
textarea.slot { min-height: 6.5rem; resize: vertical; }
select.slot { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3c3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(180deg, #1f1610, var(--board-deep)); background-repeat: no-repeat; background-position: right 0.8rem center, 0 0; background-size: 1.1rem, auto; padding-right: 2.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; min-width: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.choice label {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #1f1610, var(--board-deep));
  border: 2px solid rgba(240, 230, 207, 0.2);
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--cream);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.choice label svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { background: var(--blaze); color: var(--blaze-ink); border-color: var(--blaze); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.7); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--blaze); outline-offset: 3px; }
.form-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { min-height: 1.5rem; font-size: 0.95rem; color: var(--cream-soft); }
.form-status.is-error { color: var(--blaze-hot); }
.rsvp-done { text-align: center; }
.rsvp-done .board__title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.rsvp-done svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; stroke: var(--blaze); }
.honey { position: absolute; left: -9999px; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 12vw, 180px);
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.gallery-grid button {
  position: relative;
  display: block; width: 100%;
  padding: 0; border: 0; background: var(--pine-deep);
  border-radius: 8px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}
.gallery-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.g-wide { grid-column: span 4; grid-row: span 2; }
.g-sq { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-column: span 2; grid-row: span 3; }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid button::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--blaze);
  transition: box-shadow 0.35s var(--ease-out);
  border-radius: inherit;
}
.gallery-grid button:hover::after, .gallery-grid button:focus-visible::after { box-shadow: inset 0 0 0 4px var(--blaze); }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(110px, 24vw, 160px); }
  .g-wide { grid-column: span 2; grid-row: span 2; }
  .g-sq { grid-column: span 1; grid-row: span 2; }
  .g-tall { grid-column: span 1; grid-row: span 3; }
  /* pair rows level: ring rides tall beside the hug; the deck-face drops to a single; the last tile closes the grid */
  .gallery-grid button:nth-child(2) { grid-row: span 3; }
  .gallery-grid button:nth-child(9) { grid-column: span 1; }
  .gallery-grid button:last-child { grid-column: span 2; }
}

/* lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto;
  max-width: min(96vw, 1400px); max-height: 94vh;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 22, 16, 0.9); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; position: relative; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); margin: 0 auto; }
.lightbox figcaption { margin-top: 0.75rem; text-align: center; color: var(--cream-soft); font-size: 0.95rem; }
.lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--board); border: 2px solid var(--keyline); color: var(--cream);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-board);
}
.lightbox .lb-btn svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; }
.lightbox .lb-prev { left: -0.5rem; }
.lightbox .lb-next { right: -0.5rem; }
.lightbox .lb-close { top: -0.5rem; right: -0.5rem; transform: none; }
@media (max-width: 760px) { .lightbox .lb-prev { left: 0.5rem; } .lightbox .lb-next { right: 0.5rem; } .lightbox .lb-close { top: 0.5rem; right: 0.5rem; } }

/* ---------- footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2.5rem;
  border-top: 1px solid rgba(240, 230, 207, 0.12);
  background: var(--pine-deep);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer .names { font-size: 1rem; letter-spacing: 0.14em; }
.site-footer .names .amp { font-weight: 500; color: var(--cream-soft); margin: 0 0.35em; }
.site-footer small { color: var(--cream-dim); font-size: 0.85rem; }
.site-footer a { color: var(--cream-soft); }
.hashtag { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 700; letter-spacing: 0.06em; color: var(--blaze); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__photo img { animation: none; }
  .hero__board { animation: none; }
  .plant { opacity: 1; transform: none; }
  .plant.is-planted { transition: none; }
  .blaze, .blaze::before, .gallery-grid button img { transition: none; }
}
