:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --ink: #ece6dc;
  --ink-2: #b9b1a5;
  --muted: #8a8277;
  --line: #2a2622;
  --line-2: #3a352f;
  --red: #e5484d;
  --red-dim: #7a2326;
  --amber: #d9a441;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
code { font-family: var(--mono); font-size: .9em; color: var(--ink); }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.brand { font: 600 13px/1 var(--mono); letter-spacing: .32em; text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

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

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 72px 0 80px; border-bottom: 1px solid var(--line);
}
.hero.empty { grid-template-columns: 1fr; padding: 120px 0; }
.dial-wrap { width: 100%; max-width: 480px; justify-self: center; }
#dial { width: 100%; height: auto; display: block; overflow: visible; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.reading {
  font: 400 clamp(56px, 9vw, 112px)/.95 var(--serif); letter-spacing: -.02em; margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.reading-sub { font: italic 400 clamp(22px, 3vw, 30px)/1.2 var(--serif); color: var(--red); margin: 10px 0 36px; }
.hero h1 { font-family: var(--serif); font-weight: 400; }
.lede { color: var(--ink-2); max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 16px 16px 0 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stats dd { margin: 0; font: 500 22px/1.2 var(--mono); }
#delta7, #delta30 { font: 500 15px/1.35 var(--sans); }
.stats dd small { font-size: 13px; color: var(--muted); margin-left: 2px; }
.delta-closer { color: var(--red); }
.delta-farther { color: #7fb59a; }
.updated { margin: 28px 0 0; font-size: 13px; color: var(--muted); }

.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 36px; align-items: end; }
.block-head h2 { font: 400 clamp(28px, 4vw, 40px)/1.1 var(--serif); margin: 0; }
.block-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }

.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; padding: 1px; }
.dim { background: var(--bg); outline: 1px solid var(--line); padding: 22px 22px 18px; cursor: pointer; text-align: left; color: inherit; font: inherit; border: 0; width: 100%; }
.dim:hover, .dim[aria-expanded="true"] { background: var(--bg-2); }
.dim:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dim-name { font-size: 15px; }
.dim-weight { font: 12px var(--mono); color: var(--muted); }
.dim-score { font: 400 44px/1 var(--serif); margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.dim-score.na { font-size: 22px; color: var(--muted); font-style: italic; }
.bar { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.bar.hot > i { background: var(--red); }
.bar.warm > i { background: var(--amber); }
.dim-cov { font-size: 12px; color: var(--muted); margin-top: 10px; }
.comps { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); list-style: none; display: none; }
.dim[aria-expanded="true"] .comps { display: block; }
.comps li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; padding: 6px 0; }
.comps .c-label { color: var(--ink-2); }
.comps .c-score { font-family: var(--mono); }
.comps .c-val { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.comps .na { color: var(--muted); font-style: italic; }

.chart-wrap { position: relative; }
#history { width: 100%; display: block; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--bg-2); border: 1px solid var(--line-2);
  padding: 6px 10px; font: 12px/1.4 var(--mono); white-space: nowrap; transform: translate(-50%, -120%);
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font: 12px/1 var(--sans); padding: 8px 12px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-2); cursor: pointer; min-height: 32px;
}
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ev-sev { font: 400 30px/1 var(--serif); text-align: center; padding-top: 2px; font-variant-numeric: tabular-nums; }
.ev-sev.s9, .ev-sev.s10, .ev-sev.s8 { color: var(--red); }
.ev-sev.s7, .ev-sev.s6 { color: var(--amber); }
.ev-sev small { display: block; font: 10px/1.4 var(--mono); color: var(--muted); letter-spacing: .08em; margin-top: 6px; }
.ev-sum { margin: 0 0 6px; font-size: 16px; }
.ev-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ev-meta a { color: var(--ink-2); overflow-wrap: anywhere; }
.ev-cat { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.ev-empty { color: var(--muted); padding: 24px 0; }

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.method h3 { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.method p { color: var(--ink-2); margin: 0; }
.weights { margin: 40px 0 0; border-collapse: collapse; width: 100%; max-width: 420px; font-size: 14px; }
.weights th, .weights td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.weights th { font-weight: 500; color: var(--muted); font-size: 12px; }
.weights td:last-child, .weights th:last-child { text-align: right; font-family: var(--mono); }
.disclaimer { margin: 36px 0 0; font-size: 13px; color: var(--muted); max-width: 70ch; }

.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted);
}
.foot a { color: var(--muted); }

/* Reloj SVG */
.d-face { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; }
.d-tick { stroke: var(--line-2); stroke-width: 1; }
.d-tick.major { stroke: var(--ink-2); stroke-width: 2; }
.d-zone { fill: var(--red); }
.d-num { fill: var(--muted); font: 500 13px var(--mono); text-anchor: middle; dominant-baseline: central; }
.d-num.twelve { fill: var(--ink); }
.d-hand-m { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.d-hand-h { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.d-pin { fill: var(--ink); }
.d-pin-in { fill: var(--red); }
.d-glow { fill: none; stroke: var(--red); stroke-width: 2; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .d-glow { animation: pulse 4s ease-in-out infinite; }
}
@keyframes pulse { 0%, 100% { opacity: .15; } 50% { opacity: .65; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 56px; }
  .dial-wrap { max-width: 340px; }
  .block { padding: 56px 0; }
  .block-head { grid-template-columns: 1fr; gap: 12px; }
  .top nav { display: none; }
}
@media (max-width: 480px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ev { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
}
