/* Shared styling for the three stenokeyboard.app pages. Deliberately small: one file, no build
   step, no external fonts or scripts, so the site can be dropped on any static host. */

:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5c6370;
  --rule: #e3e6ea;
  --accent: #0a63d6;
  --card: #f6f7f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #eceef2;
    --muted: #a0a7b4;
    --rule: #2a2e36;
    --accent: #5aa2ff;
    --card: #1c1f25;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}

nav a:hover { color: var(--accent); }

h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.35rem;
}

p, li { color: var(--fg); }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

a { color: var(--accent); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
}

.button:hover { filter: brightness(1.08); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.muted { color: var(--muted); }

.small { font-size: 0.92rem; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

footer.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site a { color: var(--muted); }

ul { padding-left: 1.25rem; }

li { margin: 0.3rem 0; }

code {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}
