@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1F2EE;
  --panel: #E7EAE4;
  --grid: #D3D8D0;
  --rule: #CBD1C8;
  --ink: #18212C;
  --ink-soft: #2C3744;
  --graphite: #5D6670;
  --red: #B3261E;
  --red-wash: #F3E0DC;

  --sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --trace-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--paper);
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand svg {
  width: auto;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 12;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.brand svg .ghost { opacity: .38; }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }

.nav-access {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.nav-access:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(36px, 6vw, 88px); }

h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 540;
  max-width: 14ch;
}

.lede {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.5;
  color: var(--graphite);
}

@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: end;
  }
  .lede { margin-top: 0; padding-bottom: 6px; }
}

/* ---------- live panel ---------- */

.live { margin-top: clamp(40px, 6vw, 80px); }

.panel {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}

.panel-msg {
  padding: 32px 28px;
  color: var(--graphite);
}
.panel-msg.is-error { color: var(--red); }

.net {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr minmax(150px, 200px);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding: 22px clamp(18px, 2.4vw, 28px);
}
.net + .net { border-top: 1px solid var(--rule); }

.net-name {
  font-size: 1.1875rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.net-state {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.net-state .mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transform: translateY(-1px);
}
.net.is-alert .net-state { color: var(--red); }
.net.is-alert .net-state .mark { background: var(--red); border-color: var(--red); }
.net.is-quiet .net-state .mark { border-style: dashed; }

.trace-box {
  position: relative;
  min-width: 0;
}
.trace {
  display: block;
  width: 100%;
  height: var(--trace-h);
  overflow: visible;
}
.trace-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.trace .t-grid { stroke: var(--grid); stroke-width: 1; }
.trace .t-base { stroke: var(--rule); stroke-width: 1; }
.trace .t-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.trace .t-unknown { fill: none; stroke: var(--graphite); stroke-width: 1.2; stroke-dasharray: 2 5; }
.trace .t-event { stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.trace * { vector-effect: non-scaling-stroke; }

.pen {
  position: absolute;
  right: -4px;
  top: calc(var(--trace-h) * 0.58 - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.net.is-alert .pen { background: var(--red); }

.net-read { text-align: right; }
.net-height {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.net-meta {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--graphite);
}
.hash {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--graphite);
}
.legend { max-width: 72ch; }
.updated { flex: none; max-width: 46ch; text-align: right; font-variant-numeric: tabular-nums; }
.updated.is-stale, .updated.is-demo { color: var(--red); }

/* ---------- sections ---------- */

.section { padding-top: clamp(80px, 11vw, 152px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(16px, 4vw, 64px);
  align-items: baseline;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head p { color: var(--graphite); max-width: 52ch; }

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 540;
}

h3 {
  font-size: 1.125rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* signals */

.signal-list { border-top: 1px solid var(--rule); }
.signal {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(16px, 4vw, 64px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.signal p { margin-top: 4px; color: var(--graphite); max-width: 54ch; }
.glyph {
  width: min(100%, 240px);
  height: auto;
  overflow: visible;
}
.glyph path { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.glyph .g-ink { stroke: var(--ink); }
.glyph .g-red { stroke: var(--red); }
.glyph .g-dash { stroke-dasharray: 2 4; }

/* log */

.log { border-top: 1px solid var(--rule); }
.log li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 3.2fr;
  gap: clamp(12px, 3vw, 40px);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.log time { color: var(--graphite); font-variant-numeric: tabular-nums; }
.log .where { font-weight: 500; }
.log .what { max-width: 70ch; }
.log li.is-alert .what { color: var(--red); }
.log li.is-alert .what::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-right: 10px;
  background: var(--red);
  vertical-align: -0.1em;
}
.log .seen { color: var(--graphite); }
.log-empty { padding: 20px 0; color: var(--graphite); border-bottom: 1px solid var(--rule); }

/* access */

.access h2 { max-width: 18ch; }
.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.audiences p { margin-top: 6px; color: var(--graphite); }

.offer {
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 60ch;
}
.offer > p:first-child { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; }
.cta-wrap[hidden] { display: none; }
.cta {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 540;
}
.cta:hover { background: var(--ink-soft); }
.cta-note { margin-top: 12px; font-size: 0.875rem; color: var(--graphite); }

/* footer */

.site-foot {
  margin-top: clamp(96px, 12vw, 168px);
  padding-bottom: 48px;
}
.foot-inner {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--graphite);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .net.is-new .trace { animation: draw 1.6s cubic-bezier(.3, .6, .2, 1) both; }
  .net.is-new + .net.is-new .trace { animation-delay: .18s; }
  .pen { animation: pen 2.4s ease-in-out infinite; }
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pen {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .net {
    grid-template-columns: 1fr auto;
    grid-template-areas: "id read" "trace trace";
    row-gap: 14px;
    align-items: end;
  }
  .net-id { grid-area: id; }
  .net-read { grid-area: read; }
  .trace-box { grid-area: trace; }
  .section-head, .signal { grid-template-columns: 1fr; }
  .signal { gap: 10px; }
  .glyph { width: 180px; }
  .audiences { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  :root { --trace-h: 64px; }
  .panel-foot { flex-direction: column; gap: 8px; }
  .updated { text-align: left; }
  .log li { grid-template-columns: 1fr auto; row-gap: 4px; }
  .log .what { grid-column: 1 / -1; }
  .log .where { text-align: right; }
  .nav-access { padding: 7px 12px; font-size: 0.875rem; }
  .net-meta .hash { display: none; }
}

/* ---------- hashrate ---------- */

.hashrate[hidden], .voices[hidden] { display: none; }

.hr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.hr-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 22px clamp(18px, 2vw, 24px) 16px;
  min-width: 0;
}

.hr-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.hr-head h3 { grid-column: 1; }
.hr-now {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hr-delta { grid-column: 1; font-size: 0.875rem; color: var(--graphite); min-height: 1.4em; }
.hr-wait { margin-top: 28px; font-size: 0.9375rem; color: var(--graphite); }

.hr-plot {
  position: relative;
  height: 132px;
  margin-top: 22px;
  padding-left: 66px;
  cursor: crosshair;
  touch-action: pan-y;
}
.hr-inner { position: relative; height: 100%; }
.hr-plot:focus-visible { outline-offset: 6px; }
.hr-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hr-plot svg * { vector-effect: non-scaling-stroke; }
.hr-grid-line { stroke: var(--grid); stroke-width: 1; }
.hr-base { stroke: var(--rule); stroke-width: 1; }
.hr-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hr-area { fill: var(--ink); opacity: .07; }
.hr-event { stroke: var(--red); stroke-width: 2; stroke-linecap: round; }

.hr-y {
  position: absolute;
  left: 0;
  width: 58px;
  text-align: right;
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1;
  transform: translateY(-50%);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hr-y-top { top: 0; }
.hr-y-mid { top: 50%; }
.hr-y-zero { top: 100%; }

.hr-end, .hr-pin {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
}
.hr-pin { box-shadow: 0 0 0 2px var(--panel); }
.hr-cross {
  position: absolute;
  top: -6px;
  bottom: 0;
  width: 1px;
  background: var(--graphite);
  pointer-events: none;
}
.hr-tip {
  position: absolute;
  top: 2px;
  transform: translateX(10px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  z-index: 2;
}
.hr-tip.flip { transform: translateX(calc(-100% - 10px)); }
.hr-tip strong { display: block; font-weight: 560; font-variant-numeric: tabular-nums; }
.hr-tip span { color: var(--graphite); }
.hr-cross[hidden], .hr-pin[hidden], .hr-tip[hidden] { display: none; }

.hr-x {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-left: 66px;
  font-size: 0.75rem;
  color: var(--graphite);
}

.hr-table { margin-top: 12px; font-size: 0.8125rem; color: var(--graphite); }
.hr-table summary { cursor: pointer; width: max-content; }
.hr-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hr-table th, .hr-table td { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.hr-table th { font-weight: 500; color: var(--ink); }
.hr-table td + td, .hr-table th + th { text-align: right; }

/* ---------- testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; max-width: 46ch; }
.quote figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--graphite); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 560; }
