/* Grabtier public site: the console's look (light ground, heat colours, grotesque + mono) set for reading and comparing. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }
:root {
  --ground: #eceef1; --panel: #fff; --wash: #f6f7f9; --line: #d9dce2; --line-2: #c3c8d0;
  --ink: #15171c; --ink-2: #4b505a; --ink-3: #636a75; --lime: #c6f432; --good: #1d7a3e;
  --sans: "Bricolage Grotesque", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 3vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--lime); }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-3); }

.top { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 60px; padding: 0 var(--pad); }
.brand { flex: none; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.mark i { width: 6px; border-radius: 3px; }
.mark i:nth-child(1) { height: 20px; background: #c6f432; } .mark i:nth-child(2) { height: 14px; background: #ffd84d; } .mark i:nth-child(3) { height: 9px; background: #ff8a7a; }
.needs-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.needs-nav a { padding: 6px 11px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.needs-nav a:hover { background: var(--wash); color: var(--ink); }
.needs-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

main { padding: 0 var(--pad) 72px; max-width: 1400px; margin: 0 auto; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(40px, 7.4vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.045em; }
.hero.small h1 { font-size: clamp(34px, 5vw, 64px); }
.lede { margin-top: 24px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; font-size: 14px; }
.stats span { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.stats b { font-size: 16px; }
.sh { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.025em; margin: 40px 0 16px; }

/* need tiles: one heat colour each, count big */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.needs li, .feed li { display: flex; }
.need { flex: 1; display: grid; gap: 2px; min-height: 150px; padding: 18px 20px; border-radius: 18px; background: var(--heat); align-content: end; transition: transform .15s; }
.need:hover { transform: translateY(-3px); }
.need .n { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.04em; margin-bottom: auto; }
.need b { font-size: 22px; letter-spacing: -.02em; }
.need span:last-child { font-size: 14px; color: rgb(21 23 28 / .75); }

/* feed cards */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s; }
.card a:hover { border-color: var(--ink); }
.tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--heat); font: 600 12px var(--mono); }
.card h3 { font-size: 22px; letter-spacing: -.02em; }
.gist { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.fact { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 12px/1.6 var(--mono); color: var(--ink-2); white-space: nowrap; }
.fact.good { border-color: #9fd36b; background: #effbe0; color: var(--good); }
.fact.dim { border-style: dashed; color: var(--ink-3); }

/* comparison table + filters */
.filters { position: sticky; top: 61px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; background: var(--ground); }
.find input { width: 300px; max-width: 100%; height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font: inherit; }
.find input:focus { outline: none; border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font-weight: 600; cursor: pointer; user-select: none; }
.chip input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.chip:has(input:checked) { background: var(--lime); border-color: #a9d21f; }
#shown { margin-left: auto; font-size: 13px; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--wash); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cmp tbody th { font-size: 18px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.cmp tbody th a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.cmp tbody th a:hover { text-decoration-color: var(--ink); }
.cmp td.gist { min-width: 260px; }
.cmp td.gist small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.cmp td .fact { margin: 0 4px 4px 0; display: inline-block; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover > * { background: #fafbfc; }
.empty { padding: 24px 16px; color: var(--ink-2); }

.foot { padding: 32px var(--pad) 48px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-width: 1400px; margin: 0 auto; color: var(--ink-2); font-size: 15px; }
.foot p:first-child { max-width: 70ch; }
.foot .mono { font-size: 13px; }
.foot a { text-decoration: underline; }

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 6px; }
  .needs-nav { width: 100%; }
  .filters { position: static; }
  .find, .find input { width: 100%; }
  #shown { margin-left: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp td { margin-top: 6px; }
  .cmp td.gist { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
