/* styles.css — greatartiststeal.com · theme_09 "Graphite Engineering Deck"
   Tokens: bg #18181b · surface #27272a · ink #fafafa · accent #06b6d4 · muted #a1a1aa
   Inter / system-ui + JetBrains Mono code outputs. Zero external assets. */

:root {
  --bg: #18181b;
  --surface: #27272a;
  --ink: #fafafa;
  --accent: #06b6d4;
  --accent-dim: #0e7490;
  --muted: #a1a1aa;
  --line: #3f3f46;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-weight: 650; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: .2em 0 .4em; }
h2.sec { font-size: 1.4rem; margin: 0 0 .4em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86em; }
code { font-family: var(--mono); background: #1e1e21; border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--accent); font-weight: 700; }
.readout { font-family: var(--mono); font-size: .88rem; color: var(--ink); }

/* ---------- header ---------- */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 1.3rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
nav.primary { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
nav.primary a { color: var(--muted); text-decoration: none; font-size: .9rem; }
nav.primary a:hover, nav.primary a:focus { color: var(--accent); }
.disc-chip {
  font-size: .72rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; background: var(--bg); white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; }
.hero p { max-width: 72ch; }
.hero .disc {
  background: #12333c; border-left: 3px solid var(--accent);
  padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: .88rem; margin-top: 14px;
}

/* ---------- wizard ---------- */
.wizard { margin: 10px 0 30px; }
.progress {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 6px;
}
.progress > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width .25s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.step-tab {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; color: var(--ink);
}
.step-tab .num { display: block; font-family: var(--mono); font-size: .72rem; color: var(--accent); }
.step-tab .lbl { font-weight: 650; font-size: 1rem; }
.step-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.step-tab .done-mark { float: right; color: var(--ok); font-weight: 700; }
.panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.panel.active { display: block; }
.panel h2 { margin-top: 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li {
  display: flex; align-items: center; gap: 10px; font-size: .9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}
.checklist li .tick { color: var(--muted); }
.checklist li.done .tick { color: var(--ok); font-weight: 700; }
.checklist li.done { border-color: var(--accent-dim); }
.wiz-nav { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- controls ---------- */
.strip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 22px; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.field label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.badge.pass { background: #0d2b22; border-color: var(--ok); color: var(--ok); }
.badge.warn { background: #33270f; border-color: var(--warn); color: var(--warn); }
.badge.fail { background: #331717; border-color: var(--bad); color: var(--bad); }
.cite-btn {
  font: inherit; font-family: var(--mono); font-size: .75rem; cursor: pointer;
  background: var(--bg); color: var(--accent); border: 1px solid var(--accent-dim);
  border-radius: 5px; padding: 2px 8px;
}
.cite-btn:hover { background: var(--accent-dim); color: var(--ink); }
.cite-row { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.cite-row:last-child { border-bottom: none; }
#cite-out {
  font-family: var(--mono); font-size: .8rem; color: var(--ink);
  background: var(--bg); border: 1px dashed var(--line); border-radius: 8px;
  padding: 10px 12px; margin-top: 12px; word-break: break-word; white-space: pre-wrap;
}

/* ---------- plots ---------- */
.plot { width: 100%; height: auto; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.plot .grid-line { stroke: var(--line); stroke-width: 1; }
.plot .axis { stroke: var(--muted); stroke-width: 1.4; }
.plot text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.plot .bar.artist { fill: var(--accent); opacity: .85; }
.plot .bar.edge { fill: #a78bfa; opacity: .75; }
.plot .cell.empty { fill: #1e1e21; }
.plot .cell { fill: var(--accent); }
.plot .cell.par { fill: #a78bfa; }
.plot .cell-num { fill: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.plot .col-label, .plot .row-label { fill: var(--muted); }
.plot .row-label { font-size: 10.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }

/* ---------- buttons / export ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 6px;
  padding: 10px 18px; border: 1px solid var(--accent); background: var(--accent); color: #06222a;
}
.btn:hover { background: #22d3ee; }
.btn.secondary { background: var(--bg); color: var(--accent); }
.btn.secondary:hover { background: #12333c; }
.btn:disabled { opacity: .55; cursor: default; }
.export-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.receipt {
  font-family: var(--mono); font-size: .76rem; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px;
  word-break: break-all;
}

/* ---------- prose / footer ---------- */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; margin-bottom: 30px; }
.prose ul.tight { padding-left: 20px; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: .85rem; color: var(--muted); }
footer.site nav { display: flex; gap: 14px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  h1 { font-size: 1.55rem; }
  nav.primary { margin-left: 0; }
  .panel, .strip, .prose { padding: 16px; }
  .disc-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress > span { transition: none; }
}
