/* Hand-written, no framework, no build step. The site has to outlive any tooling
   choice and be servable by anything that can serve a directory. */

:root {
  --bg: #0f0f11;
  --panel: #17171b;
  --line: #2a2a31;
  --ink: #f2f2f4;
  --muted: #a1a1ad;
  --accent: #6fd3c7;
  --warn: #e8a33d;
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  padding: 0 16px;                 /* the gutter every narrow screen needs */
  overflow-wrap: break-word;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 4rem 0 5rem; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; margin: 3rem 0 .75rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.75rem 0 .4rem; }
p { margin: 0 0 1rem; }

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

nav.top { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem 0 0; font-size: .95rem; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.25rem .5rem;
  margin: 1.5rem 0;
}

.panel.warn { border-color: #4a3a1c; }
.panel.warn h2, .panel.warn h3 { color: var(--warn); margin-top: 0; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { padding: .45rem 0 .45rem 1.5rem; position: relative; }
ul.plain li::before {
  content: "—";
  position: absolute; left: 0; color: var(--muted);
}

ul.no li::before { content: "\00d7"; color: var(--warn); }
ul.yes li::before { content: "\2713"; color: var(--accent); }

pre {
  background: #0a0a0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  font: 400 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  color: #cfe9e4;
}

code { font: 400 .92em ui-monospace, "SF Mono", Menlo, monospace; }

blockquote {
  margin: 1.25rem 0;
  padding: .25rem 0 .25rem 1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-style: normal;
}
blockquote cite { display: block; margin-top: .4rem; font-size: .85rem; font-style: normal; }

.price { font-size: 1.1rem; }
.price strong { font-size: 1.4rem; }

footer {
  margin-top: 4rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
footer a { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .wrap { padding: 2.5rem 0 3.5rem; }
}

/* The page is dark by design — it is an app about not being seen — but respect a
   forced light preference rather than fighting it. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfc; --panel: #fff; --line: #e3e3e8;
    --ink: #17171b; --muted: #5c5c68; --accent: #0d7a6d;
  }
  :root:not([data-theme="dark"]) pre { background: #f4f4f6; color: #23413d; }
}
