/* ============================================================
   VineToast — shared site chrome (nav, footer, buttons, layout)
   Links AFTER the design-system styles.css. Page-specific styles
   live in each page's own <style> block.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Cross-page crossfade (browser-native, no JS) ----
   Opts every same-origin navigation into a gentle fade between
   pages. Degrades to an instant swap where unsupported. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: var(--ease-out, ease); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

body { margin: 0; background: var(--surface-page); color: var(--text-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-decoration: none; color: inherit; }
img { display: block; }
::selection { background: var(--gold-pale); color: var(--burgundy); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; border-radius: var(--radius-button); cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--burgundy); color: var(--cream-light); padding: 11px 22px; font-size: 14px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--burgundy-light); color: var(--cream-light); }
.btn-gold { background: linear-gradient(180deg, #EAD382, var(--gold) 46%, var(--gold-dark)); color: var(--burgundy-dark); padding: 15px 30px; font-size: 15px; letter-spacing: 0.01em; border: 1px solid rgba(160,120,48,0.55); box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 8px 24px rgba(201,168,76,0.30); }
.btn-gold:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 14px 32px rgba(201,168,76,0.42); }
.btn-ghost { color: var(--burgundy); border-color: var(--burgundy); padding: 15px 26px; font-size: 16px; background: transparent; }
.btn-ghost:hover { background: var(--overlay-gold); border-color: var(--gold-dark); }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-block { justify-content: center; width: 100%; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,245,236,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 15px 32px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }

/* Header lockup — the designer's lockup (seal · rule · wordmark), tagline removed, inlined so the brand fonts apply */
.brand-lockup-svg { height: 56px; width: auto; display: block; }
@media (max-width: 560px) { .brand-lockup-svg { height: 46px; } }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--burgundy); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover { color: var(--burgundy); }
.nav-links a.active { color: var(--burgundy); }
.nav-links a.btn { color: var(--cream-light); }
.nav-links a.btn:hover { color: var(--cream-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--burgundy); }

/* ---- Section heads ---- */
.sec { padding: 96px 32px; }
.sec-tight { padding: 64px 32px; }
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 50px; color: var(--text-heading); letter-spacing: -0.02em; margin: 0; line-height: 1.06; }
.sec-head h2::after { content: ""; display: block; width: 46px; height: 2px; margin: 22px auto 0; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 2px; }
.sec-head.left h2::after { margin-left: 0; }
.sec-head p { font-family: var(--font-body); font-weight: 300; font-size: 17px; color: var(--text-muted); margin-top: 22px; line-height: 1.65; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--hairline); padding: 64px 32px 48px; background: var(--surface-card); }
.footer-grid { max-width: var(--container); margin: 0 auto 44px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--text-faint); max-width: 280px; margin: 0; }
.footer-col h4 { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 18px; }
.footer-col a { display: block; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); padding: 6px 0; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--burgundy); }
.footer-base { max-width: var(--container); margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-base p { font-family: var(--font-body); font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.7; }
.footer-base a { color: var(--gold-dark); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- App store badges (shared) ---- */
/* Official Apple / Google artwork. Apple's SVG has ~no padding; Google's PNG
   bakes in ~12% padding, so the Google badge is sized taller to make the
   visible buttons match. align-items:center keeps the differing boxes level. */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; transition: transform var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out); }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-badge img { display: block; width: auto; }
.store-badge.apple img  { height: 44px; }
.store-badge.google img { height: 52px; }

/* ---- Eyebrow on dark (vault moments) ---- */
.vt-dark .vt-eyebrow { color: var(--gold); }

/* ---- Premium depth on dark bands: film grain + vignette ---- */
.band, .cta-band { position: relative; isolation: isolate; }
.band > *, .cta-band > * { position: relative; z-index: 2; }
.band::before, .cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 32%, transparent 48%, rgba(0,0,0,0.42) 100%); }
.band::after, .cta-band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Gold hairline rule utility (editorial separator) ---- */
.gold-rule { width: 56px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border: none; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(250,245,236,0.98); backdrop-filter: blur(14px); padding: 12px 24px 24px; border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .nav-links a.btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .sec-head h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* Footer legal row. Sits under the contact line in .footer-base, which is a
   flex column on mobile and a row on desktop, so this only sets its own type. */
.footer-legal a { color: var(--text-faint); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-legal a:hover { color: var(--gold); border-bottom-color: var(--gold-border); }
.footer-legal span { color: var(--text-faint); margin: 0 8px; }
