/* thingmetrics.ch: one small stylesheet, no external fonts or scripts. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5b6760;
  --line: #dcdfd8;
  --accent: #2f6b4f;
  --accent-text: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a17;
    --surface: #1c2420;
    --text: #e8ece9;
    --muted: #a3ada7;
    --line: #2f3a34;
    --accent: #7cc4a0;
    --accent-text: #0f1a14;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav.lang { display: flex; gap: 0.25rem; }
nav.lang a { color: var(--muted); text-decoration: none; padding: 0.15rem 0.5rem; border-radius: 0.4rem; font-size: 0.9rem; }
nav.lang a[aria-current="true"] { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.3rem; }
a { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 600; padding: 0.7rem 1.3rem; border-radius: 0.5rem; margin: 0.5rem 0 1.5rem;
}
.button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.updated { color: var(--muted); font-size: 0.9rem; }
footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 1rem; }
footer a { color: var(--muted); }
address { font-style: normal; }
