/* Manifold website — design tokens.
   Single source of truth Claude Design will read to derive the design system.
   Mirrors claude-design-input/03-design-direction.md.
   Edit only this file when changing palette or type — never inline values. */

:root {
  /* — Palette: light mode defaults — */
  --manifold-amber:        #F2B43A;
  --manifold-amber-deep:   #C68918;
  --manifold-cream:        #FBE8B5;
  --manifold-sand:         #F5EFE3;
  --manifold-parchment:    #FBF8F1;
  --manifold-ink:          #141413;
  --manifold-ink-2:        #3A332A;
  --manifold-brick:        #B5462C;
  --manifold-sage:         #7A8763;

  /* — Semantic tokens (theme-aware) — */
  --color-bg:              var(--manifold-parchment);
  --color-bg-elevated:     #FFFFFF;
  --color-bg-tinted:       var(--manifold-sand);
  --color-text:            var(--manifold-ink);
  --color-text-secondary:  var(--manifold-ink-2);
  --color-accent:          var(--manifold-amber);
  --color-accent-hover:    var(--manifold-amber-deep);
  --color-highlight:       var(--manifold-cream);
  --color-danger:          var(--manifold-brick);
  --color-verified:        var(--manifold-sage);
  --color-hairline:        rgba(20, 20, 19, 0.10);

  /* — Typography — */
  --font-sans:             "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:             "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif:            "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;

  --type-display-size:     56px;
  --type-display-weight:   600;
  --type-display-tracking: -0.02em;
  --type-display-leading:  1.05;

  --type-h2-size:          32px;
  --type-h2-weight:        500;

  --type-body-size:        17px;
  --type-body-weight:      400;
  --type-body-leading:     1.55;

  --type-eyebrow-size:     12px;
  --type-eyebrow-weight:   500;
  --type-eyebrow-tracking: 0.06em;

  /* — Layout — */
  --space-1:               4px;
  --space-2:               8px;
  --space-3:               12px;
  --space-4:               16px;
  --space-5:               24px;
  --space-6:               32px;
  --space-7:               48px;
  --space-8:               64px;
  --space-9:               96px;

  --radius-sm:             6px;
  --radius-md:             10px;
  --radius-lg:             16px;

  --container-max:         1180px;
  --content-max:           720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:              #15110A;             /* manifold/dusk */
    --color-bg-elevated:     #1F1810;
    --color-bg-tinted:       #1F1810;
    --color-text:            #FAF9F5;             /* manifold/parchment-dark */
    --color-text-secondary:  rgba(250, 249, 245, 0.65);
    --color-accent:          #EFB13B;             /* amber, very slightly desaturated for dark */
    --color-accent-hover:    #C68918;
    --color-hairline:        rgba(250, 249, 245, 0.12);
  }
}

/* — Base reset and document defaults — */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); margin: 0; }
h1 {
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  letter-spacing: var(--type-display-tracking);
  line-height: var(--type-display-leading);
}
h2 { font-size: var(--type-h2-size); font-weight: var(--type-h2-weight); }

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

a { color: var(--color-accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* — Buttons — */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--manifold-ink);
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--manifold-parchment); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-hairline);
}
.btn-ghost:hover { background: var(--color-bg-tinted); text-decoration: none; }
