/* FileKiln — "Machined Instrument" direction (Option B).
   Dark grey ground, ice-blue accent only. No greens, no gradients. */
:root {
  --bg: #0f1114;
  --panel: #16191d;
  --well: #121417;
  --line: #262c33;
  --text: #d4d9dd;
  --muted: #8b95a0;
  --faint: #667080;
  --accent: #5f97bd;
  --accent-bright: #8ab8d8;
  --accent-fill: #31536b;
  --danger: #c47a6f;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --bezel: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--mono); line-height: 1.6; font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); text-decoration: underline; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }

header.site {
  background: var(--panel); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 800; font-size: 18px;
  letter-spacing: 0.12em; color: var(--text);
}
.wordmark:hover { text-decoration: none; color: var(--text); }
.mark {
  width: 22px; height: 22px; border: 2px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.mark span { width: 8px; height: 8px; background: var(--accent); }
nav.top { margin-left: auto; display: flex; gap: 8px; }
nav.top a {
  padding: 8px 14px; border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
nav.top a:hover { color: var(--accent-bright); border-color: var(--accent); text-decoration: none; }

main { padding: 38px 0 64px; }
h1 {
  font-family: var(--sans); font-weight: 800; font-size: 32px;
  letter-spacing: 0.02em; line-height: 1.08; text-transform: uppercase;
  margin: 0 0 10px;
}
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 28px; max-width: 70ch; line-height: 1.65; }

.tool { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--bezel); }
.tool::before {
  content: ""; display: block; height: 10px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 12px);
}
.tool-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; }
.tool-grid > div { padding: 16px 18px; min-width: 0; }
.tool-grid > div:first-child { border-right: 1px solid var(--line); }
@media (max-width: 720px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
}
label.io {
  display: block; font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
textarea, input[type=text] {
  width: 100%; background: var(--well); color: #c0c7ce;
  border: 1px solid var(--line); padding: 12px;
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
}
textarea { min-height: 260px; resize: vertical; }
.bar {
  display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line);
  flex-wrap: wrap; align-items: center; background: var(--panel);
}
.bar-note { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
button {
  background: var(--accent-fill); color: #e6eef4; border: 1px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  padding: 0 26px; min-height: 46px; font-family: var(--mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
button:hover { background: #3c6380; }
button.ghost {
  background: transparent; box-shadow: none; border-color: var(--line);
  color: var(--muted); font-weight: 400;
}
button.ghost:hover { color: var(--text); border-color: var(--muted); }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.ok-note { color: var(--muted); font-size: 13px; margin: 0; }

.local-note {
  margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 12.5px;
  line-height: 1.65; max-width: 76ch;
}
.local-note strong {
  display: block; color: var(--accent); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px;
}

section.prose { margin-top: 44px; max-width: 76ch; }
section.prose h2 {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
section.prose h3 { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
section.prose p { color: var(--muted); font-size: 13px; line-height: 1.7; }
section.prose code {
  font-size: 12px; background: var(--well); padding: 1px 6px; border: 1px solid var(--line);
}

.tool-index {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.tool-index li { border: 1px solid var(--line); background: var(--panel); }
.tool-index a { display: block; padding: 16px 18px; height: 100%; }
.tool-index a:hover { text-decoration: none; background: var(--well); box-shadow: 0 0 0 1px var(--accent) inset; }
.tool-index .t {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 6px;
}
.tool-index .d { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

footer.site {
  border-top: 1px solid var(--line); background: var(--panel);
  padding: 24px 0 36px; color: var(--faint); font-size: 12px;
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--faint); }
footer.site a:hover { color: var(--accent-bright); }
