/* ============================================================
   Даниил & Анастасия — wedding invitation
   Light & airy with strong dark accents. Editorial typography.
   ============================================================ */

:root {
  --bg:        #e9e7e7;   /* soft cool grey */
  --bg-alt:    #e1dfdf;   /* slightly deeper panel */
  --ink:       #1a1815;   /* near-black, warm */
  --ink-soft:  #4a443c;
  --muted:     #948a7c;   /* greige */
  --line:      #d8cfc1;   /* hairlines */
  --line-soft: #e6ded2;
  --cream:     #f1e9dd;   /* text on dark */
  --cream-mut: rgba(241,233,221,0.55);
  --cream-line:rgba(241,233,221,0.22);
  --sage:      #97a085;   /* botanical greenery accent */
  --sage-fill: rgba(151,160,133,0.10);

  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Pinyon Script", cursive;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Typographic helpers
   ============================================================ */
.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.42em;
}
.overline.center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
}
.section-title.center { text-align: center; }

/* editorial cursive accent behind/under a title */
.head { text-align: center; margin-bottom: 3.4rem; }
.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  color: var(--muted);
  opacity: 0.5;
  position: absolute;
  right: -0.15em;
  bottom: -0.62em;
  pointer-events: none;
  white-space: nowrap;
}
.muted { color: var(--muted); }

/* decorative thin ornament (diamond between rules) */
.ornament {
  display: block;
  width: 180px;
  max-width: 60%;
  height: 9px;
  margin: 0 auto;
  position: relative;
}
.ornament::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.ornament::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--muted);
}

/* ============================================================
   Layout
   ============================================================ */
.section { padding: clamp(4.5rem, 11vw, 9rem) 1.5rem; scroll-margin-top: 4.5rem; }
.wrap { max-width: var(--maxw); margin-inline: auto; width: 100%; }

/* ---------- dark accent bands ---------- */
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .overline { color: var(--cream-mut); }
.section--dark .section-title { color: var(--cream); }
.section--dark .script { color: var(--cream); opacity: 0.3; }
.section--dark .ornament::before { background: var(--cream-line); }
.section--dark .ornament::after { background: var(--ink); border-color: var(--cream-mut); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(246, 242, 236, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.monogram {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  opacity: 0;                       /* hidden over hero, revealed when stuck */
  transition: opacity 0.4s var(--ease);
}
.site-header.is-stuck .monogram { opacity: 1; }
.monogram span { font-style: italic; color: var(--muted); font-size: 0.85em; }

.nav { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}
.nav a:hover::after { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* soft floral "bokeh" + cream wash — lush even without a photo */
  background:
    radial-gradient(260px 240px at 86% 14%, rgba(151,160,133,0.30), transparent 70%),
    radial-gradient(200px 190px at 96% 25%, rgba(247,238,224,0.65), transparent 72%),
    radial-gradient(180px 170px at 75% 5%,  rgba(212,194,176,0.34), transparent 70%),
    radial-gradient(150px 150px at 90% 4%,  rgba(238,228,212,0.55), transparent 72%),
    radial-gradient(240px 220px at 7% 92%,  rgba(151,160,133,0.24), transparent 72%),
    radial-gradient(170px 160px at 0% 80%,  rgba(247,238,224,0.55), transparent 72%),
    radial-gradient(120% 90% at 78% 12%, #efe6d8, transparent 58%),
    radial-gradient(110% 80% at 8% 92%,  #e8ddcc, transparent 55%),
    var(--bg);
}
/* background photo (if present) — light wash + soft dark vignette + slow zoom */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(233,231,231,0.22) 0%, rgba(233,231,231,0.12) 42%, rgba(233,231,231,0.55) 100%),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: 70% 30%;
  animation: kenBurns 22s ease-out 0.2s forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 48px rgba(26,24,21,0.20);
}

/* decorative botanical sprigs */
.hero__art { position: absolute; z-index: -2; pointer-events: none; height: auto; }
.hero__art--tr {
  top: clamp(1rem, 5vh, 3rem);
  right: clamp(-1.5rem, 1vw, 1.5rem);
  width: clamp(180px, 28vw, 360px);
  transform: rotate(9deg);
  opacity: 0;
  animation: fadeSoft 1.8s var(--ease) 0.5s forwards;
}
.hero__art--bl {
  bottom: clamp(2rem, 7vh, 4.5rem);
  left: clamp(-2.5rem, -1vw, 1rem);
  width: clamp(150px, 22vw, 290px);
  transform: rotate(191deg);
  opacity: 0;
  animation: fadeSoftDim 1.8s var(--ease) 0.75s forwards;
}
.sprig path, .sprig ellipse { stroke: var(--sage); stroke-width: 1.1; fill: var(--sage-fill); }

/* thin dark inset frame — classic invitation accent */
.hero__frame {
  position: absolute;
  inset: clamp(14px, 2.4vw, 30px);
  border: 1px solid rgba(26,24,21,0.30);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.6s var(--ease) 0.1s forwards;
}

.hero__inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

/* cursive accent at the very top */
.hero__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1;
  color: var(--ink-soft);
  margin: 0 0 0.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero .overline {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

/* names — single line with a small italic ampersand */
.hero__names {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.01em;
  font-size: clamp(3rem, 12vw, 7.4rem);
  margin: 1rem 0 1.4rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.4s forwards;
}
/* decorative "и" overlaid in the centre, between the two name lines */
.hero__amp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  color: var(--muted);
  opacity: 0.62;
  line-height: 1;
  pointer-events: none;
}

/* large event date under the names — framed for emphasis */
.hero__datebox {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-top: 1px solid rgba(26, 24, 21, 0.32);
  border-bottom: 1px solid rgba(26, 24, 21, 0.32);
  margin-top: 0.3rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}
.hero__date-big {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__date-sub {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__cta {
  margin-top: 2.6rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 1.25s forwards;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}
/* simple animated "scroll down" chevron (no mouse) */
.scroll-hint span {
  width: 12px; height: 12px;
  border-right: 1.5px solid rgba(26,24,21,0.5);
  border-bottom: 1.5px solid rgba(26,24,21,0.5);
  transform: rotate(45deg);
  animation: scrollDot 1.8s var(--ease) infinite;
}

/* hero entrance keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSoft { from { opacity: 0; } to { opacity: 0.7; } }
@keyframes fadeSoftDim { from { opacity: 0; } to { opacity: 0.5; } }
@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-5px) rotate(45deg); }
  45%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(9px) rotate(45deg); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.2s var(--ease), opacity 0.3s, border-color 0.4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* buttons inside dark bands */
.section--dark .btn--ghost { color: var(--cream); border-color: var(--cream-mut); }
.section--dark .btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ============================================================
   Countdown
   ============================================================ */
.countdown { text-align: center; }
.countdown .overline { display: block; margin-bottom: 2.4rem; }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 620px;
  margin: 0 auto;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.4rem;
  position: relative;
}
.countdown__cell + .countdown__cell::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--cream-line);
}
.countdown__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.countdown__label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mut);
}
.countdown__done {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  grid-column: 1 / -1;
}

/* ============================================================
   Invitation text
   ============================================================ */
/* dark band sits flush above, so trim the bottom padding to balance the gaps */
.invite { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.invite__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.invite__inner .ornament { margin-bottom: 2.4rem; }
.invite .section-title { margin-bottom: 1.6rem; }
.invite__text {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}
.invite__text + .invite__text { margin-top: 1.2rem; }

/* ============================================================
   Calendar
   ============================================================ */
.calendar .overline { display: block; margin-bottom: 0.8rem; }
/* dark elegant card (only the card, not the whole section) */
.cal {
  max-width: 470px;
  margin: 0 auto;
  background: radial-gradient(125% 85% at 50% 0%, #24211c, var(--ink) 72%);
  padding: clamp(1.5rem, 4.5vw, 2.4rem);
  border-radius: 4px;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__head span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mut);
  text-align: center;
  padding: 0.2rem 0 0.9rem;
}
/* real-calendar grid lines */
.cal__days {
  border-top: 1px solid var(--cream-line);
  border-left: 1px solid var(--cream-line);
}
.cal__days span {
  font-family: var(--serif);
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  color: var(--cream);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
}
.cal__empty { background: rgba(241, 233, 221, 0.035); }
.cal__mark {
  position: relative;
  color: var(--cream);
  font-weight: 500;
  z-index: 0;
}
.cal__mark::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 29'%3E%3Cpath d='M16 27.5C16 27.5 2.2 19.2 2.2 9.6 2.2 5.1 5.6 2 9.2 2 12 2 14.5 3.7 16 6.1 17.5 3.7 20 2 22.8 2 26.4 2 29.8 5.1 29.8 9.6 29.8 19.2 16 27.5 16 27.5Z' fill='%2397a085' fill-opacity='0.18' stroke='%2397a085' stroke-width='1.3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cal__note {
  text-align: center;
  margin-top: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Program / timeline
   ============================================================ */
.program .overline { display: block; margin-bottom: 0.8rem; }

.timeline {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 0 auto;
}
.timeline__item {
  display: grid;
  grid-template-columns: 5.5rem 1px 1fr;
  gap: 1.6rem;
  padding-bottom: 3rem;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__time {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding-top: 0.1em;
}
.timeline__time-sm { font-size: 0.62em; color: var(--muted); }
.timeline__dot {
  position: relative;
  width: 1px;
  justify-self: center;
}
/* continuous connector line that bridges the gap to the next item */
.timeline__dot::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child .timeline__dot::after { display: none; }
.timeline__dot::before {
  content: "";
  position: absolute;
  top: 0.5rem; left: 50%;
  width: 9px; height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--ink);          /* filled dark accent */
  border: 1px solid var(--ink);
}
.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.timeline__body p { color: var(--muted); font-size: 1.02rem; letter-spacing: 0.02em; }
.timeline__body .timeline__note { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.45; opacity: 0.72; }

/* ============================================================
   Location
   ============================================================ */
.location .overline { display: block; margin-bottom: 0.8rem; }
.location__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.place {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.place__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.place__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.place__addr {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}
.location__div { width: 1px; background: var(--line); }

/* When only one place remains (e.g. ЗАГС hidden on the public domain),
   span the full grid and center the card instead of leaving it in the
   left column. */
.location__grid > .place:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 30rem;
}

/* ============================================================
   Dress code
   ============================================================ */
.dress { text-align: center; }
.dress__inner { max-width: 600px; margin: 0 auto; }
.dress .overline { display: block; margin-bottom: 0.8rem; }
.dress__text {
  color: var(--cream-mut);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 1.6rem;
}
.dress__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.9;
  max-width: 460px;
  margin: 0 auto;
}

/* ============================================================
   RSVP form
   ============================================================ */
.rsvp__inner {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-alt);
  padding: clamp(2rem, 6vw, 3.6rem);
  border: 1px solid var(--line-soft);
}
.rsvp .overline { display: block; margin-bottom: 0.8rem; }
.rsvp .head { margin-bottom: 1.2rem; }
.rsvp .section-title { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.rsvp__lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2.6rem;
}
.rsvp__lead strong { font-weight: 500; white-space: nowrap; }

.form { display: flex; flex-direction: column; gap: 2rem; }

.field { display: flex; flex-direction: column; gap: 0.6rem; border: 0; padding: 0; }
.field label,
.field legend {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
}
.field legend { margin-bottom: 0.4rem; }
.field label .muted { letter-spacing: 0.08em; text-transform: none; font-size: 0.92em; }

input[type="text"],
select,
textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 3.25rem;
  padding: 0 1rem;
  width: 100%;
  transition: border-color 0.25s var(--ease);
}
textarea {
  height: auto;
  min-height: 6rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  line-height: 1.6;
}
input[type="text"]::placeholder,
textarea::placeholder { color: #b6ac9c; }
input[type="text"]:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--ink); }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23948a7c' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* choice chips (radio + checkbox share styling) */
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.7rem; }
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  height: 100%;
  min-height: 3.25rem;
}
.choice:hover .choice__box { border-color: var(--muted); color: var(--ink); }
.choice input:checked + .choice__box {
  background: rgba(26, 24, 21, 0.05);
  color: var(--ink);
  border-color: var(--ink);
}
.choice input:focus-visible + .choice__box { outline: 2px solid var(--muted); outline-offset: 2px; }

/* conditional block reveal */
.conditional { display: grid; grid-template-rows: 1fr; gap: 2rem; }
.conditional.is-hidden { display: none; }

.field__error {
  color: #9a3b2f;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  min-height: 0;
}
.field.has-error input,
.field.has-error select { border-color: #9a3b2f; }
.field--radio.has-error .choice__box { border-color: #9a3b2f; }

.form__submit { align-self: stretch; width: 100%; margin-top: 0.8rem; }
.form__submit:disabled { opacity: 0.5; cursor: progress; }

.form__status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
  letter-spacing: 0.02em;
}
.form__status.is-error { color: #9a3b2f; }

/* success state */
.form.is-sent .field,
.form.is-sent .conditional,
.form.is-sent .form__submit { display: none; }
.form__success { text-align: center; padding: 1rem 0; }
.form__success .ornament { margin-bottom: 1.6rem; }
.form__success h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.form__success p { color: var(--ink-soft); }

/* ============================================================
   Footer (dark)
   ============================================================ */
.site-footer {
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3rem) 1.5rem;
}
.footer__date {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-mut);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header { justify-content: center; }
  .monogram { opacity: 1; }                /* always show on mobile (no nav) */

  /* vertical hero photo for mobile (portrait crop reads much better on
     narrow screens). Stacked over hero.jpg, so until hero-mobile.jpg is
     added the mobile cover gracefully falls back to the desktop photo. */
  .hero__media {
    background-image:
      linear-gradient(180deg, rgba(233,231,231,0.22) 0%, rgba(233,231,231,0.12) 42%, rgba(233,231,231,0.55) 100%),
      url("images/hero-mobile.jpg"),
      url("images/hero.jpg");
    background-position: center;
    transform-origin: center 35%;
  }

  .location__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .location__div { width: 60%; height: 1px; justify-self: center; }

  .timeline__item { grid-template-columns: 4.2rem 1px 1fr; gap: 1.1rem; }
  .timeline__time { font-size: 1.4rem; }

  .script { font-size: clamp(2rem, 11vw, 3rem); bottom: -0.5em; }
}

@media (max-width: 480px) {
  .checks-grid { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr; }
  .choice { width: 100%; }
}

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* keep decorative sprigs subtle rather than fully opaque */
  .hero__art--tr { opacity: 0.7; }
  .hero__art--bl { opacity: 0.5; }
}
