

:root {

  --paper:        #FAFAF8;
  --paper-2:      #F3EFE7;
  --ink:          #1C1C1E;
  --ink-2:        #6B6862;
  --ink-3:        #B8B3AB;
  --rule:         #E8E4DC;
  --accent:       #C45E3E;
  --accent-ink:   #FAFAF8;
  --accent-soft:  #F5E5DE;

  --bg:           var(--paper);
  --surface:      var(--paper);
  --surface-2:    var(--paper-2);
  --text:         var(--ink);
  --text-muted:   var(--ink-2);
  --text-subtle:  var(--ink-3);
  --border:       var(--rule);
  --selection-bg: var(--accent-soft);
  --link:         var(--ink);
  --link-hover:   var(--accent);

  --font-serif:   "Newsreader", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-text:    "Spectral", "Charter", "Iowan Old Style", Georgia, serif;
  --font-sans:    var(--font-text);
  --font-sys:     -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display-1: clamp(48px, 6.4vw, 88px);
  --fs-display-2: clamp(36px, 4.2vw, 56px);
  --fs-h1:        40px;
  --fs-h2:        28px;
  --fs-h3:        22px;
  --fs-lead:      20px;
  --fs-body:      17px;
  --fs-ui:        15px;
  --fs-small:     13px;
  --fs-micro:     11px;

  --lh-tight:     1.05;
  --lh-snug:      1.2;
  --lh-body:      1.6;
  --lh-ui:        1.45;

  --ls-display:  -0.02em;
  --ls-body:      0;
  --ls-eyebrow:   0.14em;

  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  --radius-1: 6px;
  --radius-2: 12px;
  --radius-3: 20px;
  --radius-full: 999px;

  --shadow-1: 0 1px 2px rgba(28, 28, 30, 0.04), 0 1px 1px rgba(28, 28, 30, 0.03);
  --shadow-2: 0 12px 32px -12px rgba(28, 28, 30, 0.12), 0 2px 6px rgba(28, 28, 30, 0.05);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med:  240ms;
  --dur-slow: 400ms;

  --max-w: 1200px;
  --gutter: 72px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
}

::selection { background: var(--selection-bg); color: var(--ink); }

.h-display, h1.display, .display-1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display-1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  margin: 0;
}
.display-2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display-2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  margin: 0;
}
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: 0;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
}
p { margin: 0 0 1em; }
small, .small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--link-hover); }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-9) 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
