/* LifeScalr holding page. System fonts only: the CSP allows nothing but this site's own files. */
:root {
  color-scheme: light;
  --bg: #f2f4f1;
  --ink: #17201b;
  --muted: #59645d;
  --rule: #bfc8c1;
  --accent: #2c7a57;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1411;
    --ink: #e4ebe6;
    --muted: #97a39b;
    --rule: #3a463e;
    --accent: #5cbf8d;
  }
}

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

html, body { height: 100%; }

body {
  margin: 0;
  padding-block: 0;
  padding-inline: max(16px, 5vw);
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.plate {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 4rem;
}

.scale {
  width: min(15rem, 100%);
  height: auto;
  overflow: visible;
}
.scale line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.scale .base, .scale .ticks line { stroke: var(--rule); }
.scale .mark { stroke: var(--accent); stroke-width: 2; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.line {
  margin: 0;
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--muted);
  text-wrap: pretty;
}

footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
footer p {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
