/* =========================================================
   SUBPAGE SHARED STYLES
   Tokens, chrome (topbar/nav/footer), type utilities, motion
   Matches the main Wedding Site.html visual language.
   ========================================================= */

:root {
  --bg:          #F5F0E6;
  --bg-alt:      #ECE4D1;
  --bg-dark:     #0B0806;
  --card:        #FBF7EE;
  --ink:         #060403;
  --ink-2:       #14100B;
  --muted:       #3A3124;
  --muted-2:     #665A46;
  --rule:        rgba(11,9,6,0.42);
  --rule-soft:   rgba(11,9,6,0.18);
  --rule-onDark: rgba(246,241,231,0.28);
  --ff-display:  'Cinzel', 'Trajan Pro', 'Didot', serif;
  --ff-body:     'Cormorant Garamond', 'Garamond', serif;
  --ff-label:    'Inter', 'Helvetica Neue', sans-serif;
  --ff-script:   'Great Vibes', 'Apple Chancery', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}

.shell { max-width: 1360px; margin: 0 auto; padding: 0 56px; }

/* ——— Type utilities ——— */
.eyebrow {
  font-family: var(--ff-label);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--ink { color: var(--ink); }

/* ——— Scroll progress bar ——— */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__fill {
  height: 100%; width: 0%;
  background: var(--ink);
  transition: width 0.08s linear;
}

/* ——— TOP BAR ——— */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 0.5px solid var(--rule);
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 18px 56px;
  max-width: 1360px;
  margin: 0 auto;
}
.topbar__menu {
  justify-self: end;
  font-family: var(--ff-label);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: 6px 0;
}

/* ——— Monogram mark ——— */
.mono-mark {
  display: inline-block;
  line-height: 0;
  color: var(--ink);
  text-decoration: none;
}
.mono-mark svg { display: block; height: auto; }
.mono-mark--sm svg { width: 54px; }
.mono-mark--lg svg { width: 110px; }
.mono-mark path, .mono-mark line, .mono-mark circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 75px;
  z-index: 39;
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
}
.nav__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 14px 56px;
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.nav a {
  font-family: var(--ff-label);
  font-size: 10.5px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color .25s ease;
}
.nav a:hover { color: var(--muted); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px;
  height: 1px; background: var(--ink);
}

/* ——— FOOTER ——— */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 72px;
  margin-top: 0;
  text-align: center;
}
.footer .mono-mark { color: var(--bg); margin-bottom: 22px; display: inline-block; }
.footer__rule { border-top: 0.5px solid rgba(244,239,230,0.22); max-width: 260px; margin: 0 auto 36px; border-left: 0; border-right: 0; border-bottom: 0; height: 0; }
.footer__note {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto;
  color: rgba(244,239,230,0.88);
}
.footer__note a { color: inherit; text-decoration: none; border-bottom: 0.5px solid rgba(244,239,230,0.38); padding-bottom: 1px; }
.footer__note a:hover { color: var(--bg); }

.footer__contacts {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ff-label);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.85);
}
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(244,239,230,0.85);
  text-decoration: none;
  padding: 10px 16px;
  border: 0.5px solid rgba(244,239,230,0.35);
  transition: border-color .25s, color .25s, background .25s;
}
.footer__contact:hover {
  color: var(--bg);
  border-color: rgba(244,239,230,0.75);
  background: rgba(244,239,230,0.04);
}
.footer__contact svg { flex-shrink: 0; }
.footer__contact-sep { opacity: .35; }

/* ——— Reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .shell { padding: 0 24px; }
  .topbar__inner { padding: 14px 24px; }
  .nav__inner { gap: 22px; padding: 12px 24px; }
  .nav a { font-size: 10px; letter-spacing: 0.22em; }
  .footer { padding: 56px 0 48px; }
  .footer__contacts { flex-direction: column; gap: 10px; }
  .footer__contact-sep { display: none; }
}


/* ===== Hamburger + mobile drawer (shared with home) ===== */
.topbar__menu {
  justify-self: end;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0; /* kill any residual text rendering */
}
.topbar__menu svg { display: block; width: 22px; height: 16px; }
.topbar__menu line { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: transform 240ms cubic-bezier(0.16,1,0.3,1), opacity 200ms; transform-origin: center; }
.topbar__menu[aria-expanded="true"] line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.topbar__menu[aria-expanded="true"] line:nth-child(2) { opacity: 0; }
.topbar__menu[aria-expanded="true"] line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-drawer {
  position: sticky;
  top: 68px; /* sits just below the sticky topbar */
  z-index: 39;
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.16,1,0.3,1), padding 220ms;
}
.site-drawer.is-open {
  max-height: 520px;
  padding-top: 8px;
  padding-bottom: 20px;
}
.site-drawer a {
  font-family: var(--ff-label);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule-soft);
}
.site-drawer a:last-child { border-bottom: 0; }

@media (min-width: 921px) {
  .topbar__menu { display: none; }
  .site-drawer { display: none; }
}
@media (max-width: 920px) {
  .nav { display: none; }
}
