/* Statlet site — one stylesheet, no framework. Light and dark both first-class,
   because the app itself follows the system theme and the site should not lie. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e2e5ea;
  --text: #1a1d21;
  --muted: #5b6470;
  --accent: #2f6df6;
  --accent-soft: #eaf0fe;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a;
    --surface: #1a1f26;
    --border: #2b323c;
    --text: #e8ebf0;
    --muted: #9aa4b2;
    --accent: #7aa2ff;
    --accent-soft: #1b2740;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------------------------------------------------------------- header */

.site-header {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark { font-size: 1.3rem; }

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

/* ------------------------------------------------------------- typography */

h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.005em; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

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

strong { font-weight: 650; }

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------ components */

.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.hero .mark { font-size: 3.5rem; line-height: 1; }

.hero h1 { margin-top: 0.75rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0;
}

.cards strong { display: block; margin-bottom: 0.2rem; }

.cards span { color: var(--muted); font-size: 0.95rem; }

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

.note p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { font-weight: 650; }

/* Tables must scroll inside themselves rather than push the page sideways. */
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { margin: 0 0 0.4rem; }
.site-footer .small { font-size: 0.9rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
