/* Agent Workshop — dark-first, mobile-first. No light theme. */
:root {
  --bg: #0e1013;
  --bg-raised: #15181d;
  --bg-card: #171b21;
  --border: #262c35;
  --text: #e9edf2;
  --text-dim: #a9b4c3;
  --text-faint: #6d7787;
  --brass: #d9a441;
  --brass-deep: #9a6f22;
  --brass-glow: rgba(217, 164, 65, 0.14);
  --steel: #7d9fc4;
  --green: #58b98a;
  --red: #d9705f;
  --radius: 12px;
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint workshop wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 300px at 12% -6%, var(--brass-glow), transparent 70%),
    radial-gradient(700px 320px at 95% 4%, rgba(125, 159, 196, 0.10), transparent 70%);
  z-index: 0;
}

main, header.site, footer.site { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 16, 19, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}
.nav { display: flex; align-items: center; gap: 4px; padding: 10px 0; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px;
  margin-right: auto;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brass-deep), var(--brass));
  display: inline-flex; align-items: center; justify-content: center;
  color: #14100a; font-weight: 800; font-size: 18px;
}
.nav a.nlink {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  padding: 7px 10px; border-radius: 9px;
}
.nav a.nlink:hover { color: var(--text); background: var(--bg-raised); }
.nav a.nlink.active { color: var(--brass); background: var(--brass-glow); }

/* ---------- hero / type ---------- */
.hero { padding: 52px 0 28px; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 12px;
}
h1 { font-size: 33px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 23px; line-height: 1.3; margin: 38px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 8px; }
.lede { font-size: 18px; color: var(--text-dim); margin: 0 0 18px; }
p { margin: 0 0 15px; }
a { color: var(--brass); }
a:hover { color: #e9b95c; }

/* ---------- cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 14px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 8px;
}
.rule-card { border-left: 3px solid var(--brass); }

/* ---------- status strip ---------- */
.status { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.status-row {
  display: flex; gap: 10px; align-items: baseline;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 15px;
}
.dot { font-size: 12px; flex-shrink: 0; }
.dot.live { color: var(--green); }
.dot.planned { color: var(--brass); }
.status-row .lbl { font-weight: 700; }
.status-row .note { color: var(--text-dim); }

/* ---------- forms ---------- */
form.plain { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
select, input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 12px 13px; font-size: 16px; font-family: var(--font);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brass-deep); }
::placeholder { color: var(--text-faint); }
button.btn, a.btn {
  display: inline-block; cursor: pointer; border: none; text-decoration: none;
  background: linear-gradient(135deg, var(--brass-deep), var(--brass));
  color: #14100a; font-weight: 700; font-size: 16px; font-family: var(--font);
  padding: 12px 20px; border-radius: 10px; text-align: center;
}
button.btn:hover, a.btn:hover { filter: brightness(1.08); color: #14100a; }
a.btn.ghost, button.btn.ghost {
  background: transparent; color: var(--brass);
  border: 1px solid var(--brass-deep);
}
a.btn.ghost:hover, button.btn.ghost:hover { background: var(--brass-glow); }
.form-note { font-size: 13px; color: var(--text-faint); margin: 6px 0 0; }

/* ---------- lists / misc ---------- */
ul.tight { padding-left: 22px; margin: 0 0 15px; }
ul.tight li { margin-bottom: 8px; }
ul.tight li::marker { color: var(--brass); }
ol.pipeline { padding-left: 0; counter-reset: pipe; }
ol.pipeline > li {
  list-style: none; position: relative; padding-left: 40px; margin-bottom: 16px;
}
ol.pipeline > li::before {
  counter-increment: pipe; content: counter(pipe);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brass-glow); color: var(--brass);
  border: 1px solid var(--brass-deep);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
.pill {
  display: inline-block; font-size: 12px; color: var(--steel);
  border: 1px solid var(--border); background: var(--bg-raised);
  border-radius: 999px; padding: 3px 11px; margin: 0 6px 6px 0;
}
.pill.brass { color: var(--brass); }
.meta { color: var(--text-faint); font-size: 13px; }
blockquote {
  border-left: 3px solid var(--brass-deep); margin: 18px 0; padding: 4px 0 4px 16px;
  color: var(--text-dim); font-style: italic;
}
code {
  font-family: var(--mono);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px; font-size: 0.87em; color: var(--steel);
  word-break: break-word;
}
pre {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; color: var(--text-dim); word-break: normal; }
table.ref { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0 20px; }
table.ref th, table.ref td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
table.ref th { color: var(--text-dim); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 0 44px;
  color: var(--text-faint); font-size: 14px;
}
footer.site .wrap { display: flex; flex-direction: column; gap: 10px; }
footer.site a { color: var(--text-dim); text-decoration: none; margin-right: 14px; }
footer.site a:hover { color: var(--brass); }

@media (min-width: 560px) {
  h1 { font-size: 40px; }
}
