:root {
  --ink: #1b2a4a;
  --accent: #c65b3c;
  --paper: #faf7f2;
  --text: #25282d;
  --muted: #8a8578;
  --rule: #e7e0d4;
  --track: #ece5d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---- type ---- */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 600; margin: .1em 0 .25em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 600; margin: 0 0 .4em; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 600; color: var(--accent); margin: 0 0 .2em;
}
.dek { font-size: 1.2rem; color: #4a4a4a; max-width: 38em; }

.hero { padding: 72px 0 8px; }

section { padding: 40px 0; border-top: 1px solid var(--rule); }
section.finding { border-top: none; }

.note { font-size: .85rem; color: var(--muted); margin-top: 1em; }

.method ul { list-style: none; padding: 0; margin: 0 0 1em; }
.method li { padding: 0 0 .7em 0; }

/* ---- example card (one lookup, site-style) ---- */
.card { margin: 1.6em 0 0; background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  padding: 20px 22px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.card-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.card-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.card-desc { font-size: .9rem; color: var(--muted); }
.card-bars { display: grid; gap: 7px; }
.cb-row { display: grid; grid-template-columns: 116px 1fr 28px; align-items: center; gap: 10px; }
.cb-model { font-size: .76rem; color: #444; text-align: right; }
.cb-track { background: var(--track); border-radius: 3px; height: 13px; overflow: hidden; }
.cb-fill { display: block; height: 100%; background: var(--ink); border-radius: 3px 0 0 3px; }
.cb-score { font-size: .76rem; font-weight: 600; color: var(--ink); text-align: right; }
.cb-score.zero { color: #c2bcae; font-weight: 500; }

/* ---- gradient scatter ---- */
#gradient { margin: 1.4em 0 0; }
#gradient svg { width: 100%; height: auto; display: block; }
.ax { font: 500 11px "Inter", sans-serif; fill: var(--muted); }
.ax-title { font: 600 11px "Inter", sans-serif; fill: var(--muted); }
.pt-label { font: 600 11px "Inter", sans-serif; fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.wiki-hit { cursor: pointer; }
.card-name .wiki-hit { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
#wiki-card { position: fixed; z-index: 50; display: none; width: 260px; max-width: 72vw;
  background: #fff; border: 1px solid var(--rule); border-radius: 9px; padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(20, 30, 50, .16); font-size: .82rem; line-height: 1.45;
  color: #3a3a3a; pointer-events: none; }
#wiki-card .wc-title { font-family: "Fraunces", Georgia, serif; font-weight: 600;
  color: var(--ink); font-size: 1.02rem; display: block; margin-bottom: 5px; }
#wiki-card img { float: right; width: 62px; height: 62px; object-fit: cover; border-radius: 6px;
  margin: 2px 0 6px 10px; }
#wiki-card .wc-foot { display: block; color: var(--muted); font-size: .72rem; margin-top: 7px; }
.hint { border-bottom: 1px dotted var(--muted); cursor: help; }
.mhint { cursor: help; border-bottom: 1px dotted rgba(27, 42, 74, .28); }
#tip { position: fixed; z-index: 50; display: none; width: 300px; max-width: 80vw; background: #fff;
  border: 1px solid var(--rule); border-radius: 9px; padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(20, 30, 50, .16); font: 400 .8rem/1.5 "Inter", sans-serif;
  color: #3a3a3a; pointer-events: none; }
#tip strong { color: var(--ink); }

/* ---- two-bar comparison (name experiment) ---- */
.predbars { margin: 1.4em 0 .2em; display: flex; flex-direction: column; gap: 10px; }
.pb-row { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 12px; }
.pb-label { font-size: .85rem; font-weight: 600; color: var(--ink); text-align: right; }
.pb-track { background: var(--track); border-radius: 4px; height: 22px; overflow: hidden; }
.pb-fill { height: 100%; border-radius: 4px 0 0 4px; }
.pb-val { font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ---- model lineup ---- */
.lineup { margin: 1.4em 0 .2em; display: flex; flex-direction: column; gap: 6px; }
.lu-row { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; }
.lu-name { font-size: .78rem; color: #444; text-align: right; }
.lu-track { background: var(--track); border-radius: 3px; height: 16px; overflow: hidden; }
.lu-fill { height: 100%; border-radius: 3px 0 0 3px; }
.lu-val { font-size: .78rem; font-weight: 600; color: var(--ink); text-align: right; }

footer { padding-top: 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }
footer .fine { font-size: .78rem; margin-top: .4em; }

@media (max-width: 520px) {
  .cb-row { grid-template-columns: 92px 1fr 26px; gap: 8px; }
  .pb-row { grid-template-columns: 110px 1fr 46px; gap: 8px; }
  .lu-row { grid-template-columns: 104px 1fr 26px; gap: 8px; }
  .card { padding: 16px; }
  .hero { padding: 48px 0 4px; }
}
