/* qts.heberg.cloud
   One stylesheet for every page. The palette is the app's, token for token,
   so the site and the window read as the same object. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #eaeef3;
  --border: #d8dee6;
  --text: #12161b;
  --dim: #57606a;
  --faint: #767f8a;
  /* Darkened from the app's #FF1E1E, which does not have the contrast for
     body text on white. The dark theme below uses the real accent. */
  --accent: #C41616;
  --ok: #1A7F37;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117;
    --surface: #161B22;
    --surface-2: #1C2530;
    --border: #2A313C;
    --text: #E6EDF3;
    --dim: #8B949E;
    --faint: #6E7681;
    --accent: #FF1E1E;
    --ok: #3FB950;
  }
}

:root[data-theme="dark"] {
  --bg: #0D1117;
  --surface: #161B22;
  --surface-2: #1C2530;
  --border: #2A313C;
  --text: #E6EDF3;
  --dim: #8B949E;
  --faint: #6E7681;
  --accent: #FF1E1E;
  --ok: #3FB950;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.wrap.wide { max-width: 58rem; }

/* -- wordmark ------------------------------------------------------------ */

.brand { display: inline-block; text-decoration: none; color: inherit; }
.mark {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.mark .s { color: var(--accent); margin-left: 0.4em; }
.name {
  color: var(--dim);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.1rem 0 0;
}
.name .tracked { letter-spacing: 0.33em; }

/* -- nav ----------------------------------------------------------------- */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
nav a { color: var(--dim); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* -- type ---------------------------------------------------------------- */

h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}
.lead { font-size: 1.15rem; color: var(--dim); margin: 0 0 2rem; }
.updated { color: var(--faint); font-size: 0.9rem; margin: 0 0 2.5rem; }

h2 { font-size: 1.2rem; margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

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

a { color: var(--accent); }
code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: Consolas, "Cascadia Mono", monospace;
}

strong { font-weight: 600; }

/* -- blocks -------------------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--dim); font-size: 0.95rem; }

.facts { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95rem; }
.facts th, .facts td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.facts th { color: var(--dim); font-weight: 600; white-space: nowrap; }

.scroll { overflow-x: auto; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  margin: 0.5rem 0 0;
}
.cta:hover { filter: brightness(1.12); }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
}
footer a { color: var(--dim); }
