/* Handoff design tokens — the In Action language (Rev B, candidate N1), codified per issue #1.
   Canonical source: kid.studio/materials/handoff-in-action.html. Rules: docs/design.md.
   Every hex in the product lives in this file. */

/* ---------- fonts (self-hosted, latin subset; no Google Fonts request in product) ---------- */

@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/lato-900.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/plexmono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/plexmono-500.woff2') format('woff2'); }

/* ---------- palette ---------- */

:root {
  --paper:  #FFFFFF;  /* sheet */
  --ink:    #14171B;  /* text, structural rules, dark grounds */
  --muted:  #6E747C;  /* secondary text, labels */
  --line:   #D9DCE0;  /* hairline borders */
  --accent: #E4572E;  /* stamp orange: CTAs, section bands, the mark's leg */
  --tint:   #FDF1EC;  /* accent tint grounds */
  --ground: #EDE9E1;  /* page behind the sheet */
  --cell:   #FAFAF8;  /* card/cell fill */

  --font-sans: 'Lato', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --sheet-shadow: 0 1px 3px rgba(20, 23, 27, .06);  /* the only shadow in the system */
}

/* ---------- base type ---------- */

html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
}
* { box-sizing: border-box; }

h1, .h1 {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 .3em;
}
.deck { font-size: 1.02rem; color: var(--muted); margin: 0; max-width: 64ch; }

/* ---------- furniture ---------- */

/* mono furniture: always uppercase, letterspaced, small */
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* document meta line: justified between, hairline-weight mono */
.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta b { color: var(--ink); font-weight: 500; }

/* 1px ink rule under the meta line */
.rule { height: 1px; background: var(--ink); margin: 10px 0 26px; }
.rule.bot { margin: 30px 0 12px; }

/* section band: mono, accent, 2px ink top border */
.secband {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

/* the sheet: paper on ground */
.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sheet-shadow);
}

/* cards / cells */
.cell {
  background: var(--cell);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
}
.clab {
  display: block;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* framed feature block */
.frame { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }

/* pills */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: .55rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: .5rem 1.2rem; }

/* microcopy under CTAs */
.microcopy {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .6rem;
  color: var(--muted);
}

/* footnote prose */
.fnote { color: var(--muted); font-size: .95rem; margin: 6px 0 16px; max-width: 62ch; }
.fnote b { color: var(--ink); }

/* hub badge: closed hairline lane + owner initial (stamp orange, Lato 900);
   filled orange dot when unnamed */
.hubbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: .9px solid var(--ink);   /* 2.6 weight at a 100 box */
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}
.hubbadge.unnamed { border: 0; background: var(--accent); width: 12px; height: 12px; }

/* type-only credit for mono/uppercase furniture — the ensō never enters mono capitals */
.credit-mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
