/* Speedometer site. 8-point spacing grid; colours from the app's Gauge.kt. */
:root {
  --bg: #111315;
  --surface: #1a1d20;
  --line: #2a2e33;
  --text: #e8eaed;
  --dim: #a3a9b1;
  --accent: #f29d38;
  --on-accent: #111315;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --radius: 8px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s2); top: var(--s2); background: var(--surface); padding: var(--s1) var(--s2); z-index: 1; }

.top {
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 720px; margin: 0 auto; padding: 0 var(--s2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 56px;
}
.brand {
  display: flex; align-items: center; gap: var(--s1);
  color: var(--text); text-decoration: none; font-weight: 600; min-height: 48px;
}
.brand img { width: 24px; height: 24px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); }
nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--s2);
  color: var(--dim); text-decoration: none; font-weight: 500;
}
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

main { max-width: 720px; margin: 0 auto; padding: var(--s4) var(--s2) var(--s8); }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 var(--s2); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: var(--s6) 0 var(--s2); font-weight: 600; }
h3 { font-size: 17px; line-height: 1.4; margin: var(--s3) 0 var(--s1); font-weight: 600; }
p, ul, ol { margin: 0 0 var(--s2); }
li { margin-bottom: var(--s1); }
.lead { font-size: 20px; line-height: 1.45; color: var(--text); margin-bottom: var(--s3); }
.dim { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s4);
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius); font-weight: 700; font-size: 18px; text-decoration: none;
  width: 100%;
}
.btn:hover { background: #f5ad57; }
.btn:active { background: #e08a24; }

.facts {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s2);
  margin: var(--s3) 0 0; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
code, .hash {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 15px;
}
.hash { word-break: break-all; }
pre {
  margin: 0 0 var(--s2); padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}

.steps { padding-left: var(--s3); }
.steps li { padding-left: var(--s1); }

figure { margin: var(--s4) 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
figcaption { color: var(--dim); font-size: 15px; margin-top: var(--s1); }
.shot-tall img { aspect-ratio: 1080 / 1200; object-fit: cover; object-position: center 52%; }
.shots { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
.shots figure { margin: 0; }

.history { list-style: none; padding: 0; }
.history li { border-left: 2px solid var(--line); padding: 0 0 var(--s2) var(--s2); margin: 0; }
.history li:first-child { border-left-color: var(--accent); }
.history strong { display: block; }

.foot { border-top: 1px solid var(--line); }
.foot p { max-width: 720px; margin: 0 auto; padding: var(--s3) var(--s2); color: var(--dim); font-size: 15px; }

@media (min-width: 600px) {
  main { padding-top: var(--s6); }
  h1 { font-size: 40px; }
  .btn { width: auto; }
  .shots { grid-template-columns: 1fr 1fr; align-items: start; }
}
