/* Rumble — shared styles */

:root {
  --cream: #FBF8F2;
  --cream-warm: #F5EFE3;
  --ink: #1A1F1C;
  --ink-soft: #4A524C;
  --ink-mute: #8A8F89;
  --line: #E8E2D2;

  --saffron: #F2B33D;
  --rumble: #F2B33D;
  --pip: #C99547;
  --basil: #6B8FBF;
  --sage: #A8C687;
  --benny: #9F5C7F;
  --mischef: #B47BC7;
  --joy: #E85A4F;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }

.display-xl { font-size: clamp(56px, 9vw, 156px); line-height: 0.96; letter-spacing: -0.035em; }
.display-l  { font-size: clamp(44px, 6.5vw, 104px); line-height: 1.0; letter-spacing: -0.03em; }
.display-m  { font-size: clamp(34px, 4.5vw, 68px); line-height: 1.05; letter-spacing: -0.025em; }
.display-s  { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

.italic-accent { font-style: italic; }

/* ---------- Layout ---------- */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

section { padding: clamp(80px, 12vh, 160px) 0; }

.section-tight { padding: clamp(60px, 8vh, 100px) 0; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: rgba(251, 248, 242, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif); font-size: 16px; font-style: italic;
  font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink); color: var(--cream) !important;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  font-family: var(--sans);
  border: 0; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(0,0,0,0.35); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { padding: 20px 36px; font-size: 16px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 64px 32px 40px;
  background: var(--cream);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand p { color: var(--ink-mute); margin-top: 16px; max-width: 28ch; font-size: 14px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1280px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mute);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- Utilities ---------- */

.divider {
  width: 100%; height: 1px; background: var(--line);
  max-width: 1280px; margin: 0 auto;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 148px 32px 100px; }
.legal h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.0; margin-bottom: 20px; }
.legal .updated {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 48px;
}
.legal h2 { font-size: 26px; margin: 52px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul { padding-left: 20px; }
.legal li { padding-left: 4px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .callout {
  border-left: 3px solid var(--joy);
  background: var(--cream-warm);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 6px 6px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
