/* skills portfolio - shared stylesheet
   Palette + type inherited verbatim from site/index.html so the skills area
   reads as one continuation of parsec-lab.com, not a bolt-on. Single neon-dark
   theme is a deliberate commitment, matching the parent site's color-scheme: dark. */

:root {
  --bg: #0a0e1a;
  --fg: #e0e8ff;
  --muted: #4a6080;
  --cyan: #00d4ff;
  --blue: #0066ff;
  --green: #00ff96;
  --border: rgba(0, 212, 255, 0.2);
  --border-strong: rgba(0, 212, 255, 0.45);
  --card: rgba(0, 212, 255, 0.03);
  --card-hover: rgba(0, 212, 255, 0.07);
  --green-wash: rgba(0, 255, 150, 0.06);
  --mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  padding: 40px 20px 80px;
  background-image:
    radial-gradient(ellipse at 20% 12%, rgba(0, 100, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 88%, rgba(0, 200, 150, 0.07) 0%, transparent 55%);
  background-attachment: fixed;
}

main { max-width: 880px; margin: 0 auto; }
.page-narrow { max-width: 760px; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---- breadcrumb / back nav ---- */
.crumbs {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); text-decoration: none; }
.crumbs .sep { color: rgba(74, 96, 128, 0.5); }
.crumbs .here { color: var(--fg); }

/* ---- sticky site header: brand mark + name + nav, pinned while scrolling (item 448) ---- */
/* scroll-padding-top keeps an anchor jump (#id) landing with its heading visible BELOW the sticky
   header, instead of right at the very top of the viewport where the header would cover it. The value
   is a generous upper bound for the header's height including a two-line wrap on a narrow phone width,
   not an exact measurement - there is no JS on this site to measure it, and a few extra px of gap below
   the header is harmless where actually covering the heading would not be. */
html { scroll-padding-top: 130px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  background: var(--bg);
  padding: 14px 0 12px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--fg);
  text-decoration: none;
}
.site-header .brand:hover { color: var(--cyan); text-decoration: none; }
.site-header .brand-mark { width: 26px; height: 26px; flex: none; }
.site-header .brand-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* ---- site-wide top navigation (item 136), nested inside .site-header ---- */
.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: 0;
}
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--cyan); text-decoration: none; }
.topnav a.active { color: var(--fg); }
.topnav .topnav-spacer { flex: 1 1 auto; }
@media (max-width: 480px) { .topnav .topnav-spacer { display: none; } }
@media (max-width: 640px) {
  .site-header { gap: 6px 14px; }
  .site-header .brand-name { display: none; }   /* keep the mark visible; drop the wordmark to save width */
}

/* ---- shared eyebrow + headings ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 10px;
}

.lede { font-size: 1.12rem; color: var(--fg); font-weight: 300; text-wrap: pretty; }

p { margin: 14px 0; color: var(--fg); font-weight: 300; }
p b, li b { color: #fff; font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--green);
  background: var(--green-wash);
  padding: 1px 5px;
  border-radius: 4px;
}
.note { color: var(--muted); font-size: 0.97rem; }

/* Code excerpts (item 136, /projects/). Deliberately NOT syntax-highlighted: the site's CSP
   allows no scripts at all, and hand-painting fake token colors would be decoration pretending
   to be a highlighter. Long lines scroll inside the block so the page body never scrolls
   sideways on a phone. */
pre.excerpt {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0 6px;
  overflow-x: auto;
  tab-size: 4;
}
pre.excerpt code {
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
}
.excerpt-cap {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.stages {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px 12px 34px;
  margin: 16px 0;
}
.stages li { margin: 3px 0; }
.stages li::marker { color: var(--cyan); }
.stages b { color: var(--green); font-weight: 600; }

/* ---- Projects index: numbered one-line entries (item 449) ---- */
/* A native <ol>, not a CSS counter: the number is real list semantics, so it survives with CSS off and
   is announced correctly by assistive tech, exactly like .stages above. */
.project-list {
  margin: 18px 0;
  padding-left: 26px;
}
.project-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}
.project-list li:first-child { padding-top: 0; }
.project-list li:last-child { border-bottom: none; }
.project-list li::marker { color: var(--cyan); font-family: var(--mono); }
.project-list b { color: #fff; font-weight: 600; }
.project-list a { white-space: nowrap; }
.coming-soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* ==========================================================================
   DIAGRAM PAGE (item 136 PR5)
   Pure HTML/CSS, no scripts: the site's CSP is default-src 'none', so a click
   handler is not an option. The "clickable regions" are real anchors into the
   explanation cards below, and :target does the highlighting a handler would
   otherwise do. That also means the regions work with JS off, keyboard-focus
   correctly, and survive being opened in a new tab.
   ========================================================================== */

.diagram { margin: 20px 0 10px; }
.tier {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 10px 12px 12px;
  margin-bottom: 8px;
}
.tier-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tier-row { display: flex; flex-wrap: wrap; gap: 8px; }
a.dnode {
  flex: 1 1 130px;
  min-width: 116px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  text-decoration: none;
  display: block;
}
a.dnode:hover, a.dnode:focus-visible {
  border-color: var(--border-strong);
  background: var(--card-hover);
  text-decoration: none;
}
.dnode-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--cyan);
}
.dnode-role {
  display: block;
  font-size: 0.71rem;
  line-height: 1.45;
  color: var(--muted);
}
.flow {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin: 1px 0;
}
.region-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  padding: 12px 15px;
  margin: 10px 0;
  scroll-margin-top: 14px;
}
.region-card:target {
  border-left-color: var(--green);
  background: var(--green-wash);
}
.region-card h3 {
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 2px;
}
.region-card p { margin: 8px 0 0; font-size: 0.95rem; }

/* ---- diagram page: topology section (item 450) ----
   The operator's approved SVG layout, re-skinned onto this page's own shared palette (var(--bg),
   var(--cyan), etc.) instead of the standalone draft's own :root variables, so there is one theme for
   the whole site rather than a per-section one. Classes are prefixed topo- so nothing here can collide
   with an unrelated rule elsewhere in this file. */
.topology-diagram { display: block; width: 100%; height: auto; margin-top: 14px; }
.topology-diagram a { text-decoration: none; }
.topo-node rect {
  fill: var(--card);
  stroke: var(--border-strong);
  stroke-width: 1;
  rx: 6;
}
.topo-node:hover rect { stroke: var(--cyan); cursor: pointer; }
.topo-chev-path { stroke: var(--border-strong); }
.topo-t { font-family: var(--mono); font-size: 13px; fill: var(--cyan); }
.topo-s { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.topo-zone { fill: none; stroke: var(--border); stroke-dasharray: 4 4; rx: 10; }
.topo-zone-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  fill: var(--muted);
}
.topo-wire { stroke: var(--border-strong); stroke-width: 1; fill: none; }
.topo-wire-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--muted); }

/* ==========================================================================
   INDEX PAGE
   ========================================================================== */

.index-hero { margin-bottom: 8px; }
.index-hero .lede { max-width: 62ch; }

.count-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.count-strip b { color: var(--cyan); font-weight: 400; }

.category { margin-top: 52px; }
.category > h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  margin-bottom: 18px;
}
.category[data-accent="green"] > h2 { color: var(--green); border-left-color: var(--green); }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 16px 18px 18px;
  position: relative;
  overflow: hidden;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  /* Literal colors (not var(--cyan)/var(--blue)) in these gradients on purpose: the vnu
     (html5validator) CSS checker does not resolve custom properties, so var() color stops read
     as "too few values for linear-gradient". Same fix already applied to site/index.html's inline
     gradient; renders identically - the values are exactly what :root holds
     (--cyan #00d4ff, --blue #0066ff, --green #00ff96). */
  background: linear-gradient(90deg, #00d4ff, #0066ff);
}
.category[data-accent="green"] .skill-card::before {
  background: linear-gradient(90deg, #00ff96, #00cc66);
}
.skill-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.14);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) { .skill-card:hover { transform: none; } }

.skill-card .name {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
}
.skill-card .desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1.5;
}
.skill-card .arrow {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.skill-card:hover .arrow { color: var(--cyan); }
.category[data-accent="green"] .skill-card:hover .arrow { color: var(--green); }

/* status dot: solid = has a real writeup, hollow = coming */
.skill-card .name::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid var(--muted);
  background: transparent;
}
.skill-card[data-status="live"] .name::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 150, 0.5);
}

/* ==========================================================================
   SKILL PAGE
   ========================================================================== */

.skill-head { margin-bottom: 10px; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.badge[data-accent="green"] { color: var(--green); border-color: rgba(0, 255, 150, 0.45); }

.descriptor {
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 64ch;
}

.skill-body { margin-top: 8px; }

section.block { margin-top: 46px; }
section.block > h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  margin-bottom: 14px;
}

section.block ul { margin: 14px 0; padding-left: 20px; }
section.block li { margin: 8px 0; font-weight: 300; }
section.block li::marker { color: var(--cyan); }

/* "Writeup coming" placeholder for unwritten sections */
.coming {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 22px 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.coming::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

/* diagram / screenshot frame placeholder */
.frame {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(0,212,255,0.02) 0 12px, transparent 12px 24px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
}
.frame .glyph {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  position: relative;
}
.frame .glyph::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
}
.frame .cap {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.frame .sub { font-size: 0.85rem; color: var(--muted); font-weight: 300; max-width: 46ch; }

/* impact stat callouts */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 16px 18px;
}
.stat .num {
  font-family: var(--mono);
  font-size: 1.7rem;
  color: var(--cyan);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* callout / gotcha box */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--green-wash);
  padding: 14px 18px;
  margin: 16px 0;
  font-weight: 300;
}
.callout .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}

/* code & further reading links */
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.links a:hover {
  text-decoration: none;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}
.links a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
  border-style: dashed;
}

/* ---- footer ---- */
footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--cyan); text-decoration: none; }

/* Site-wide legal disclaimer. The text is real markup (a <p class="disclaimer"> inside every
   page's <footer>) so it is selectable, in the DOM, and reliably read by assistive tech; this rule
   only styles it. The wording is byte-identical on every page and enforced by
   scripts/check-site-disclaimer.py (CI gate), so it cannot drift. */
.disclaimer {
  margin: 14px 0 0;
  max-width: 760px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  body { padding-top: 28px; }
  .skill-grid { grid-template-columns: 1fr; }
}
