/* Stack64 site: one shared stylesheet. System fonts only; no external resources. */

:root {
  --bg: #fbfaf7;
  --surface: #f1efe9;
  --ink: #1d1c1a;
  --muted: #5d5a54;
  --line: #dcd8cf;
  --accent: #2f6b4f;
  --banner-bg: #fff3cd;
  --banner-ink: #5c4400;
  --banner-line: #e8c95a;
  --placeholder-bg: #fde7e4;
  --placeholder-ink: #8a1f11;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1f1f1d;
    --ink: #ecebe7;
    --muted: #a9a59d;
    --line: #34332f;
    --accent: #7cc4a0;
    --banner-bg: #3a2f0b;
    --banner-ink: #f6dd8c;
    --banner-line: #6b5717;
    --placeholder-bg: #4a1d17;
    --placeholder-ink: #ffb4a8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 4px 8px;
  z-index: 2;
}

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}

main {
  padding-top: 8px;
  padding-bottom: 48px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 28px 0 8px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 36px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
}

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

.lede {
  font-size: 1.125rem;
}

.draft-banner {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--banner-line);
  border-radius: 8px;
  background: var(--banner-bg);
  color: var(--banner-ink);
  font-weight: 600;
}

.draft-banner p {
  margin: 0;
}

.draft-banner p + p {
  margin-top: 4px;
  font-weight: 400;
}

.placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

.callout {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

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

.toc {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 20px 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 2px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface);
}

.path {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.25rem;
  }
}
