/* me.dackota.com — platform-console resume.
   Constraints: CSP style-src 'self' (this file only, no inline styles),
   no external fonts (system stacks), dark ops-console aesthetic. */

:root {
  --bg: #0b0f14;
  --bg-alt: #0e141b;
  --panel: #111823;
  --panel-2: #0d1520;
  --border: #1e2a3a;
  --text: #d7e1ec;
  --muted: #8296ab;
  --green: #4ade80;
  --green-dim: #22c55e;
  --cyan: #67e8f9;
  --amber: #fbbf24;
  --red: #f87171;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--cyan); }
a:hover { color: #a5f3fc; }

code {
  font-family: var(--mono);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-size: 0.9em;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #06220f; padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- terminal windows ---------- */
.term-window {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 0.45rem;
  background: #0a0f16;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title { margin-left: 0.6rem; color: var(--muted); font-size: 0.75rem; }

.term-body {
  margin: 0; padding: 1rem 1.1rem;
  white-space: pre-wrap; word-break: break-word;
  color: var(--text); min-height: 7.5em;
}
.prompt { color: var(--green); font-weight: 600; }
.term-out { color: var(--muted); }
.term-out .ok { color: var(--green); }

.caret {
  display: inline-block; width: 0.55em; height: 1.1em;
  background: var(--green); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(34, 197, 94, 0.12), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero .term-window { max-width: 640px; margin: 0 auto 2.4rem; }

.hero-name {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.hero-role { color: var(--green); font-family: var(--mono); margin: 0 0 1.1rem; }
.hero-blurb { max-width: 620px; margin: 0 auto 1.8rem; color: var(--muted); }

.hero-links { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--text); text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.btn:hover { border-color: var(--green-dim); color: var(--text); transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.btn-accent { background: rgba(34, 197, 94, 0.12); border-color: var(--green-dim); color: var(--green); }
.btn-accent:hover { background: rgba(34, 197, 94, 0.2); }

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.section-sub { color: var(--muted); max-width: 680px; margin: 0 0 2rem; }

/* ---------- pipeline ---------- */
.pipeline {
  display: flex; align-items: stretch; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.pipe-arrow { align-self: center; color: var(--green-dim); font-family: var(--mono); }

.stage {
  flex: 1 1 200px;
  display: flex; flex-direction: column; gap: 0.2rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.stage:hover { border-color: var(--green-dim); }
.stage[aria-selected="true"] {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.07);
}
.stage-env { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); }
.stage-name { font-weight: 650; }
.stage-dates { font-size: 0.8rem; color: var(--muted); }
.stage-health { font-family: var(--mono); font-size: 0.75rem; color: var(--green-dim); margin-top: 0.3rem; }
.stage-health.live { color: var(--green); }

.promote-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.promote-note { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

.stage-detail {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
.detail-head { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 0.8rem; }
.sync-ok { font-family: var(--mono); font-size: 0.78rem; color: var(--green); white-space: nowrap; }
.detail-title { font-weight: 650; }
.detail-context { color: var(--muted); margin: 0 0 1rem; }

.resources { list-style: none; margin: 0; padding: 0; }
.resources li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.resources li:first-child { border-top: 0; }
.res-kind {
  flex: 0 0 6.5rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--amber);
  text-transform: lowercase;
}

/* ---------- metrics ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.metric-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.metric-label { color: var(--muted); font-size: 0.85rem; }

/* ---------- interactive terminal ---------- */
.term-interactive { font-size: 0.85rem; }
.term-scroll {
  height: 420px;
  overflow-y: auto;
  padding: 1rem 1.1rem;
}
.term-log { white-space: pre-wrap; word-break: break-word; }
.term-log .line-cmd { color: var(--text); }
.term-log .line-cmd .prompt { margin-right: 0.5em; }
.term-log .line-out { color: var(--muted); }
.term-log .line-ok { color: var(--green); }
.term-log .line-warn { color: var(--amber); }
.term-log .line-err { color: var(--red); }
.term-log .line-cyan { color: var(--cyan); }

.term-input-row { display: flex; gap: 0.5em; align-items: baseline; }
.term-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: inherit;
  caret-color: var(--green);
  padding: 0;
}
.term-input::placeholder { color: #3d4f63; }
.term-hint { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- skills ---------- */
.ns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.ns-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.15s;
}
.ns-card:hover { border-color: var(--green-dim); }
.ns-head {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pod-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-size: 0.75rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}

/* ---------- changelog ---------- */
.changelog { list-style: none; margin: 1.8rem 0 0; padding: 0; position: relative; }
.changelog li {
  position: relative;
  padding: 0 0 1.4rem 1.6rem;
  border-left: 2px solid var(--border);
  margin-left: 0.4rem;
}
.changelog li::before {
  content: "";
  position: absolute; left: -6px; top: 0.35em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
}
.changelog li:last-child { padding-bottom: 0; }
.rel-tag {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green);
  margin-right: 0.7rem;
}
.rel-date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.changelog p { margin: 0.25rem 0 0; color: var(--muted); }
.changelog strong { color: var(--text); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 0 2.5rem;
}
.ship-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 2.1;
  margin: 1.2rem 0 1.4rem;
}
.ship-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.ship-step em { color: var(--green-dim); font-style: normal; }
.ship-arrow { color: var(--green-dim); margin: 0 0.35rem; }
.footer-links { font-family: var(--mono); font-size: 0.85rem; }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin-top: 1.2rem; }

/* ---------- motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn, .stage { transition: none; }
}

@media (max-width: 640px) {
  .pipeline { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); align-self: center; }
  .res-kind { flex-basis: 5rem; }
  .term-scroll { height: 340px; }
}
