/* Pipeline Notes: developer-docs look with terminal accents. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #57606a;
  --line: #e2e0d8;
  --accent: #0a5cad;
  --accent-soft: #e6effa;
  --amber: #9a4a00;
  --code-bg: #0d1117;
  --code-ink: #e6edf3;
  --code-line: #262c36;
  --inline-bg: #eceae3;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e13;
    --surface: #11161d;
    --ink: #e6edf3;
    --muted: #9aa5b1;
    --line: #232a33;
    --accent: #6cb6ff;
    --accent-soft: #13233a;
    --amber: #f5b14c;
    --code-bg: #070a0e;
    --code-line: #1f262f;
    --inline-bg: #1a2029;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--surface); padding: .5rem .8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand {
  font: 700 1.02rem/1 var(--mono); color: var(--ink); text-decoration: none;
  letter-spacing: -.01em; display: inline-flex; align-items: center;
}
.brand .prompt { color: var(--amber); margin-right: .15rem; }
.cursor { width: .55rem; height: 1.05rem; margin-left: .3rem; background: var(--accent); display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.site-header nav { display: flex; gap: .25rem; }
.site-header nav a {
  font: 600 .85rem/1 var(--mono); color: var(--muted); text-decoration: none;
  padding: .55rem .7rem; border-radius: 6px;
}
.site-header nav a:hover { color: var(--ink); background: var(--accent-soft); }

/* Document */
.doc { max-width: var(--measure); margin: 0 auto; padding: 3rem 0 4rem; }
.doc-head { border-bottom: 1px dashed var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.eyebrow { font: 600 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin: 0 0 .75rem; }
.eyebrow::before { content: "// "; opacity: .7; }
h1, h2, h3 { font-family: var(--mono); letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin: 0; font-weight: 700; }
.meta { font: .82rem/1 var(--mono); color: var(--muted); margin: 1rem 0 0; }
.meta::before { content: "updated "; }
body:not(.kind-article) .meta { display: none; }
.prose h2 { font-size: 1.4rem; margin: 3rem 0 .9rem; padding-top: .5rem; }
.prose h2::before { content: "## "; color: var(--accent); opacity: .55; }
.prose h3 { font-size: 1.08rem; margin: 2rem 0 .6rem; }
.prose h3::before { content: "### "; color: var(--accent); opacity: .45; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* Code */
code, kbd {
  font-family: var(--mono); font-size: .86em;
  background: var(--inline-bg); padding: .12em .38em; border-radius: 5px;
}
pre {
  position: relative; margin: 1.5rem 0; padding: 2.6rem 1.15rem 1.15rem;
  background: var(--code-bg); color: var(--code-ink);
  border: 1px solid var(--code-line); border-radius: var(--radius);
  overflow-x: auto; font-size: .84rem; line-height: 1.65;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 28px -18px rgba(0,0,0,.55);
}
pre::before {
  content: ""; position: absolute; top: .95rem; left: 1rem;
  width: .62rem; height: .62rem; border-radius: 50%;
  background: #f0705a; box-shadow: 1rem 0 0 #e9b949, 2rem 0 0 #5bb974;
}
pre::after {
  content: attr(data-lang); position: absolute; top: .7rem; right: 1rem;
  font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #8b949e;
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: pre; }

/* Callouts, tables, checklists */
.note, .warn {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: 8px; padding: 1rem 1.15rem; margin: 1.5rem 0;
}
.warn { border-left-color: var(--amber); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before {
  content: "[ ]"; position: absolute; left: 0; top: .05rem;
  font: 600 .8rem/1.7 var(--mono); color: var(--accent);
}
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Home */
.hero-cmd {
  font: .9rem/1.6 var(--mono); background: var(--code-bg); color: var(--code-ink);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.5rem 0; overflow-x: auto;
}
.hero-cmd .p { color: #f5b14c; user-select: none; }
.hero-cmd .c { color: #8b949e; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.pillars li {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .95rem;
}
.pillars strong { display: block; font-family: var(--mono); font-size: .9rem; margin-bottom: .3rem; }
#guides h2 { margin-top: 2.5rem; }
.guide-list { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: g; }
.guide-item { margin: 0 0 .9rem; counter-increment: g; }
.guide-item a {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .9rem;
  padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.guide-item a::before {
  content: counter(g, decimal-leading-zero); grid-row: span 3;
  font: 700 1rem/1.5 var(--mono); color: var(--amber);
}
.guide-item a:hover { border-color: var(--accent); transform: translateY(-1px); }
.guide-title { font: 700 1.02rem/1.4 var(--mono); color: var(--accent); }
.guide-desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.guide-date { font: .75rem/1.4 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .guide-item a { transition: none; } .guide-item a:hover { transform: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding-top: 1.5rem; padding-bottom: 2rem; font: .82rem/1.6 var(--mono); color: var(--muted);
}
.foot p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem; }
  .doc { padding: 2rem 0 3rem; }
  .prose h2 { font-size: 1.22rem; }
  pre { font-size: .78rem; padding: 2.4rem .9rem .9rem; margin-left: -.25rem; margin-right: -.25rem; }
  .guide-item a { grid-template-columns: 1fr; }
  .guide-item a::before { grid-row: auto; }
  .site-header nav a { padding: .5rem .55rem; }
}
