/* ============================================================================
   TRUST YOUR FAMILY — EVENT PAGE DESIGN SYSTEM
   Brand DNA pulled from the event flyer: deep navy + vivid orange,
   classic serif headlines, clean humanist sans body, warm paper background.
   ========================================================================== */

:root {
  /* color */
  --navy:       #16294e;
  --navy-deep:  #0f1f3d;
  --navy-700:   #20366b;
  --orange:     #e8742a;
  --orange-deep:#cf5f18;
  --ink:        #25272c;
  --muted:      #5d626c;
  --paper:      #ffffff;
  --paper-warm: #faf7f1;
  --panel:      #fffdf9;
  --hairline:   #e9d7;
  --hairline:   #ece4d7;
  --navy-tint:  #eef1f6;
  --orange-tint:#fbeade;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, Segoe UI, sans-serif;

  /* form */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(20,31,61,.05), 0 18px 40px -22px rgba(20,31,61,.28);
  --shadow-soft: 0 1px 2px rgba(20,31,61,.04), 0 10px 30px -20px rgba(20,31,61,.25);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- shared bits -------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: 12.5px;
}
.kicker {
  display: flex; align-items: center; gap: 16px;
  color: var(--navy); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
}
.kicker::before, .kicker::after {
  content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--hairline));
}
.kicker::before { background: linear-gradient(90deg, var(--hairline), transparent); }

.btn {
  --b: var(--orange);
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--b); color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--b) 80%, black);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -12px color-mix(in srgb, var(--b) 80%, black); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid color-mix(in srgb, var(--navy) 28%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { background: #fff; border-color: var(--navy); box-shadow: var(--shadow-soft); }
.btn--navy { --b: var(--navy); }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper-warm) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topbar__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brandmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brandmark b {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  color: var(--navy); letter-spacing: .01em;
}
.brandmark span { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.topbar__spacer { flex: 1; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a {
  text-decoration: none; color: var(--navy); font-weight: 700; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.topnav a.muted { color: var(--muted); }
.topnav a:hover { color: var(--orange-deep); }
.topbar .btn { padding: 10px 20px; font-size: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-deep); background: var(--orange-tint);
  padding: 5px 11px; border-radius: 999px;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(620px 360px at 88% 4%, color-mix(in srgb, var(--orange) 9%, transparent), transparent 70%),
    radial-gradient(700px 460px at -6% 30%, color-mix(in srgb, var(--navy) 6%, transparent), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.audience-tag {
  display: inline-block; white-space: normal; line-height: 1.45;
  background: var(--navy); color: #fff; border-radius: 16px;
  padding: 10px 18px; letter-spacing: .13em;
  align-self: flex-start; height: auto; overflow: visible;
  margin-top: 18px; max-width: 44ch;
}
.hero h1 {
  font-family: var(--serif); color: var(--navy);
  font-weight: 560; line-height: 1.02; letter-spacing: -.01em;
  font-size: clamp(40px, 6vw, 68px);
  margin: 20px 0 0;
}
.hero h1 .accent {
  display: block; font-style: italic; font-weight: 500;
  color: var(--orange); margin-top: .04em;
}
.hero__rule { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; max-width: 360px; }
.hero__rule i { height: 2px; flex: 1; background: linear-gradient(90deg, var(--orange), color-mix(in srgb, var(--orange) 10%, transparent)); border-radius: 2px; }
.hero__rule svg { color: var(--orange); flex: 0 0 auto; }
.hero .tagline {
  font-size: clamp(18px, 2.1vw, 22px); color: var(--ink);
  max-width: 30ch; font-weight: 500; margin: 0 0 26px;
  text-wrap: balance;
}

.meta { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.meta__row { display: flex; align-items: flex-start; gap: 14px; }
.meta__ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: var(--navy);
  background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-soft);
}
.meta__row .lead { font-weight: 800; color: var(--orange-deep); font-size: 17px; letter-spacing: .01em; }
.meta__row .sub { color: var(--ink); font-weight: 600; }
.meta__row .sub.dim { color: var(--muted); font-weight: 600; font-size: 14.5px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero art */
.hero__art { position: relative; }
.photo-card {
  position: relative; border-radius: 22px; padding: 9px;
  background: linear-gradient(135deg, var(--orange), #f3a15f);
  box-shadow: var(--shadow-card);
  transform: rotate(.6deg);
}
.photo-card img { border-radius: 15px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.photo-card .cap {
  position: absolute; left: 18px; bottom: 18px; white-space: nowrap;
  background: color-mix(in srgb, var(--navy-deep) 86%, transparent);
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.presenter {
  margin-top: 20px; display: flex; align-items: center; justify-content: center;
  gap: 14px; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-soft);
}
.presenter img { height: 38px; width: auto; }
.presenter .pl { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------------ story */
.section { padding: 30px 0; }
.story-wrap { padding: 18px 0 8px; }
.story {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: 8px 8px 8px 54px;
}
.story .qmark {
  position: absolute; left: -2px; top: -14px;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 96px; line-height: 1; color: var(--orange);
}
.story p {
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: clamp(20px, 2.5vw, 27px); line-height: 1.5; color: var(--navy);
  margin: 0; text-wrap: pretty;
}
.story::after { content: ""; position: absolute; left: 30px; top: 8px; bottom: 8px; width: 3px; background: var(--orange-tint); border-radius: 3px; }

/* --------------------------------------------------------------- timeline */
.timeline-sec { background: #fff; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 56px 0; }
.timeline { max-width: 760px; margin: 34px auto 0; }
.tl-row { display: grid; grid-template-columns: 96px 34px 1fr; align-items: start; gap: 4px; }
.tl-date { text-align: right; padding-top: 1px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); font-size: 14px; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: -2px; width: 2.5px; background: var(--navy); left: 50%; transform: translateX(-50%); }
.tl-row:first-child .tl-rail::before { top: 9px; }
.tl-row:last-child .tl-rail::before { bottom: auto; height: 9px; }
.tl-dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); margin-top: 3px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--orange-tint); }
.tl-row.is-highlight .tl-dot { background: var(--navy); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--orange); }
.tl-body { padding: 0 0 30px 16px; font-size: 17px; color: var(--ink); }
.tl-row:last-child .tl-body { padding-bottom: 4px; }
.tl-body .hl { font-weight: 800; color: var(--navy); }
.tl-row.is-highlight .tl-body { font-weight: 600; }

/* ------------------------------------------------------- details + rsvp */
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.card__pad { padding: 26px 28px; }
.card h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.card .sub { color: var(--muted); margin: 0 0 18px; font-weight: 600; font-size: 14.5px; }

.facts { display: flex; flex-direction: column; }
.fact { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.fact:first-child { border-top: 0; padding-top: 4px; }
.fact .fi { flex: 0 0 auto; color: var(--orange-deep); margin-top: 1px; }
.fact .fk { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.fact .fv { font-weight: 700; color: var(--ink); line-height: 1.42; }
.fact .fv .em { color: var(--orange-deep); }

.map-wrap { position: relative; height: 210px; background: var(--navy-tint); }
.map { border: 0; width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.map-fallback {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--navy);
  background:
    linear-gradient(0deg, rgba(232,116,42,.05), rgba(232,116,42,.05)),
    repeating-linear-gradient(90deg, #eef1f6 0 39px, #e3e8f1 39px 40px),
    repeating-linear-gradient(0deg, #eef1f6 0 39px, #e3e8f1 39px 40px),
    #eef1f6;
}
.map-fallback::before { content:""; position:absolute; width:140%; height:26px; background:#f6e7d8; transform:rotate(-18deg); top:62%; left:-20%; box-shadow:0 70px 0 #f6e7d8; }
.map-fallback .mpin { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); box-shadow: 0 8px 18px -6px rgba(207,95,24,.6); }
.map-fallback .mpin::after { content:""; position:absolute; inset: 12px; background:#fff; border-radius:50%; }
.map-fallback .maddr { position: relative; z-index: 1; font-weight: 800; font-size: 13.5px; background:#fff; padding:5px 12px; border-radius:999px; box-shadow: var(--shadow-soft); }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 28px; font-weight: 700; color: var(--navy); text-decoration: none; border-top: 1px solid var(--hairline); white-space: nowrap; }
.map-link:hover { color: var(--orange-deep); }

/* form */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 800; color: var(--navy); letter-spacing: .08em; text-transform: uppercase; }
.field .req { color: var(--orange); }
.field .hint { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; text-transform: lowercase; }
.input {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline); background: var(--paper-warm);
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}
.input::placeholder { color: #9aa0aa; }
.input:focus { outline: 0; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-tint); }
.input.bad { border-color: #d4503f; background: #fdf3f1; }
textarea.input { resize: vertical; min-height: 84px; }
.err { color: #c0392b; font-size: 12.5px; font-weight: 700; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--hairline); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; background: #fff; }
.stepper button { appearance: none; border: 0; background: #fff; width: 46px; font-size: 20px; font-weight: 700; color: var(--navy); cursor: pointer; }
.stepper button:hover { background: var(--orange-tint); color: var(--orange-deep); }
.stepper input { width: 58px; text-align: center; border: 0; border-left: 1.5px solid var(--hairline); border-right: 1.5px solid var(--hairline); font-family: var(--sans); font-weight: 800; font-size: 16px; color: var(--navy); }
.stepper input:focus { outline: 0; }

.form-note { font-size: 13px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.deadline { font-size: 13px; font-weight: 800; color: var(--orange-deep); }
.consentq { padding: 13px 15px; border: 1.5px solid var(--hairline); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.consentq.bad { border-color: oklch(0.7 0.13 35); background: oklch(0.98 0.02 35); }
.consentq__txt { font-size: 13px; line-height: 1.5; color: var(--muted); }
.consentq__txt b { color: var(--navy); font-weight: 800; }
.consentq__opts { display: flex; gap: 9px; margin-top: 10px; }
.radiopill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1.5px solid var(--hairline); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.radiopill:hover { border-color: var(--orange); }
.radiopill.on { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); }
.radiopill input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 16px; height: 16px; margin: 0; border: 1.5px solid var(--hairline); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-content: center; transition: border-color .15s; }
.radiopill input:checked { border-color: var(--orange); }
.radiopill input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.radiopill input:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--orange-tint); }
.form-error { font-size: 13.5px; font-weight: 600; color: #9a2a1c; background: oklch(0.95 0.04 35); border: 1px solid oklch(0.85 0.07 35); border-radius: 10px; padding: 11px 14px; }
.form-error a { color: var(--orange-deep); font-weight: 800; }
.btn[disabled] { opacity: .6; cursor: progress; }

.rsvp-success { text-align: center; padding: 22px 8px 8px; animation: pop .4s ease; }
.rsvp-success .check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--orange-tint); color: var(--orange-deep); }
.rsvp-success h3 { margin: 0 0 6px; }
.rsvp-success p { color: var(--muted); margin: 0 auto; max-width: 36ch; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- invite */
.invite-band { display: flex; align-items: center; gap: 20px; max-width: 900px; margin: 6px auto 0; padding: 26px 30px; background: var(--orange-tint); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent); }
.invite-band .ii { flex: 0 0 auto; color: var(--orange-deep); }
.invite-band p { margin: 0; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--orange-deep); line-height: 1.4; }

/* --------------------------------------------------------------- partners */
.partners { margin-top: 46px; }
.partners__band { background: var(--navy); color: #fff; text-align: center; padding: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; }
.partners__logos { background: #fff; padding: 30px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 56px; }
.partners__logos img { height: 52px; width: auto; object-fit: contain; filter: saturate(1); }
.colophon { background: var(--navy-deep); color: color-mix(in srgb, #fff 72%, transparent); text-align: center; font-size: 12.5px; padding: 18px; letter-spacing: .02em; }
.colophon a { color: #fff; text-decoration: none; font-weight: 700; }

/* --------------------------------------------------------------- listing */
.listing-hero { padding: 64px 0 26px; }
.listing-hero h1 { font-family: var(--serif); color: var(--navy); font-weight: 560; font-size: clamp(38px, 5.5vw, 58px); margin: 14px 0 10px; letter-spacing: -.01em; }
.listing-hero p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; padding: 16px 0 40px; }
.ev-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .25s ease; }
.ev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ev-card__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ev-card:hover .ev-card__img img { transform: scale(1.04); }
.ev-card__date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 11px; text-align: center; padding: 8px 12px; box-shadow: var(--shadow-soft); line-height: 1; }
.ev-card__date b { display: block; font-family: var(--serif); color: var(--orange-deep); font-size: 22px; font-weight: 700; }
.ev-card__date span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.ev-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-card__aud { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.ev-card__title { font-family: var(--serif); color: var(--navy); font-size: 24px; font-weight: 600; line-height: 1.1; margin: 0; }
.ev-card__title em { font-style: italic; color: var(--orange); }
.ev-card__loc { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; margin-top: auto; }
.ev-card__go { color: var(--navy); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.ev-card:hover .ev-card__go { color: var(--orange-deep); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { order: 0; max-width: 460px; }
  .dr-grid { grid-template-columns: 1fr; }
  .photo-card { transform: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 30px 0; }
  .topnav a.label-hide { display: none; }
  .tl-row { grid-template-columns: 64px 28px 1fr; }
  .tl-date { font-size: 12px; }
  .row-2 { grid-template-columns: 1fr; }
  .invite-band { flex-direction: column; text-align: center; }
  .partners__logos { gap: 20px 32px; }
  .partners__logos img { height: 40px; }
}
