/* For the nerds (/nerds/). Tokens + components from site.css; the hero from guide.css. */
.nerd-hero::before { background: radial-gradient(50% 70% at 15% 0%, rgba(60, 186, 208, .14), transparent 70%), radial-gradient(40% 55% at 90% 30%, rgba(169, 139, 255, .09), transparent 70%); }
.nerd-hero h1 { font-size: clamp(44px, 6vw, 84px); }
.nerd-hero .lead b { color: var(--tx); font-weight: 650; }
.nerd-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 960px) { .nerd-hero-grid { grid-template-columns: 1fr; } }

/* spec sheet */
.spec { border-radius: 16px; border: 1px solid var(--line-2); background: #05080a; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(60, 186, 208, .45), 0 0 0 1px rgba(0, 0, 0, .6); }
.spec-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #0e1418; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--mono); color: var(--tx-3); }
.spec-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3237; }
.spec-bar i:nth-child(1) { background: #ff5f57; } .spec-bar i:nth-child(2) { background: #febc2e; } .spec-bar i:nth-child(3) { background: #28c840; }
.spec-bar > span { margin-left: 8px; }
.spec dl { margin: 0; padding: 14px 18px 18px; font: 500 13.5px/1.55 var(--mono); }
.spec dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.spec dl > div:last-child { border-bottom: 0; }
.spec dt { color: var(--teal-hi); }
.spec dd { margin: 0; color: #cfdbe0; }
.spec .zero dt { color: #ff8b95; }
.spec .zero dd { color: var(--green); font-weight: 700; }
.spec .zero dd::before { content: "\2713\00a0"; }

/* stats band */
.nerd-stats-band { padding: 10px 0 20px; }
.stats-note { margin: 12px 0 0; text-align: right; }

/* native vs electron */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs-col { border-radius: var(--r-l); padding: 24px 26px; border: 1px solid var(--line-2); }
.vs-col h3 { font-size: 20px; font-stretch: 106%; margin-bottom: 14px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.vs-col li { position: relative; padding-left: 28px; color: var(--tx-2); font-size: 15.5px; }
.vs-col li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font: 800 12px/1 var(--mono); }
.them { background: rgba(255, 255, 255, .02); }
.them h3 { color: var(--tx-2); }
.them li::before { content: "\00b7"; color: var(--tx-3); border: 1px solid var(--line-2); }
.us { background: linear-gradient(180deg, rgba(60, 186, 208, .08), rgba(60, 186, 208, .02)); border-color: rgba(60, 186, 208, .35); box-shadow: 0 30px 80px -40px rgba(60, 186, 208, .5); }
.us li { color: var(--tx); }
.us li::before { content: "\2713"; color: #031418; background: var(--teal); }
.nerd-caveat { margin-top: 18px; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* the stack */
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.key.ours { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }
.key.theirs { background: #3c464d; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 0; align-items: stretch; }
.stack-col { display: grid; gap: 8px; align-content: start; }
.stack-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-stretch: 108%; margin: 0 0 6px; }
.stack-title img, .stack-title svg { width: 24px; height: 24px; color: var(--tx-2); }
.layer { position: relative; border-radius: 13px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); padding: 13px 15px; display: grid; gap: 6px; }
.layer > b { font-size: 14.5px; font-weight: 700; }
.layer > span { font-size: 13.5px; line-height: 1.45; padding-left: 16px; position: relative; }
.layer > span::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border-radius: 3px; }
.layer > .ours { color: #d7f3f8; }
.layer > .ours::before { background: var(--teal); box-shadow: 0 0 8px var(--teal-glow); }
.layer > .theirs { color: var(--tx-3); font-family: var(--mono); font-size: 12.5px; }
.layer > .theirs::before { background: #3c464d; }
.layer.os { background: rgba(255, 255, 255, .015); border-style: dashed; }
.stack-wire { display: grid; align-content: center; gap: 30px; padding: 0 12px; }
.wire-item { display: grid; gap: 7px; justify-items: stretch; text-align: center; }
.wire-item > span { font: 600 10.5px/1.35 var(--mono); letter-spacing: .03em; color: var(--tx-2); }
.wire { position: relative; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--teal) 18%, var(--teal) 82%, transparent); }
.wire-item.media .wire { background: linear-gradient(90deg, transparent, var(--violet) 18%, var(--violet) 82%, transparent); }
.wire::before, .wire::after { content: ""; position: absolute; top: -4px; width: 0; height: 0; border: 5px solid transparent; }
.wire::before { left: 4px; border-right-color: var(--teal); border-left: 0; }
.wire::after { right: 4px; border-left-color: var(--teal); border-right: 0; }
.wire-item.media .wire::before { border-right-color: var(--violet); } .wire-item.media .wire::after { border-left-color: var(--violet); }
.stack-web { margin-top: 22px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: center; }
.stack-web .stack-title { margin: 0; }
@media (max-width: 960px) {
  .stack { grid-template-columns: 1fr; }
  .stack-wire { grid-template-columns: 1fr 1fr; padding: 24px 0 20px; gap: 18px; }
  .wire-item.media { grid-template-rows: auto auto; }
  .wire-item.media > span { order: -1; }
  .stack-web { grid-template-columns: 1fr; }
}

/* built from scratch */
.scratch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scratch .card { padding: 22px 22px 20px; }
.scratch .card h3 { font-size: 18px; font-stretch: 106%; margin-bottom: 9px; letter-spacing: -.01em; }
.scratch .card h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); margin-bottom: 14px; }
.scratch .card p { margin: 0; color: var(--tx-2); font-size: 15px; line-height: 1.55; }
.scratch .card.wide { grid-column: 1 / -1; }
.scratch code { font-size: .85em; }
@media (max-width: 1000px) { .scratch { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .scratch { grid-template-columns: 1fr; } }

/* built on */
.shoulders { display: flex; flex-wrap: wrap; gap: 9px; }
.shoulders .chip { height: 34px; padding: 0 14px; font-size: 13px; color: var(--tx-2); transition: all .2s; }
.shoulders .chip:hover { color: #1b1300; background: var(--gold); border-color: var(--gold); }

/* the long way here */
.history-stats .stat b { font-size: clamp(34px, 3.6vw, 52px); }
.history-note { margin: 12px 0 30px; }
.history-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .history-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 22px 26px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); position: relative; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--pink); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 2px; background: rgba(232, 124, 192, .25); }
.timeline li:last-child::after { display: none; }
.timeline li.now::before { background: var(--pink); box-shadow: 0 0 0 4px rgba(232, 124, 192, .18), 0 0 14px var(--pink); }
.timeline b { display: block; font-size: 15px; color: var(--tx); }
.timeline span { display: block; color: var(--tx-2); font-size: 15px; margin-top: 2px; }
.timeline span span { display: inline; margin: 0; }
.thanks { border-radius: var(--r-l); padding: 26px 28px; border: 1px solid rgba(232, 185, 35, .35);
  background: radial-gradient(80% 90% at 100% 0%, rgba(232, 185, 35, .12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  box-shadow: 0 40px 100px -50px rgba(232, 185, 35, .45); }
.thanks h3 { font-size: clamp(26px, 2.6vw, 34px); font-stretch: 112%; margin: 0 0 14px; letter-spacing: -.02em; }
.thanks p { color: var(--tx-2); font-size: 16px; }
.thanks .hud { margin-bottom: 14px; }
.thanks .thanks-sign { color: var(--tx); font-weight: 650; margin: 0; }
