/* Gramlet beta site (BETA-07). No build step, no external requests: the whole site is three
   files plus HTML, so the beta box serves it from a stock nginx image and there is nothing to
   compile, cache-bust or keep in sync with a toolchain. */
:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --fg: #16171a;
  --muted: #5b6070;
  --line: #e3e5ec;
  --accent: #2f6fd0;
  --warn-bg: #fff6e5;
  --warn-line: #e8c37a;
  --fill-bg: #ffe3e3;
  --fill-fg: #8a1c1c;
  --code-bg: #f1f2f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --fg: #e8e9ee;
    --muted: #a0a5b5;
    --line: #2a2c35;
    --accent: #7aa9f0;
    --warn-bg: #2e2718;
    --warn-line: #6b5624;
    --fill-bg: #3a1c1c;
    --fill-fg: #ff9b9b;
    --code-bg: #1e2028;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
header.site { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
header.site .name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
header.site .tag {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem;
}
nav.site { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
nav.site a:hover, a:hover { color: var(--accent); }
a { color: var(--accent); }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2.4rem 0 0.7rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.6rem 0 0.5rem; }
p, li { color: var(--fg); }
.lede { font-size: 1.1rem; color: var(--muted); }
ol, ul { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }
code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code { background: var(--code-bg); padding: 0.12em 0.36em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 0.9rem 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1.5rem 0;
}
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.7rem 1.3rem; border-radius: 8px; font-weight: 600; margin: 0.6rem 0.6rem 0.6rem 0;
}
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
/* An unfilled placeholder must be impossible to miss — this site carries legal documents, and a
   page published with [FILL: …] still in it is worse than no page at all. */
.fill {
  background: var(--fill-bg); color: var(--fill-fg); font-weight: 700;
  padding: 0.05em 0.4em; border-radius: 4px; white-space: nowrap;
}
footer.site {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
footer.site a { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
