/*
 * Shared stylesheet for the standalone content pages in public/.
 *
 * These pages are served straight from public/ and never pass through Vite, so
 * they cannot link the app's hashed bundle. They used to carry a hand-copied
 * duplicate of src/styles.css's palette, with a comment asking whoever changed
 * one to remember to change the other.
 *
 * They do not need to any more: every page on usefull.space links
 * /ds/styles.css, so both files now point at the same tokens and the palette
 * has one definition. The names below are kept so the rule bodies did not have
 * to be rewritten.
 */
:root {
  --bg: var(--surface-page);
  --panel: var(--surface-page);
  --panel-2: var(--surface-sunken);
  --border: var(--line-1);
  --text: var(--ink-1);
  --text-dim: var(--ink-2);
  --accent: var(--accent-primary);
  --accent-dim: var(--line-disabled);
  font-size: 15px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.65;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-bottom: var(--border-thick) solid var(--border);
}
.page-header a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
/* The checkerboard that means "transparency". It used to be white squares
   over the accent; with the accent now white, both layers were white and the
   mark was a blank square. Two colours, hard edges, no opacity — which is what
   a transparency checkerboard is anyway. */
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-0);
  border: var(--border-thin) solid var(--border);
  background:
    conic-gradient(var(--white) 0 25%, var(--black) 0 50%, var(--white) 0 75%, var(--black) 0)
      0 0 / 9px 9px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem 0;
}

h1 {
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}
h2 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 2.2rem 0 0.6rem;
}
h3 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 1.4rem 0 0.3rem;
}
p { margin: 0 0 0.9rem; }
strong { color: var(--text); font-weight: 600; }
.lead { font-size: 1.05rem; }
ol, ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: 0.5rem; }
a { color: var(--accent); }

.cta {
  display: inline-block;
  margin: 0.6rem 0 1.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-0);
  background: var(--accent);
  color: var(--ink-on-green);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.cta:hover { background: var(--ink-1); }

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.85rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: var(--border-thick) solid var(--border);
  vertical-align: top;
}
th { color: var(--text); font-weight: 600; }
tbody td:first-child { color: var(--text); white-space: nowrap; }

pre {
  background: var(--black);
  border: var(--border-thick) solid var(--border);
  border-radius: var(--radius-0);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
code {
  font-family: var(--font-mono);
  color: var(--text);
}
p > code {
  background: var(--panel-2);
  border: var(--border-thick) solid var(--border);
  border-radius: var(--radius-0);
  padding: 0.05rem 0.3rem;
  font-size: 0.85em;
}

.callout {
  border: var(--border-thick) solid var(--border);
  border-left: 3px solid var(--accent-dim);
  background: var(--panel);
  border-radius: var(--radius-0);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.site-footer {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.2rem;
  border-top: var(--border-thick) solid var(--border);
  font-size: 0.8rem;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  margin-bottom: 0.7rem;
}
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
