/* Elegant black and white: serif display type (Cormorant Garamond), light sans body (Jost),
   arches, hairline rules and generous space. Colours and fonts come from theme.css (theme.json). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 300; line-height: 1.05; margin: 0 0 0.4em; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 9vw, 6.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.25rem); font-style: italic; letter-spacing: -0.005em; }
h3 { font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
figure { margin: 0; }
section[id] { scroll-margin-top: 5.5rem; }
.amp { font-family: var(--font-heading); font-style: italic; font-weight: 300; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--color-text); color: var(--color-background); z-index: 20; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--size-content)); margin-inline: auto; }
.plain { list-style: none; margin: 0; padding: 0; }

.eyebrow, .day, .site-nav a, .button, .text-link, .footer-text, .footer-details, .prose h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Tones: each band sets its own foreground, background, muted and line colours */
.band { --fg: var(--color-text); --bg: var(--color-background); --muted: var(--color-muted); --line: var(--color-border); --placeholder: var(--color-tone-light);
  padding-block: clamp(5rem, 12vw, 9rem); color: var(--fg); background: var(--bg); }
.tone-grey { --bg: var(--color-surface); }
.tone-dark { --fg: var(--color-on-primary); --bg: var(--color-primary); --muted: var(--color-on-primary-muted); --line: var(--color-line-dark); --placeholder: var(--color-tone-dark); }
.tone-dark :focus-visible { outline-color: var(--color-on-primary); }

/* Ornaments */
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; width: max-content; margin: 1.75rem auto; padding-inline: 0.25rem; color: var(--fg, var(--color-text)); --dot: 5px;
  background: radial-gradient(circle, currentColor 0 calc(var(--dot) / 2), transparent calc(var(--dot) / 2 + 0.5px)) center / var(--dot) var(--dot) no-repeat; }
.ornament::before, .ornament::after { content: ""; width: 3.5rem; height: 1px; background: currentColor; opacity: 0.6; }
.rule { display: block; width: 3.5rem; height: 1px; background: currentColor; opacity: 0.6; margin: 1.5rem 0 2rem; }

/* Buttons: round */
.button { display: inline-block; padding: 1rem 2.6rem; color: var(--fg, var(--color-text)); background: transparent; border: 1px solid currentColor; border-radius: var(--radius-pill); text-decoration: none; }
.button:hover { background: var(--fg, var(--color-text)); color: var(--bg, var(--color-background)); border-color: var(--fg, var(--color-text)); }
.button-solid { background: var(--fg, var(--color-text)); color: var(--bg, var(--color-background)); border-color: var(--fg, var(--color-text)); }
.button-solid:hover { background: transparent; color: var(--fg, var(--color-text)); }
.actions { margin: 0; }
.text-link { display: inline-block; margin-top: 0.5rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; }

/* Header */
.site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--color-background) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); z-index: 10; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; letter-spacing: 0.02em; text-decoration: none; color: var(--color-text); }
.menu { display: flex; align-items: center; gap: 0.75rem 2rem; margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--color-muted); text-decoration: none; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--color-text); border-bottom-color: currentColor; }
.header-cta { padding: 0.65rem 1.7rem; }

/* Hamburger button (phones only) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -0.6rem; padding: 0; border: 0; background: transparent; color: var(--color-text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.5rem; height: 1px; background: currentColor; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Layout */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 3.5rem clamp(2.5rem, 6vw, 5rem); }
.split.reverse > .arch { order: 2; }
.section-text { max-width: 30rem; }
.eyebrow { color: var(--muted, var(--color-muted)); margin-bottom: 1.5rem; }
.intro { color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { padding-block: clamp(4rem, 10vw, 7rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3.5rem clamp(2.5rem, 6vw, 5rem); }
.hero-text { text-align: center; }
.hero h1 { margin: 0; }
.hero h1 .amp { display: block; font-size: 0.6em; line-height: 1.2; }
.hero-lead { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--muted); max-width: 28rem; margin: 0 auto 2.25rem; }
.small-note { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); margin: 1.25rem 0 0; }

/* Arch photos, shown in black and white */
.arch { position: relative; width: min(100%, 25rem); justify-self: center; padding: 0.9rem; }
.hero .arch { width: min(100%, 36rem); }
.split > .arch { width: min(100%, 34rem); }
.arch::before { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; opacity: 0.5; border-radius: 999px 999px 0 0; pointer-events: none; }
.arch > img, .arch-placeholder { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: center 35%; border-radius: 999px 999px 0 0; filter: grayscale(1) contrast(1.05); background: var(--placeholder, var(--color-tone-light)); }

/* Prose */
.prose { max-width: var(--size-prose); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul { color: var(--muted); }
.prose h3 { color: var(--fg); margin: 2rem 0 0.5rem; }
.prose hr + h3 { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.35rem; }
.prose img { max-width: 100%; height: auto; filter: grayscale(1); }
.centered-prose { margin: 3rem auto 0; text-align: center; }
.band .section-text .prose { margin-bottom: 2.25rem; }

/* Centered heads and arch cards */
.section-head { text-align: center; max-width: 40rem; margin-inline: auto; }
.section-head h2 { margin-bottom: 0; }
.section-head .ornament { margin-block: 1.5rem 0; }
.section-head .intro { margin-top: 1.5rem; }
.arch-cards { list-style: none; margin: clamp(3rem, 7vw, 5rem) auto 0; padding: 0; max-width: 62rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2.25rem; }
.arch-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 999px 999px 0 0; padding: 5.5rem 2rem 2.75rem; text-align: center; min-height: 22rem; }
.arch-card.outlined { border: 1px solid var(--line); }
.arch-card.outlined::before { content: ""; position: absolute; inset: 0.6rem; border: 1px solid var(--fg); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: 0.35; pointer-events: none; }
.arch-card.filled { background: var(--color-background); color: var(--color-text); }
.arch-card .day { margin-bottom: 1rem; color: var(--color-muted); }
.arch-card h3 { margin-bottom: 0.5rem; }
.arch-card .time { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; margin-bottom: 1rem; color: var(--color-text); }
.arch-card p { color: var(--color-muted); font-size: 0.97rem; }
.arch-card > :last-child { margin-bottom: 0; }

/* Map: a real Google Map, shown in black and white to match the site */
.map { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-map); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.map > img, .map > svg, .map > iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map > iframe { filter: grayscale(1) contrast(1.05); }
.map text { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.2em; }

/* RSVP: a framed invitation card with the RSVP button and the reply-by date */
.rsvp-card { position: relative; max-width: 46rem; margin-inline: auto; text-align: center;
  padding: clamp(3.25rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 4.5rem); border: 1px solid var(--line); }
.rsvp-card::before { content: ""; position: absolute; inset: 0.65rem; border: 1px solid var(--fg); opacity: 0.3; pointer-events: none; }
.rsvp-card h2 { margin-bottom: 0; }
.rsvp-card .ornament { margin-block: 1.75rem; }
.rsvp-card .intro { max-width: 30rem; margin: 0 auto; }
.rsvp-actions { margin-top: 2.75rem; }
.rsvp-actions .button { font-size: 0.8rem; padding: 1.2rem 4.5rem; }
.rsvp-note { font-family: var(--font-heading); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--muted); margin: 1.5rem 0 0; }

/* Footer */
.site-footer { background: var(--color-background); border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding-block: clamp(4rem, 9vw, 6rem); text-align: center; }
.footer-inner .ornament { margin: 0 auto 1rem; }
.footer-eyebrow { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--color-muted); margin: 0; }
.footer-brand { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; line-height: 1.15; margin: 0; }
.footer-text { color: var(--color-muted); margin: 0.5rem 0 0; }
.footer-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; color: var(--color-muted); }
.footer-details a { color: inherit; }

@media (max-width: 50rem) {
  .masthead { padding-block: 0.6rem; gap: 0 1rem; }
  .brand { font-size: 1.3rem; }
  .nav-toggle { display: inline-flex; }
  .menu { flex-basis: 100%; flex-direction: column; gap: 1.25rem; margin: 0; padding: 1rem 0 1.75rem; border-top: 1px solid var(--color-border); }
  .js-nav .menu:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 1rem; font-size: 0.8rem; text-align: center; }
  .header-cta { padding: 0.85rem 2.6rem; }
  .split, .hero-inner { grid-template-columns: 1fr; }
  .split.reverse > .arch { order: 0; }
  .section-text { max-width: none; }
  section[id] { scroll-margin-top: 4.5rem; }
  .rsvp-actions .button { padding-inline: 3rem; }
  .arch-cards { justify-items: center; gap: 3rem; }
  .arch-card { width: min(100%, 21rem); min-height: 0; padding: 7rem 2.5rem 3.75rem; }
  .arch-card h3 { margin-bottom: 1rem; }
  .arch-card p { line-height: 1.85; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.25s, background-color 0.25s, border-color 0.25s; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: transform 0.3s ease, top 0.3s ease, background-color 0.2s; }

  /* Soft scroll motion: set up by /assets/motion.js */
  .motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s cubic-bezier(0.2, 0.65, 0.3, 1); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .motion .hero .arch.reveal { transition-delay: 0.2s; }
  .motion .split > .reveal + .reveal { transition-delay: 0.15s; }
  .motion .arch-card.reveal:nth-child(2) { transition-delay: 0.15s; }
  .motion .arch-card.reveal:nth-child(3) { transition-delay: 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
