/* Colours, type and the shared pieces: the header, the gilded buttons and the footer. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; -webkit-font-smoothing: antialiased;
  --ink: #26402F; --soft: #5E7466; --accent: #2C5A3C; --bg: #F6F8F4; --bg2: #EDF2EC; --panel: #FFFFFF; --line: #26402F1F;
  background: var(--bg); color: var(--ink);
}
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid #B8913F; outline-offset: 3px; }
.sec { scroll-margin-top: 56px; position: relative; overflow: hidden; }

/* ---------- the header: monogram, backdrop switch, links ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: 56px; padding: 0 clamp(14px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #FBFCFAE8; color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #26402F14;
}
.logo { display: block; width: 50px; height: 52px; background: var(--a-logo) center / contain no-repeat; filter: brightness(.82) saturate(1.35) contrast(1.15); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); }
.nav nav a { font: 500 .86rem/1 "Jost", sans-serif; color: inherit; text-decoration: none; padding: 10px 0; }
@media (max-width: 820px) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* phones: blur costs too much memory */
}

/* the backdrop switch: a small round thumbnail of the next backdrop (js/main.js) */
.bgsw { width: 22px; height: 22px; margin-right: auto; margin-left: 4px; padding: 0; border-radius: 50%; border: 1.5px solid #A9843A; cursor: pointer; opacity: .75; background: none; transition: opacity .2s; }
.bgsw[data-to="northhead"] { background-image: var(--a-bg-northhead); }
.bgsw[data-to="lake"] { background-image: var(--a-bg-lake); background-position: 50% 80%; }
.bgsw[data-to="sunset"] { background-image: var(--a-bg-sunset); background-position: 65% 50%; }
.bgsw:hover, .bgsw:focus-visible { opacity: 1; }

/* ---------- buttons: the hero's RSVP and Events, the header's RSVP and "Send our reply" ---------- */
.btn { text-decoration: none; cursor: pointer; display: inline-block; }
:is(.fg .og-t .btn, .nav nav a.cta, .rs3-go) { font: 600 .8rem/1 "Jost", sans-serif; letter-spacing: .2em; text-transform: uppercase; border: 0; border-radius: 3px; padding: 17px 30px; }
:is(.fg .og-t .btn.solid, .nav nav a.cta, .rs3-go) { background: #2C5A3C; color: #FBF6EA; box-shadow: inset 0 0 0 3px #2C5A3C, inset 0 0 0 4px #CDAE68, 0 6px 14px -8px #1d3a2780; }
.fg .og-t .btn.ghost { background: #FBF6EAd9; color: #26402F; box-shadow: inset 0 0 0 1px #B8913F, inset 0 0 0 4px #FBF6EA, inset 0 0 0 5px #D9C28E; }
:is(.fg .og-t .btn, .nav nav a.cta, .rs3-go):hover { filter: brightness(1.06); }

/* ---------- footer: the painting credits ---------- */
footer { background: var(--bg2); color: var(--soft); font: 400 .8rem/1.6 "Jost", sans-serif; padding: 32px 16px 48px; }
footer > div { max-width: 1120px; margin: 0 auto; }
footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
