:root {
  --bg: #FAFAF7;
  --ink: #0E0E0C;
  --ink-soft: #2B2B27;
  --muted: #6B6B66;
  --muted-light: #A8A8A1;
  --accent: #465A7D;
  --rule: rgba(14, 14, 12, 0.10);

  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container-max: 1320px;
  --pad-x: 2.5rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ HEADER ============ */
.site-header {
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* ============ HERO ============ */
.hero {
  padding: 3rem 0 5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-headline {
  font-weight: 500;
  font-size: clamp(2.75rem, 8.5vw, 7.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 16ch;
}

.hero-headline .line { display: block; }

.hero-headline .accent { color: var(--accent); }

/* ============ ABOUT ============ */
.about {
  padding: 5rem 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .lede {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2rem;
  max-width: 22ch;
}

.about-text .lede em {
  font-style: normal;
  color: var(--accent);
}

.about-text p:not(.lede) {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 50ch;
}

.about-text p:not(.lede):last-child { margin-bottom: 0; }

.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: auto;
  padding: 1.25rem 0 1rem;
  border-top: 1px solid var(--rule);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.footer-contact a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer-contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-contact .sep {
  color: var(--muted-light);
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-meta a:hover { color: var(--ink); }

.footer-legal {
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  color: var(--muted-light);
  line-height: 1.5;
}

/* ============ MOTION ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-rise {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-headline .line {
  animation: line-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-headline .line:nth-child(1) { animation-delay: 0.10s; }
.hero-headline .line:nth-child(2) { animation-delay: 0.20s; }
.hero-headline .line:nth-child(3) { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ PRIVACY PAGE ============ */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.page-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.page-title {
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.prose-section {
  padding: 4rem 0 6rem;
}

.prose-section .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.prose-toc {
  grid-column: 1 / 4;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.prose-toc-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose-toc ol {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.55;
  counter-reset: toc;
}

.prose-toc ol li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
  padding-left: 2.5em;
  position: relative;
}

.prose-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.prose-toc a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

.prose-toc a:hover { color: var(--accent); }

.prose-content {
  grid-column: 5 / 13;
  max-width: 64ch;
  counter-reset: psec;
}

.prose-content section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.prose-content section:last-child { margin-bottom: 0; }

.prose-content h2 {
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  counter-increment: psec;
}

.prose-content h2::before {
  content: counter(psec, decimal-leading-zero);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.prose-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.prose-content p:last-child { margin-bottom: 0; }

.prose-content ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose-content li { margin-bottom: 0.375rem; }

.prose-content a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

.prose-content a:hover { opacity: 0.7; }

.prose-content strong {
  font-weight: 600;
  color: var(--ink);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  :root { --pad-x: 1.5rem; }

  .site-header { padding: 1.25rem 0; }
  .brand-logo { height: 32px; }

  .hero { padding: 3rem 0 4.5rem; }

  .about { padding: 4rem 0; }

  .about .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-meta {
    flex-direction: row;
    gap: 1.25rem;
  }

  /* Privacy responsive */
  .page-hero { padding: 2.5rem 0 2rem; }
  .prose-section { padding: 2.5rem 0 4rem; }
  .prose-section .container { grid-template-columns: 1fr; }
  .prose-toc { display: none; }
  .prose-content { grid-column: 1; }
}
