/* Carta site — the app's palette (packages/shared/src/tokens.ts) and bundled faces
   (Instrument Serif for display, Hanken Grotesk for text). Self-hosted: the CSP is
   'self'-only. Light-only, like the app (ADR 0006). */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif_400Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f5ecde;
  --cream-raised: #fbf6ee;
  --espresso: #2a2018;
  --terracotta: #c4602f;
  --terracotta-deep: #9f4a22;
  --stone: #6f604e; /* body text: 5.1:1 on cream */
  --border: #e4d6c1;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: 'Hanken Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}
header.site a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--espresso);
  text-decoration: none;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
}
header.site img { width: 36px; height: 36px; border-radius: 9px; }
header.site nav { display: flex; gap: 18px; font-size: 15px; }

a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 9vw, 64px); margin: 48px 0 12px; }
h2 { font-size: 28px; margin: 40px 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }

.lede { font-size: 20px; color: var(--stone); margin: 0 0 32px; }
.warm { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 24px; }

.features { display: grid; gap: 12px; margin: 32px 0; padding: 0; list-style: none; }
.features li {
  background: var(--cream-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.features strong { display: block; font-weight: 600; }

.badge {
  display: inline-block;
  background: var(--espresso);
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 15px;
}

.doc p, .doc li { color: var(--espresso); }
.doc ul { padding-left: 22px; }
.meta { color: var(--stone); font-size: 15px; }
.langs { font-size: 15px; margin: 0 0 8px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  margin: 64px 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--stone);
  font-size: 14px;
}
footer.site a { color: var(--stone); }
