/* simpliloquy.com. BgARC 3's design library, adapted for reading rather than operating.
   ARC 3 is a tool: one size, weight and colour carry everything. A page of prose needs
   real size hierarchy, so headings get sizes here. Everything else is ARC 3.
   THE SAFARI LAW: no @keyframes in this file. */

:root {
  --bg: #0d0f12; --fg: #e2e5ea; --dim: #99a1ad; --faint: #6b7280;
  --line: #2a2f38; --alert: #f2696e; --ok: #5cb98d;
  --chrome: rgba(13,15,18,.94);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fbfbf9; --fg: #14161b; --dim: #5f6672; --faint: #939aa4;
          --line: #dfe2e7; --alert: #b8302c; --ok: #24704f;
          --chrome: rgba(251,251,249,.94); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 15px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-text-size-adjust: 100%;
}

/* ── fixed chrome, top and bottom ─────────────────────────────────────── */
.head, .foot {
  position: fixed; left: 0; right: 0; z-index: 10;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.head { top: 0; border-bottom: 1px solid var(--line); }
.foot { bottom: 0; border-top: 1px solid var(--line); }
.chrome-in { max-width: 84ch; margin: 0 auto; padding: 9px 16px; }

.head .title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.brand { font-weight: 700; font-size: 15px; }

.bar { display: flex; gap: 15px; flex-wrap: wrap; margin: 5px 0 0; }
.bar a { color: var(--faint); text-decoration: none; font-size: 13px; }
.bar a:hover, .bar a:focus { color: var(--fg); }
.bar a.here { color: var(--fg); font-weight: 700; }   /* the section you are in */

.foot .chrome-in { font-size: 13px; text-align: center; }
.foot .one { color: var(--dim); }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--fg); }

main { max-width: 84ch; margin: 0 auto; padding: 96px 16px 76px; }

/* ── hierarchy. sizes, not just weight ────────────────────────────────── */
h1 {
  font: inherit; font-size: clamp(21px, 5.4vw, 27px); font-weight: 700;
  line-height: 1.28; letter-spacing: -.01em; margin: 0 0 12px;
}
h2 {
  font: inherit; font-size: 17px; font-weight: 700; color: var(--fg);
  margin: 40px 0 12px; scroll-margin-top: 84px;
}
h2::before { content: "# "; color: var(--faint); font-weight: 400; }
h3 { font: inherit; font-size: 15px; font-weight: 700; margin: 22px 0 6px; }

p { margin: 0 0 12px; max-width: 74ch; }
.lede { color: var(--dim); margin-bottom: 26px; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.alert { color: var(--alert); }
.ok { color: var(--ok); }
a { color: var(--fg); }

hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* ── ARC 3 rows, unchanged in grammar ─────────────────────────────────── */
.row { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; flex-wrap: wrap; }
.row .k { flex: 1 1 13ch; min-width: 13ch; }
.row .m { color: var(--dim); flex: 0 0 auto; margin-left: auto; text-align: right; }
.rack { border-left: 1px solid var(--line); margin: 4px 0 16px 2px; padding: 4px 0 4px 14px; }

pre {
  white-space: pre-wrap; word-break: break-word; margin: 0 0 14px;
  color: var(--dim); font-size: 13.5px; line-height: 1.7;
}
pre .out { color: var(--fg); }
.url { word-break: break-all; }

/* ── the form. ARC 3 field styling, kept ─────────────────────────────── */
form { margin: 4px 0 16px; }
.f { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; flex-wrap: wrap; }
.f label { flex: 0 0 13ch; color: var(--dim); }
.f input, .f textarea {
  flex: 1 1 24ch; width: 100%;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); padding: 8px; font: inherit; border-radius: 0;
}
.f textarea { min-height: 7em; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--fg); }
button {
  font: inherit; color: var(--fg); background: transparent;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 0; cursor: pointer;
}
button:hover, button:focus { border-color: var(--fg); outline: none; }
button[disabled] { color: var(--faint); cursor: default; }
.said { margin: 8px 0 0; min-height: 1.7em; }

/* iOS Safari zooms any focused field under 16px and ignores maximum-scale,
   so fields alone go to 16px on phones. Everything else stays put. */
@media (max-width: 760px) {
  .f input, .f textarea { font-size: 16px; }
  .f label { flex: 1 0 100%; }
}

/* the cursor is a block and does not blink, because nothing here is infinite */
.cur { background: var(--fg); color: var(--bg); }

@media (max-width: 40em) {
  main { padding: 104px 14px 72px; }
  .bar { gap: 12px; }
  .row .m { flex: 1 0 100%; margin-left: 0; text-align: left; color: var(--faint); }
  .row .k { flex: 1 1 100%; }
}
