/* Generated from DESIGN.md — VoiceBox. Do not edit by hand; rerun /publish. */
:root {
  --primary: #0A0A0A;
  --secondary: #EF4444;
  --tertiary: #FAFAFA;
  --bg: #FAFAFA;
  --surface: #F5F5F5;
  --surface-raised: #E5E5E5;
  --text: #0A0A0A;
  --text-2: #525252;
  --text-3: #A3A3A3;
  --border-subtle: #E5E5E5;
  --border-medium: #D4D4D4;
  --border-strong: #0A0A0A;
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --body: "Work Sans", -apple-system, "Segoe UI", Helvetica, sans-serif;
  --mono: "Space Mono", "Courier New", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.7; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }

/* masthead */
.masthead { border-bottom: 2px solid var(--border-strong); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.masthead-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.brand .accent { color: var(--secondary); }
.masthead nav a { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; margin-left: 24px; }
.masthead nav a:hover { color: var(--secondary); }
.menu-toggle { display: none; background: var(--primary); color: var(--tertiary); border: 2px solid var(--primary); padding: 8px 14px; font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.menu-toggle:hover { background: var(--secondary); border-color: var(--secondary); }

/* layout */
.shell { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 24px 96px; }
.sidebar { border-right: 2px solid var(--border-subtle); padding-right: 24px; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.sidebar h2 { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin: 24px 0 8px; }
.sidebar h2:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { display: block; font-size: 14px; text-decoration: none; padding: 4px 0; }
.sidebar a:hover { color: var(--secondary); }
.sidebar a.active { border-bottom: 3px solid var(--secondary); padding-bottom: 2px; }

/* article */
article { min-width: 0; }
.overline { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
article h1 { font-family: var(--display); font-weight: 400; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 24px; }
article h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 4px solid var(--secondary); display: inline-block; }
article h3 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin: 32px 0 12px; }
article h4 { font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 24px 0 8px; }
article p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
article p:first-of-type { font-size: 20px; line-height: 1.65; }
article ul, article ol { margin: 0 0 16px; padding-left: 24px; }
article li { margin: 6px 0; }
article strong { font-weight: 700; }
article em { font-style: italic; }
article code { font-family: var(--mono); font-size: 14px; background: var(--surface); padding: 2px 6px; border: 1px solid var(--border-subtle); }
article pre { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 2px solid var(--border-medium); padding: 16px; overflow-x: auto; }
article pre code { background: transparent; border: none; padding: 0; }
article blockquote { border-left: 4px solid var(--secondary); padding: 8px 0 8px 24px; margin: 24px 0; font-size: 20px; line-height: 1.65; font-style: italic; color: var(--text); background: var(--surface); }
article hr { border: none; border-top: 2px solid var(--border-strong); margin: 48px 0; }
article table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14px; }
article table th, article table td { border: 2px solid var(--border-medium); padding: 10px 14px; text-align: left; vertical-align: top; }
article table th { background: var(--primary); color: var(--tertiary); font-family: var(--body); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
article table tr:nth-child(even) td { background: var(--surface); }

/* citations — text matching "(Source: …)" gets a subtle treatment via class hook */
article .cite { color: var(--text-2); font-size: 14px; }

/* index categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 32px 0; }
.cat-card { border: 2px solid var(--border-subtle); border-top: 4px solid var(--secondary); padding: 24px; background: var(--bg); }
.cat-card:hover { border-color: var(--border-strong); border-top-color: var(--secondary); }
.cat-card h3 { font-family: var(--display); font-size: 20px; margin: 0 0 12px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; }
.cat-card li { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.cat-card li:last-child { border-bottom: none; }
.cat-card a { font-size: 14px; text-decoration: none; }
.cat-card a:hover { color: var(--secondary); }

/* footer */
footer { border-top: 2px solid var(--border-strong); padding: 32px 24px; max-width: 1200px; margin: 0 auto; font-size: 12px; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .built { font-family: var(--body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* responsive */
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .sidebar { position: static; max-height: none; border-right: none; border-top: 2px solid var(--border-strong); padding: 24px 0 0; display: none; }
  .sidebar.open { display: block; }
  .menu-toggle { display: inline-block; }
  article h1 { font-size: 38px; }
  article h2 { font-size: 26px; }
}
