:root {
  --forest-deep: #1f2d24;
  --forest: #2f4236;
  --moss: #4c6352;
  --fern: #6f8264;
  --sage: #9aab8c;
  --sage-light: #dfe5d6;
  --mist: #eef1e8;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --gold: #a8854f;
  --gold-light: #d9c39a;
  --ink: #2b2d29;
  --muted: #676a60;
  --danger: #9b3b2f;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(31, 45, 36, 0.05), 0 8px 24px -12px rgba(31, 45, 36, 0.18);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--moss);
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--forest);
  text-decoration-color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.container.narrow {
  width: min(720px, 100% - 2.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.sprig {
  width: 160px;
  height: 24px;
  margin: 0.25rem auto 1.25rem;
  color: var(--sage);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--sage);
}
.btn-ghost:hover {
  background: var(--mist);
  color: var(--forest);
  border-color: var(--moss);
}
.btn-light {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.btn-light:hover {
  background: var(--paper);
  color: var(--forest);
}
.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 248, 241, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--sage-light);
  box-shadow: 0 6px 20px -16px rgba(31, 45, 36, 0.4);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 2rem;
}
.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 1.5px;
  margin: 5px 0;
  background: var(--forest);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded='true'] .bar:nth-child(2) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .bar:nth-child(3) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .bar:nth-child(4) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(4rem, 10vh, 7rem)) 0 max(14rem, 25vw);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 72% 38%, rgba(239, 227, 198, 0.65), transparent 70%),
    linear-gradient(180deg, #dde5dc 0%, #e9ebe0 40%, #f3efe3 75%, #f6f2e6 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-portrait {
  position: relative;
  width: clamp(230px, 30vw, 360px);
  margin: 0 auto 2rem;
  padding: 7px;
  background: var(--paper);
  border-radius: 999px 999px 14px 14px;
  box-shadow: 0 18px 40px -22px rgba(31, 45, 36, 0.55);
  animation: rise 1s ease both;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1px solid var(--gold-light);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px 9px 9px;
}

.hero .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  animation: rise 1s ease both;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: var(--forest-deep);
  animation: rise 1s 0.1s ease both;
}

.hero-dates {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--moss);
  margin: 0 0 0.5rem;
  animation: rise 1s 0.2s ease both;
}
.hero-dates .dot {
  display: inline-block;
  margin: 0 0.6em;
  font-size: 0.6em;
  vertical-align: 0.25em;
  font-style: normal;
  color: var(--gold);
}

.hero .sprig {
  animation: rise 1s 0.3s ease both;
}

.hero-quote {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  animation: rise 1s 0.4s ease both;
}
.hero-quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.hero-quote cite {
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-quote cite::before {
  content: '\2014\00a0';
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: rise 1s 0.5s ease both;
}
.hero-actions .btn-ghost {
  background: rgba(255, 253, 248, 0.5);
}

.hero-landscape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: max(200px, 22.3vw);
  z-index: 1;
}
.hero-ground {
  fill: var(--paper);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
main > .section:nth-of-type(odd) {
  background: var(--paper);
}
main > .section:nth-of-type(even) {
  background: var(--cream);
}
main > .section:last-of-type {
  padding-bottom: clamp(8rem, 13vw, 10rem);
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin-bottom: 0.25rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sage-light);
}
.subhead:first-of-type {
  margin-top: 0;
}
.subhead .icon {
  color: var(--gold);
  width: 1.4rem;
  height: 1.4rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
main > .section:nth-of-type(odd) .card {
  background: #fff;
}
main > .section:nth-of-type(even) .memory {
  background: var(--paper);
}

/* ---------- order of the day ---------- */

.timeline {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  max-width: 860px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--sage);
}
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}
.timeline-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--fern);
  box-shadow: 0 0 0 4px var(--paper);
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.timeline-label {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--forest);
}

/* ---------- events ---------- */

.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-top: 3px solid var(--fern);
}
.event-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.event-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.event-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.mini-schedule {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 2px solid var(--sage-light);
}
.mini-schedule li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  padding: 0.35rem 0;
  line-height: 1.45;
}
.mini-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--moss);
}
.mini-label {
  color: var(--ink);
}
.mini-label small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.callout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--mist);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
}
.callout-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--moss);
}
.callout-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.callout h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.callout p {
  margin-bottom: 0.75rem;
}
.callout p:last-child {
  margin-bottom: 0;
}
.livestream-pending {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--moss);
}

.subhead-note {
  margin: -0.6rem 0 1.25rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.meta-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.meta-list .icon {
  margin-top: 0.15em;
  color: var(--fern);
}
.meta-list strong {
  font-weight: 700;
  color: var(--forest);
}
.meta-list.compact {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.meta-list.compact li {
  margin-bottom: 0.35rem;
}

.event-map {
  margin: auto 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sage-light);
  aspect-ratio: 16 / 10;
  background: var(--mist);
}
.event-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.75) sepia(0.08);
}

.btn-block {
  width: 100%;
}
.cal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.cal-links .icon {
  color: var(--fern);
}
.cal-links a {
  font-weight: 700;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.portrait {
  position: relative;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
}
.portrait-photo,
.portrait-monogram {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
}
.portrait-photo {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
  filter: saturate(0.9);
}
.portrait-monogram {
  background: var(--paper);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.about-text h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}
.about-text p:not(.eyebrow) {
  font-size: 1.08rem;
}
.about-text p:not(.eyebrow):first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--fern);
}

/* ---------- gallery ---------- */

.gallery {
  position: relative;
}
.gallery-track {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-item {
  flex: none;
  scroll-snap-align: center;
  max-width: 85vw;
}
.gallery-item:first-child {
  margin-left: auto;
}
.gallery-item:last-child {
  margin-right: auto;
}
.gallery-thumb {
  display: block;
  padding: 0;
  border: 0;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.gallery-thumb img {
  display: block;
  height: clamp(220px, 32vw, 340px);
  width: auto;
  max-width: 85vw;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.92);
}
.gallery-thumb:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}
.gallery-caption {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
}
.gallery-nav {
  position: absolute;
  top: calc(50% - 0.6rem);
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--sage-light);
  background: rgba(255, 253, 248, 0.92);
  color: var(--forest);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.gallery-nav:hover {
  background: var(--paper);
}
.gallery-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
.gallery-prev {
  left: -1.25rem;
}
.gallery-next {
  right: -1.25rem;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 28, 23, 0.94);
  color: var(--cream);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.lightbox::backdrop {
  background: rgba(20, 28, 23, 0.94);
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 3.5rem 0 2rem;
  min-width: 0;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
  text-align: center;
}
.lightbox-nav,
.lightbox-close {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 0.75rem;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 232, 0.25);
  background: rgba(246, 242, 232, 0.08);
  color: var(--cream);
  cursor: pointer;
}
.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(246, 242, 232, 0.18);
}
.lightbox-nav .icon,
.lightbox-close .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 0.25rem;
}
.lightbox.single .lightbox-nav {
  visibility: hidden;
}

/* ---------- travel ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem;
}
.info-card h4 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.info-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--moss);
}
.info-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.code {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
  margin-left: 0.25rem;
  vertical-align: 0.3em;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  color: var(--gold);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.text-link .icon {
  width: 0.95em;
  height: 0.95em;
}

/* ---------- forms ---------- */

.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field {
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field label,
.field legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin-bottom: 0.45rem;
  padding: 0;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

input:not([type='radio']):not([type='checkbox']),
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfd6c5;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fern);
  box-shadow: 0 0 0 3px rgba(111, 130, 100, 0.18);
}
textarea {
  resize: vertical;
}
select {
  width: auto;
  min-width: 6rem;
}

.field .choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 0.4rem;
  cursor: pointer;
}
.choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--moss);
}
.choice-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.attending-only {
  overflow: hidden;
  transition: opacity 0.25s ease;
}
.attending-only[hidden] {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.98rem;
  border-left: 3px solid;
}
.flash-success {
  background: var(--mist);
  border-color: var(--fern);
  color: var(--forest);
}
.flash-error {
  background: #f8ece8;
  border-color: var(--danger);
  color: #6f2a21;
}

.attendee-count {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--moss);
  margin: -1.5rem 0 2rem;
}

/* ---------- guestbook ---------- */

.guestbook-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.guestbook-form {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.memories {
  display: grid;
  gap: 1.25rem;
}
.memory {
  position: relative;
  padding: 1.5rem 1.75rem 1.25rem 2.25rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.memory::before {
  content: '\201C';
  position: absolute;
  left: 0.7rem;
  top: 0.2rem;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--sage);
}
.memory-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-bottom: 0.9rem;
}
.memory footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.memory-name {
  font-weight: 700;
  color: var(--forest);
}
.memory-rel {
  font-style: italic;
}
.memory time {
  margin-left: auto;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--sage-light);
  border-radius: var(--radius);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  background: var(--forest-deep);
  color: #d9ddd2;
  padding: 0 0 3rem;
}
.site-footer {
  padding-top: 2.5rem;
}
.footer-trees {
  position: absolute;
  left: 0;
  right: 0;
  top: -89px;
  width: 100%;
  height: 90px;
  color: var(--forest-deep);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}
.footer-block h3 {
  font-size: 1.5rem;
  color: var(--cream);
}
.footer-block p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.footer-block a:not(.btn) {
  color: var(--gold-light);
}
.footer-sign {
  text-align: right;
}
.footer-block .footer-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.footer-block .footer-small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage);
}

/* ---------- admin ---------- */

.admin-page {
  background: var(--cream);
}
.admin {
  padding: 3rem 0 5rem;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.admin-head h1 {
  font-size: 2.2rem;
  margin: 0;
}
.admin-head-actions {
  display: flex;
  gap: 0.5rem;
}
.admin-head-actions form {
  margin: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.stat {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--forest);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.admin-section {
  margin-bottom: 3rem;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-section-head h2 {
  font-size: 1.9rem;
  margin: 0;
}
.badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sage-light);
  vertical-align: top;
  white-space: nowrap;
}
td.wrap {
  white-space: pre-line;
  min-width: 16rem;
  max-width: 28rem;
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--mist);
}
tr:last-child td {
  border-bottom: 0;
}
.row-pending {
  background: #fbf6ea;
}
td.actions {
  display: flex;
  gap: 0.75rem;
}
td form {
  margin: 0;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--moss);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}
.link-btn.danger {
  color: var(--danger);
}

.not-found {
  text-align: center;
  padding: 8rem 0;
}
.not-found h1 {
  font-size: 3rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--sage-light);
    box-shadow: 0 16px 30px -20px rgba(31, 45, 36, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--mist);
  }
  .site-nav a::after {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portrait {
    max-width: 280px;
    margin: 0 auto;
  }
  .about-text {
    text-align: left;
  }
  .about-text .eyebrow,
  .about-text h2 {
    text-align: center;
  }

  .guestbook-grid {
    grid-template-columns: 1fr;
  }
  .guestbook-form {
    position: static;
  }

  .footer-sign {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .timeline {
    grid-auto-flow: row;
    max-width: 22rem;
    padding-left: 0.5rem;
  }
  .timeline-item:not(:last-child)::after {
    top: 0.9em;
    left: 7px;
    width: 1px;
    height: 100%;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 15px 7.5rem 1fr;
    align-items: baseline;
    gap: 0 1rem;
    text-align: left;
    padding: 0 0 1.1rem;
  }
  .timeline-dot {
    margin: 0;
    align-self: center;
  }
  .timeline-label {
    font-size: 1.2rem;
  }
  .mini-schedule li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }
  .callout {
    flex-direction: column;
    padding: 1.25rem;
  }
  .callouts {
    grid-template-columns: 1fr;
  }
  .gallery-nav {
    display: none;
  }
  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
  }
  .events,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    padding: 1.5rem 1.25rem;
  }
  .info-card {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .memory time {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .hero-landscape,
  .hero-actions,
  .event-map,
  .event-card .btn-block,
  .cal-links,
  #rsvp,
  .guestbook-form,
  .footer-trees {
    display: none !important;
  }
  .hero {
    padding: 2rem 0;
    margin: 0;
    background: none;
  }
  .section {
    padding: 2rem 0;
  }
  .card {
    box-shadow: none;
  }
}
