/* insight.wamemba.me — brand tokens from brand/design-system/tokens (colours, type, radii,
   shadows). Crayons are solid fills only; all text is graphite. Fonts are self-hosted. */
@font-face { font-family: 'Goudy Bookletter 1911'; src: url('fonts/goudy-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('fonts/atkinson-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('fonts/atkinson-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --sky: #8FC1EA; --leaf: #96C99B; --blush: #F3B1C0; --tangerine: #F4A35C; --lemon: #F6D44E;
  --paper: #F7F0E3; --paper-light: #FAF5EC; --paper-white: #FFFDF8; --biscuit: #E9E1D3;
  --graphite: #3B3631; --graphite-2: #4A453E; --graphite-3: #6B655C;
  --hairline: rgba(59, 54, 49, .18); --border-strong: rgba(59, 54, 49, .5);
  --words: 'Goudy Bookletter 1911', Georgia, serif;
  --ui: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(0,0,0,.06), 0 14px 34px rgba(59,54,49,.12);
  --shadow-float: 0 10px 24px rgba(59,54,49,.14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--graphite); font: 400 18px/1.6 var(--ui); }
a { color: var(--graphite); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--words); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 .25em; }
h2 { font-size: clamp(27px, 4vw, 34px); margin: 2.2em 0 .5em; scroll-margin-top: 24px; }
h3 { font-size: 24px; margin: 1.6em 0 .4em; }
h4 { font-size: 20px; margin: 1.4em 0 .3em; }
p, li { max-width: 68ch; }
strong { font-weight: 600; }
code { font: 500 .88em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-light); border: 1px solid var(--hairline); border-radius: 6px; padding: .1em .35em; overflow-wrap: anywhere; }
pre { background: var(--paper-white); border: 1px solid var(--hairline); border-radius: 13px; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 40px; }
.page { padding-top: 48px; }
.flush { margin-top: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper-white); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.label { font: 600 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-3); margin: 0 0 10px; }
.small { font-size: 15px; color: var(--graphite-3); }

/* Header and footer */
.top { padding-block: 22px; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 112px; height: auto; display: block; }
.brand span { font: 600 13px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-3); padding-top: 6px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--graphite); }
.foot { margin-top: 96px; padding-block: 40px 56px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--graphite-2); }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Home */
.hero { padding-block: 64px 24px; }
.hero p.lede { font-size: 21px; max-width: 46ch; color: var(--graphite-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.card { border-radius: 18px; padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.card:hover { box-shadow: var(--shadow-card); }
.card h3 { margin: 0; font-size: 30px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; font-size: 16px; }
.card .meta { margin-top: auto; font-size: 14px; color: var(--graphite-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.fill-sky { background: var(--sky); } .fill-leaf { background: var(--leaf); } .fill-blush { background: var(--blush); }
.fill-tangerine { background: var(--tangerine); } .fill-lemon { background: var(--lemon); }
.list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--hairline); max-width: none; }
.list li { max-width: none; border-bottom: 1px solid var(--hairline); padding: 16px 4px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }
.list .t { font-size: 19px; font-weight: 500; }
.list .t a { text-decoration: none; }
.list .t a:hover { text-decoration: underline; }
.list .d { grid-column: 1 / -1; font-size: 15px; color: var(--graphite-3); }
.list .v { font-size: 14px; color: var(--graphite-2); white-space: nowrap; }

/* Document page */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding-top: 48px; }
.doc main { min-width: 0; }
.docmeta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; font-size: 15px; color: var(--graphite-2); margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font: 600 13px/1.3 var(--ui); background: var(--paper-white); border: 1px solid var(--hairline); white-space: nowrap; }
.pill.sky { background: var(--sky); border-color: transparent; } .pill.leaf { background: var(--leaf); border-color: transparent; }
.pill.blush { background: var(--blush); border-color: transparent; } .pill.tangerine { background: var(--tangerine); border-color: transparent; }
.pill.lemon { background: var(--lemon); border-color: transparent; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; max-height: calc(100vh - 48px); overflow: auto; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--graphite-2); }
.toc a:hover { color: var(--graphite); text-decoration: underline; }
.toc .history { display: inline-block; margin-top: 18px; }
.body > p:first-child { font-size: 21px; color: var(--graphite-2); }
blockquote { margin: 18px 0; padding: 0; }
blockquote p { margin: 0; }
blockquote.in-short { background: var(--paper-white); border-radius: 13px; padding: 14px 18px; max-width: 68ch; box-shadow: 0 1px 0 var(--hairline); }
blockquote.in-short strong:first-child { font-family: var(--words); font-weight: 400; font-size: 20px; margin-right: 4px; }
blockquote.note { background: var(--lemon); border-radius: 18px; padding: 18px 22px; max-width: 68ch; }
blockquote.quote { border-radius: 13px; padding: 14px 18px; background: var(--paper-light); }
.table { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--hairline); border-radius: 13px; background: var(--paper-white); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
th { font: 600 13px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite-3); background: var(--paper-light); }
tr:last-child td { border-bottom: 0; }
.banner { background: var(--lemon); border-radius: 18px; padding: 16px 20px; margin: 0 0 24px; max-width: 68ch; }

/* History and redlines */
.versions { list-style: none; padding: 0; margin: 24px 0; max-width: none; }
.version { border: 1px solid var(--hairline); border-radius: 18px; background: var(--paper-white); padding: 20px 22px; margin-bottom: 16px; max-width: none; }
.version header { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.version h3 { margin: 0; font-size: 26px; }
.version .changes { margin: 10px 0 6px; }
.version .links { font-size: 15px; display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--graphite-2); }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 500; font-size: 16px; }
.compare { background: var(--paper-white); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; margin: 24px 0; }
.compare form { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: end; }
.compare label { display: grid; gap: 4px; font-size: 14px; color: var(--graphite-2); }
.compare select { font: 400 16px var(--ui); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--paper); color: var(--graphite); min-height: 44px; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; min-height: 44px; }
.redline { margin-top: 18px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.redline p, .redline .line { margin: 0 0 10px; max-width: 72ch; white-space: pre-wrap; }
.redline .h { font-family: var(--words); font-size: 22px; margin-top: 18px; }
.redline .li::before { content: '•  '; }
.chg { border: 1.5px dashed var(--border-strong); border-radius: 13px; padding: 10px 14px; margin: 8px 0 12px; max-width: 76ch; background: var(--paper); }
ins { background: var(--leaf); text-decoration: underline; text-decoration-thickness: 1px; border-radius: 4px; padding: 0 2px; }
del { background: var(--blush); text-decoration: line-through; border-radius: 4px; padding: 0 2px; }
.fold { margin: 8px 0; }
.fold summary { font-size: 14px; color: var(--graphite-3); font-weight: 400; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Register */
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 20px 0; }
.vendor { border: 1px solid var(--hairline); border-radius: 18px; background: var(--paper-white); padding: 20px 22px; }
.vendor h3 { margin: 0 0 6px; font-size: 26px; }
.vendor dl { margin: 12px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 15px; }
.vendor dt { color: var(--graphite-3); }
.vendor dd { margin: 0; overflow-wrap: anywhere; }
.vendor ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; order: -1; border: 1px solid var(--hairline); border-radius: 13px; padding: 14px 18px; margin-bottom: 8px; background: var(--paper-light); }
  .side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  body { font-size: 17px; }
  .hero { padding-top: 40px; }
  .list li { grid-template-columns: 1fr; }
  .table { border: 0; background: none; overflow: visible; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--hairline); border-radius: 13px; background: var(--paper-white); margin-bottom: 10px; padding: 6px 0; }
  .table td { border: 0; padding: 6px 14px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font: 600 12px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite-3); }
  .vendor dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .top, .foot, .toc, .compare { display: none; }
  .doc { display: block; padding: 0; }
  a { text-decoration: none; }
}
