/* Shared look for aidone.io's text pages (/help, /privacy). Same palette and type as the landing page. */
:root {
  --paper: #F2F3EF; --surface: #FBFBF9; --stone: #E6E8E2; --line: #DCDFD8; --line-soft: #E8EAE5;
  --ink: #121417; --body: #383E45; --muted: #5A6169; --mist: #767C84;
  --night: #12161C; --ember: #9A3412; --ember-600: #C2410C; --ember-light: #FFB48C;
  --display: 'Bricolage Grotesque', Inter, sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember-600); outline-offset: 2px; }

/* Header, as on the landing page */
.top { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.wordmark { text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.035em; }
.wordmark .ai { color: var(--mist); }
.wordmark .dot { color: var(--ember); }
.top nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.pill { background: var(--ink); color: var(--paper) !important; padding: 10px 18px; border-radius: 999px; font-weight: 600; }

/* Page title */
.hero { max-width: 1200px; margin: 0 auto; padding: 56px 32px 48px; border-bottom: 1px solid var(--line); }
.label { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.hero .lead { margin: 20px 0 0; max-width: 60ch; font-size: 19px; color: var(--body); text-wrap: pretty; }
.hero .meta { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* Contents beside the text on wide screens, above it on narrow ones */
.layout { max-width: 1200px; margin: 0 auto; padding: 48px 32px 120px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } .toc { position: sticky; top: 24px; align-self: start; } }
.toc p { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--ember); }

/* The text */
.doc { max-width: 70ch; }
.doc section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: var(--body); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--stone); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 0 0 20px; }
.box h2, .box h3 { margin-top: 0; }
.box ul { margin-bottom: 0; }
.note { background: var(--stone); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: 15px; color: var(--body); }
.prompt { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ember-600); border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); background: var(--stone); }
td { color: var(--body); }

/* Unfilled placeholders in a draft. scripts/site-check.ts fails while any remain. */
mark[data-todo] { background: #FDE7D8; color: var(--ember); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Footer, as on the landing page */
.foot { background: var(--night); color: #9AA2AD; border-top: 1px solid #262C35; }
.foot div { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot .mark { color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.035em; }
.foot .mark .ai { color: #7D8691; }
.foot .mark .dot { color: var(--ember-light); }
.foot a { color: #BEC5CE; }
.foot span { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; }
