/* tenkeyapp.com: one stylesheet for three pages. The colours are the app's (Tailwind's stone and
   emerald); light and dark follow the visitor's system, as the app does. */
:root {
  --bg: #fafaf9;
  --text: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --code: #f5f5f4;
  --accent: #047857;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #292524;
    --code: #1c1917;
    --accent: #34d399;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

main,
header,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
}

header a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

header img {
  width: 48px;
  height: 48px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 2rem 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.25rem;
}

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

code {
  background: var(--code);
  border-radius: 4px;
  padding: 0.1em 0.3em;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

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

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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