/* ============ James & Cheryl — public site ============ */
:root {
  --bg: #faf8f4;
  --tint: #f1ece3;
  --paper: #fff;
  --ink: #1d1b18;
  --muted: #7b756c;
  --line: #e6dfd3;
  --accent: #8a6a3b;
  --accent-dark: #6d5230;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Ballet", "Snell Roundhand", cursive; /* swap this one line to try another script font */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.muted { color: var(--muted); }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.wrap--wide { width: min(1500px, 100% - 32px); }
.wrap.narrow, .narrow { max-width: 560px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- type ---------- */
.display { font: 500 clamp(2.8rem, 7.5vw, 6.4rem)/1.02 var(--serif); letter-spacing: -.015em; margin: 0 0 .2em; }
.display-sm { font: 500 clamp(1.8rem, 3.2vw, 2.7rem)/1.1 var(--serif); margin: 0 0 .3em; letter-spacing: -.005em; }
.lede { font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.5 var(--serif); font-style: italic; margin: 0; color: inherit; opacity: .9; }
.eyebrow { font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(250, 248, 244, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.brand { font: 400 clamp(1.3rem, 6.2vw, 2.3rem)/1 var(--script); text-decoration: none; letter-spacing: 0; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.js .site-head.fade-brand .brand { opacity: var(--brand-o, 0); pointer-events: none; }
.js .site-head.fade-brand.scrolled .brand { pointer-events: auto; }
.nav { display: flex; gap: clamp(16px, 4vw, 30px); flex: none; }
.nav a { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after, .nav a.on::after { right: 0; }
.site-head.is-overlay { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head.is-overlay.scrolled { background: rgba(250, 248, 244, .92); color: var(--ink); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- hero ---------- */
.hero, .event-hero.has-img { position: relative; overflow: hidden; }
.hero { height: 100vh; height: 100svh; min-height: 560px; color: #fff; display: grid; place-items: center; text-align: center; background: #2a2622; }
.hero-bg {
  position: absolute; left: 0; right: 0; top: -35%; height: 135%;
  background-size: cover; background-position: center; will-change: transform;
}
.hero-bg--empty { background: radial-gradient(120% 90% at 30% 20%, #8a6a3b 0%, #3a2f22 55%, #1d1b18 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.12) 38%, rgba(0,0,0,.6)); }
.hero-copy { position: relative; z-index: 2; padding: 0 24px; will-change: transform, opacity; }
.hero .eyebrow, .event-hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .display { text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero .lede { text-shadow: 0 1px 20px rgba(0,0,0,.4); }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; z-index: 2; width: 26px; height: 44px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding-bottom: clamp(40px, 6vw, 80px); }
.section--tint { background: var(--tint); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.section-head .muted { margin: 0; font-size: .92rem; }
.more { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.page { padding: calc(var(--head-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 9vw, 120px); }
.page-head { margin-bottom: clamp(32px, 6vw, 72px); }
.crumb { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.album-head { margin: 28px 0 clamp(24px, 4vw, 48px); }
.empty { text-align: center; padding: 80px 0; }

/* ---------- reveal ---------- */
.js .reveal, .js .tile { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in, .js .tile.in { opacity: 1; transform: none; }

/* ---------- albums ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.album-card { display: block; text-decoration: none; }
.album-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.album-media img, .album-ph { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.14); transition: filter .6s; will-change: transform; }
.album-card:hover .album-media img { filter: brightness(.92); }
.album-ph { display: grid; place-items: center; font-size: 2rem; background: repeating-linear-gradient(45deg, #efe8dc, #efe8dc 10px, #f4efe6 10px, #f4efe6 20px); }
.album-meta { padding: 14px 2px 0; }
.album-meta h3 { font: 500 1.6rem/1.15 var(--serif); margin: 0 0 2px; }
.album-meta span { font-size: .82rem; color: var(--muted); }

/* ---------- masonry + parallax columns ---------- */
.mason { display: flex; gap: 16px; align-items: flex-start; padding: 70px 0; }
.mason .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.mason--raw { display: block; column-count: 3; column-gap: 16px; padding: 0; }
.mason--raw .tile { margin-bottom: 16px; break-inside: avoid; }
.tile { display: block; position: relative; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.tile img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease), filter .5s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 14px; color: #fff; font: 400 .85rem/1.3 var(--sans);
  background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.tile[data-caption=""]::after { display: none; }
.tile:hover::after { opacity: 1; transform: none; }
@media (max-width: 800px) { .mason--raw { column-count: 2; } .mason { gap: 10px; padding: 36px 0; } .mason .col { gap: 10px; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgb(14, 12, 10); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.lb[hidden] { display: none; }
.lb.on { opacity: 1; }
.lb figure { margin: 0; max-width: 94vw; max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 64px 0 56px; }
.lb img { max-width: 94vw; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; opacity: 0; transition: opacity .35s; box-shadow: 0 20px 80px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.lb img.ready { opacity: 1; }
.lb figcaption { color: #d8d2c7; font: 400 .9rem/1.4 var(--sans); margin-top: 14px; text-align: center; max-width: 70ch; min-height: 1.4em; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #d8d2c7; font: 500 .8rem/1 var(--sans); letter-spacing: .08em; }
.lb-bar .right { display: flex; gap: 8px; align-items: center; }
.lb button, .lb a.lb-dl { appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.28); color: #fff; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s; }
.lb button:hover, .lb a.lb-dl:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.lb a.lb-dl { padding: 9px 16px; border-radius: 999px; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.lb-close { width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
body.lb-open { overflow: hidden; }
@media (max-width: 700px) { .lb-nav { display: none; } .lb figure { padding: 60px 0 48px; } }

/* ---------- events ---------- */
.ev-section { margin-bottom: clamp(40px, 7vw, 80px); }
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.event-card { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(40, 30, 10, .35); }
.event-card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e8dcc7, #d5c19d) center / cover; }
.datebox { position: absolute; left: 16px; top: 16px; width: 58px; text-align: center; background: #fff; padding: 8px 0 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.datebox b { display: block; font: 600 .65rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.datebox span { display: block; font: 500 1.7rem/1.1 var(--serif); }
.pill { position: absolute; right: 14px; top: 14px; font: 500 .65rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; background: rgba(29,27,24,.75); color: #fff; padding: 6px 10px; border-radius: 99px; }
.event-card-body { padding: 18px 20px 22px; }
.event-card-body h3 { font: 500 1.7rem/1.12 var(--serif); margin: 0 0 6px; }
.event-card-body p { margin: 0; font-size: .9rem; }
.state-badge { display: inline-block; font: 600 .62rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 9px; margin-bottom: 10px; }
.state-past { opacity: .78; }
.state-past .event-card-media { filter: grayscale(.45); }

/* ---------- event page ---------- */
/* Banner height follows the screen width (about 85% of it) so narrow screens show more of the photo,
   capped by the screen height on large displays. Each later line overrides the one before if supported. */
.event-hero { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: #2a2622;
  min-height: 68vh;
  min-height: clamp(300px, 85vw, 68vh);
  min-height: clamp(300px, 85vw, 68svh); }
/* gentler parallax + less overscan so the photo isn't cropped to its centre */
.event-hero .hero-bg { top: -11%; height: 111%; background-position: center 35%; }
.event-hero.no-cover { min-height: 0; background: var(--tint); color: var(--ink); padding-top: calc(var(--head-h) + 56px); }
.event-hero.no-cover .eyebrow { color: var(--accent); }
.event-hero-copy { position: relative; z-index: 2; width: min(var(--maxw), 100% - 48px); margin: 0 auto; padding: 0 0 clamp(32px, 6vw, 64px); }
.event-hero.no-cover .event-hero-copy { padding-bottom: 48px; }
.event-hero .display { margin-bottom: .15em; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main rsvp" "after rsvp"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 6vw, 84px); row-gap: 0; padding: clamp(36px, 6vw, 72px) 0 clamp(60px, 9vw, 120px); align-items: start; }
.event-main { grid-area: main; min-width: 0; }
.rsvp-card { grid-area: rsvp; }
.event-after { grid-area: after; min-width: 0; }
.facts { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 .68rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.inline { font-size: .82rem; color: var(--accent); margin-left: 8px; white-space: nowrap; }
.prose { font-size: 1.05rem; max-width: 62ch; }
.prose a { color: var(--accent); }
.block { margin-top: 56px; }
.going { font-size: 1.05rem; line-height: 1.9; }
.rsvp-card { position: sticky; top: calc(var(--head-h) + 20px); background: var(--paper); border: 1px solid var(--line); padding: 30px 28px; box-shadow: 0 24px 60px -34px rgba(40,30,10,.4); }
.current-resp { background: var(--tint); padding: 10px 14px; font-size: .92rem; margin: 0 0 18px; }
.choice { display: grid; gap: 8px; margin-bottom: 18px; }
.choice label { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 12px 16px; border: 1px solid var(--line); text-align: center; font-size: .92rem; transition: all .25s; }
.choice label:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* narrow screens: details, then the RSVP card, then who's coming and comments */
@media (max-width: 900px) {
  .event-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "rsvp" "after"; grid-template-rows: none; row-gap: clamp(32px, 6vw, 56px); }
  .rsvp-card { position: static; }
  .event-after > .block:first-child { margin-top: 0; }
}

.comments { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 20px; }
.comments li { display: flex; gap: 14px; }
.comments time { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.comments p { margin: 4px 0 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 500 1.1rem/1 var(--serif); }

/* ---------- forms / buttons ---------- */
.card { background: var(--paper); border: 1px solid var(--line); padding: 32px; }
.gate { margin: 20px 0 60px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .78rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.field i { font-style: normal; opacity: .7; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]), select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 106, 59, .15); }
.btn { display: inline-block; appearance: none; cursor: pointer; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 15px 26px; transition: all .25s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.flash { padding: 12px 16px; margin: 0 0 20px; background: var(--tint); border-left: 3px solid var(--accent); font-size: .92rem; }
.flash-err { border-left-color: #b4412f; background: #fbeeea; }

/* ---------- footer ---------- */
.site-foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px, 4vw, 48px); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.site-foot a { text-decoration: none; opacity: .6; }
.site-foot a:hover { opacity: 1; }

@media (max-width: 420px) { .nav a { letter-spacing: .14em; } }

/* ---------- mobile menu (hamburger) ----------
   Phones and small tablets: 767px and narrower (the usual "md" breakpoint is 768px).
   Without JavaScript the links simply stay inline, so the site is never left without navigation. */
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; border: 0; border-radius: 10px;
    background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .js .nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .js .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .js .site-head.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .site-head.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .js .site-head.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 4px clamp(18px, 4vw, 48px) 10px; color: var(--ink);
    background: #faf8f4; border-bottom: 1px solid var(--line); box-shadow: 0 22px 34px -24px rgba(0, 0, 0, .45);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-head.nav-open .nav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .js .nav a { font-size: .85rem; letter-spacing: .2em; padding: 19px 2px; border-bottom: 1px solid var(--line); }
  .js .nav a:last-child { border-bottom: 0; }
  .js .nav a::after { display: none; }
  .js .nav a.on { color: var(--accent); }

  /* an open menu always gets a solid header, even over a photo, and the name stays visible */
  .js .site-head.nav-open, .js .site-head.is-overlay.nav-open { background: #faf8f4; color: var(--ink); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .site-head.fade-brand.nav-open .brand { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .tile { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .js .nav, .js .nav-toggle span { transition: none; }
}

/* anchors shouldn't land under the fixed header */
[id] { scroll-margin-top: calc(var(--head-h) + 8px); }

/* home hero title uses the script face */
.hero .display { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1.15; font-size: clamp(3.4rem, 9vw, 7.5rem); }

/* ---------- soft hero: photo as a faded background ----------
   --hero-wash: 0 = full-strength photo, 1 = photo invisible. Tweak to taste. */
body.hero-soft { --hero-wash: .62; }
body.hero-soft .hero { color: var(--ink); background: var(--bg); }
body.hero-soft .hero-shade {
  background: linear-gradient(to bottom,
    rgba(250,248,244,calc(var(--hero-wash) + .12)) 0%,
    rgba(250,248,244,var(--hero-wash)) 45%,
    rgba(250,248,244,calc(var(--hero-wash) + .1)) 78%,
    var(--bg) 100%);
}
body.hero-soft .hero .eyebrow { color: var(--accent); }
body.hero-soft .hero .display, body.hero-soft .hero .lede { text-shadow: none; }
body.hero-soft .scroll-cue { border-color: rgba(29,27,24,.45); }
body.hero-soft .scroll-cue span { background: var(--ink); }
body.hero-soft .site-head.is-overlay:not(.scrolled) { color: var(--ink); }
/* less overshoot so faces aren't cropped; pairs with data-parallax="0.12" in index.php */
body.hero-soft .hero-bg { top: -13%; height: 113%; background-position: center 30%; }

/* custom HTML descriptions */
.prose-html { max-width: none; }
.desc-html { isolation: isolate; overflow-wrap: anywhere; }
.desc-html img { max-width: 100%; height: auto; }
.desc-html table { max-width: 100%; border-collapse: collapse; }

/* RSVP questions */
[hidden] { display: none !important; }
.choice.row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.choice.row label { flex: 1 1 90px; }
.qfield { margin-bottom: 18px; }

/* ---- "Who's coming" tabs + poll results ---- */
.going-count { margin: 0 0 16px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #6b7a7e; }
.going-count b { font: 600 1.5rem/1 var(--serif); letter-spacing: 0; color: #8f2231; margin-right: 2px; }
.going-count .dot { color: #c9993f; margin: 0 8px; }
.gchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gchip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border: 1px solid rgba(201,153,63,.5); border-radius: 999px; box-shadow: 0 8px 18px -14px rgba(22,36,43,.5); }
.gchip .gmono { width: 34px; height: 34px; font-size: 1.05rem; }
.gchip .gname { font: 600 1.2rem/1 var(--serif); letter-spacing: .01em; }
.gchip .gplus { margin-left: 2px; }
.tablist { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 18px; border-radius: 999px; background: rgba(22,36,43,.07); }
.tab { appearance: none; border: 0; background: transparent; font: 600 .78rem/1 var(--sans, inherit); letter-spacing: .14em; text-transform: uppercase; color: #5b6a6e; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { color: #16242b; }
.tab.is-active { background: #fff; color: #16242b; box-shadow: 0 2px 10px -4px rgba(22,36,43,.35); }
.tab:focus-visible { outline: 2px solid #c9993f; outline-offset: 2px; }
.poll-q { margin: 0 0 26px; }
.poll-q h3 { margin: 0 0 8px; padding-bottom: 8px; font: 600 1.45rem/1.2 var(--serif); letter-spacing: .005em; border-bottom: 1px solid rgba(201,153,63,.6); }
.poll-rows { list-style: none; margin: 0; padding: 0; }
.poll-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px solid rgba(22,36,43,.08); }
.poll-name { font-weight: 600; }
.poll-ans { text-align: right; color: #33454b; }
.gpill { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 2px 12px; border-radius: 999px; }
.gpill.is-yes { background: #f0cf8a; color: #4a2f06; }
.gpill.is-no { background: rgba(22,36,43,.08); color: #55656a; }
.gmono { flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 600 1.1rem/1 var(--serif); background: radial-gradient(circle at 30% 25%, #e8c777, #b8872c 70%); box-shadow: 0 6px 14px -8px rgba(120,80,10,.7); }
.gplus { font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: #8a6420; background: rgba(201,153,63,.18); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* ---- popup window (used by event descriptions) ---- */
html.dlg-lock, html.dlg-lock body { overflow: hidden; }
.dlg-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(18, 24, 28, .68); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: dlgFade .22s ease-out; overflow-y: auto; overscroll-behavior: contain; }
.dlg { position: relative; width: min(400px, 100%); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-y: auto; background: #fbf7ef; color: #16242b; border-radius: 22px; padding: 30px 26px 26px; text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); border: 1px solid rgba(201,153,63,.5); animation: dlgPop .28s var(--ease); }
.dlg::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #c9993f, transparent); }
.dlg-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #55656a; font: 300 2rem/1 var(--sans); cursor: pointer; }
.dlg-close:hover { background: rgba(22,36,43,.07); color: #16242b; }
.dlg-close:focus-visible, .dlg-copybtn:focus-visible { outline: 2px solid #c9993f; outline-offset: 2px; }
.dlg-title { margin: 0 0 14px; font: 600 1.9rem/1.1 var(--serif); color: #1b3138; }
.dlg-body { font-size: .95rem; line-height: 1.55; }
.dlg-body p { margin: 0 0 12px; }
.dlg-body img { display: block; width: min(260px, 100%); height: auto; margin: 0 auto 16px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 10px 26px -16px rgba(22,36,43,.5); image-rendering: pixelated; image-rendering: crisp-edges; }
.dlg-body .dlg-small { font-size: .82rem; color: #5b6a6e; }
.dlg-copy { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; padding: 10px 12px; background: #fff; border: 1px solid rgba(201,153,63,.5); border-radius: 14px; }
.dlg-copytext { font-weight: 600; word-break: break-all; }
.dlg-copybtn { appearance: none; border: 0; border-radius: 999px; padding: 8px 16px; background: #f0cf8a; color: #4a2f06; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; min-height: 36px; }
.dlg-copybtn.is-done { background: #1b3138; color: #f0cf8a; }
@keyframes dlgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dlg-overlay, .dlg { animation: none; } }

/* ---- members: sign-in, account, avatars ---- */
.auth-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 5vw, 38px); box-shadow: 0 24px 60px -34px rgba(40,30,10,.4); margin-bottom: 24px; }
.auth-who { font: 600 clamp(1.8rem, 6vw, 2.4rem)/1.1 var(--serif); margin: 4px 0 14px; color: var(--ink); }
.auth-actions { display: grid; gap: 10px; margin-top: 18px; }
.auth-small { margin-top: 18px; font-size: .86rem; }
.auth .btn-primary, .acct .btn-primary { width: 100%; }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--line); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }
.code-input { font: 600 1.9rem/1 var(--sans); letter-spacing: .5em; text-align: center; padding-left: .5em; }
.flash-dev { border-left-color: #c9993f; background: #fbf3dc; }
.rsvp-alt { margin: 14px 0 0; font-size: .9rem; }
.acct .display { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.acct-photo { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.acct-photo .field { margin-bottom: 8px; }
.acct-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.acct-events li { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.acct-events li:first-child { border-top: 0; padding-top: 0; }
.tag { display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 99px; background: #ece7dd; color: #4a443a; }
.tag-yes { background: #dff1e6; color: #1e6a3f; } .tag-no { background: #f7e1dc; color: #9b3524; } .tag-maybe { background: #fbf0d3; color: #7a5a0c; }
.av-img { object-fit: cover; background: #fff; }
.avatar.av-img { width: 38px; height: 38px; border-radius: 50%; }
.gmono.av-img { border-radius: 50%; }
.avatar-lg { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 2rem/1 var(--serif); background: radial-gradient(circle at 30% 25%, #e8c777, #b8872c 70%); object-fit: cover; }
.auth .eyebrow { line-height: 1.5; }

/* profile card, wish list editing, guest chips as links */
.gchip-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.gchip:has(.gchip-link) { padding: 0; }
.gchip-link { padding: 6px 16px 6px 6px; border-radius: 999px; cursor: pointer; }
.gchip-link:hover, .gchip-link:focus-visible { background: rgba(201,153,63,.14); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.pcard-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.pcard-name { margin: 0; font: 600 1.6rem/1.1 var(--serif); }
.dlg-body .pcard img.avatar-lg { width: 84px; height: 84px; padding: 0; margin: 0; background: none; box-shadow: none; border-radius: 50%; object-fit: cover; image-rendering: auto; }
.pcard-sub { margin: 18px 0 8px; font: 600 .78rem/1 var(--sans, inherit); letter-spacing: .14em; text-transform: uppercase; color: #8a6a22; }
.pcard-social, .pcard-wish { list-style: none; margin: 0 0 8px; padding: 0; }
.pcard-social li, .pcard-wish li { padding: 7px 0; border-bottom: 1px solid rgba(22,36,43,.08); overflow-wrap: anywhere; }
.pcard-social span { font-weight: 600; margin-right: 4px; }
.pcard a { color: inherit; text-decoration-color: rgba(201,153,63,.7); text-underline-offset: 3px; }
.pcard a.btn { text-decoration: none; }
.wish-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; margin-bottom: 10px; align-items: center; }
.wish-row input { min-width: 0; padding: 10px 12px; border: 1px solid rgba(22,36,43,.25); border-radius: 10px; font: inherit; background: #fff; }
.wish-new { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(22,36,43,.2); grid-template-columns: 1fr 1fr auto; }
@media (max-width: 620px) { .wish-row, .wish-new { grid-template-columns: 1fr 1fr; } .wish-row input { grid-column: 1 / -1; } }
.pcard { text-align: left; }
