:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --bg-card: #ffffff;
  --text: #0a0a0a;
  --text-muted: #737373;
  --text-soft: #a3a3a3;
  --border: #e5e5e5;
  --accent: #722F37;
  --accent-dark: #5A252B;
  --max-w: 1200px;
  --text-w: 720px;
  --section-py: 7.5rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(1.875rem, 3.75vw, 3rem); }
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }

/* Logo */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.logo-mark img {
  height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
header .logo-mark img { height: 72px; }
footer .logo-mark img { height: 36px !important; }
@media (max-width: 820px) {
  header .logo-mark img { height: 40px; }
  footer .logo-mark img { height: 28px !important; }
}
.logo-mark .sparkle {
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.header .logo-mark {
  font-size: 1.0625rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.nav-links a {
  transition: color 200ms ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--text);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-cta:hover {
  background: var(--bg);
  color: var(--text);
}

/* Sections */
section {
  padding: var(--section-py) 1.5rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bg-alt { background: var(--bg-alt); }
.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-label .num {
  color: var(--text-soft);
  margin-right: 0.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--text);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}
.cta-button:hover {
  background: var(--bg);
  color: var(--text);
}
.cta-button.outline {
  background: transparent;
  color: var(--text);
}
.cta-button.outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* Footer */
footer {
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a:hover { color: var(--text); }

/* Long-form content (legal pages) */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.prose .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
}
.prose h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-muted);
}
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.prose strong { color: var(--text); font-weight: 500; }
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}
.prose a:hover {
  text-decoration-color: var(--text);
}

/* Mobile */
@media (max-width: 820px) {
  :root {
    --section-py: 4.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  .header-inner {
    padding: 1rem 1.25rem;
  }
  section {
    padding: var(--section-py) 1.25rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  .prose h1 {
    font-size: 2.25rem;
  }
}
