/* ═══════════════════════════════════════════════════════════════
   JASON — ONYX GOLD
   Loaded after site.css on Jason's pages only. Swaps the color
   tokens like the other themes do, plus Jason-only components
   (all prefixed .jx-) so nothing collides with the shared system.
   ═══════════════════════════════════════════════════════════════ */

.theme-onyx {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --bg: #0c0c0b; --bg-2: #101010; --surface: #181715; --surface-2: #1e1c19;
  --line: rgba(212, 175, 55, 0.14); --line-strong: rgba(212, 175, 55, 0.32);
  --text: #ffffff; --text-2: #b5afa2; --text-3: #8a8578;
  --accent: #d4af37; --accent-2: #a8955a; --accent-ink: #0c0c0b; --glow: rgba(212, 175, 55, 0.16);
  --onyx-row: #221f1a;
}
.theme-onyx ::selection { background: rgba(212, 175, 55, 0.3); }
.theme-onyx h1, .theme-onyx h2 { font-weight: 500; letter-spacing: -0.005em; }
.theme-onyx h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.theme-onyx .eyebrow { font-family: var(--font-mono); font-weight: 500; letter-spacing: .2em; }
.theme-onyx .hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: 1.02; }
.theme-onyx .panel h3 { font-size: 1.08rem; }

/* hero */
.jx-hero {
  background:
    radial-gradient(ellipse 50% 60% at 85% 25%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 45% at 5% 95%, rgba(168, 149, 90, 0.06), transparent 60%),
    var(--bg);
}
.jx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000, transparent 75%);
}
.jx-rule { width: 64px; height: 1px; margin-top: 40px; background: var(--accent); }
.jx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--text-3); font: 500 .8rem var(--font-mono); letter-spacing: .06em; }
.jx-crumbs a { color: var(--text-2); text-decoration: none; }
.jx-crumbs a:hover { color: var(--accent); }

/* about */
.jx-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.jx-about p { color: var(--text-2); }
.jx-about p + p { margin-top: 18px; }
.jx-about strong { color: var(--text); font-weight: 500; }
.jx-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.jx-list li { display: flex; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--onyx-row); }
.jx-list li:last-child { border-bottom: 0; }
.jx-list .k { min-width: 26px; color: var(--accent); font: 500 .72rem/2.1 var(--font-mono); letter-spacing: .14em; }
.jx-list b { display: block; font-weight: 600; }
.jx-list span { color: var(--text-2); font-size: .94rem; }

/* icon badge */
.jx-icon { width: 40px; height: 40px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--accent); }
.jx-icon svg { width: 18px; height: 18px; }
.jx-num { display: block; margin-bottom: 14px; color: var(--accent); font: 500 .75rem var(--font-mono); letter-spacing: .16em; }

/* mockup */
.jx-showhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.jx-showhead h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.jx-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.jx-toggle button { padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--text-3); font: 500 .74rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.jx-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.jx-mock {
  --m-bg: #0c0c0b; --m-panel: #181715; --m-panel2: #141311; --m-border: #2c2a24; --m-row: #221f1a;
  --m-accent: #d4af37; --m-accent2: #a8955a; --m-ink: #ffffff; --m-dim: #8a8578; --m-pos: #00a86b;
  --m-glow: none; --m-font: var(--font-body);
  overflow: hidden; border: 1px solid var(--m-border); border-radius: 20px; background: var(--m-bg);
  color: var(--m-ink); font-family: var(--m-font);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02);
  transition: background-color .4s, border-color .4s;
}
.jx-mock[data-skin="nightops"] {
  --m-bg: #010804; --m-panel: #07130b; --m-panel2: #0a1a10; --m-border: #14401f; --m-row: #0c2414;
  --m-accent: #00ff80; --m-accent2: #35e0ff; --m-ink: #e7fff2; --m-dim: #7fae90; --m-pos: #00ff80;
  --m-glow: 0 0 6px rgba(0, 255, 128, .35), 0 0 18px rgba(0, 255, 128, .15); --m-font: var(--font-mono);
  background-image: linear-gradient(rgba(0, 255, 128, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 128, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.jx-mock * { transition: color .4s, background-color .4s, border-color .4s, fill .4s, stroke .4s; }
.jx-mtop { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--m-border); background: var(--m-panel2); }
.jx-dots { display: flex; gap: 6px; }
.jx-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-border); }
.jx-mtitle { color: var(--m-accent); font: 500 .74rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; text-shadow: var(--m-glow); }
.jx-badge { padding: 6px 10px; border: 1px solid var(--m-border); border-radius: 999px; color: var(--m-dim); font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; }
.jx-mbody { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 420px; }
.jx-rail { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--m-border); background: var(--m-panel2); }
.jx-rail div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--m-dim); font-size: .82rem; }
.jx-rail div::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--m-border); }
.jx-rail .on { background: var(--m-panel); color: var(--m-ink); }
.jx-rail .on::before { background: var(--m-accent); box-shadow: var(--m-glow); }
.jx-mmain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 16px; padding: 20px; }
.jx-stat, .jx-chart, .jx-rows { border: 1px solid var(--m-border); border-radius: 12px; background: var(--m-panel); }
.jx-stat { padding: 16px; }
.jx-stat small { display: block; color: var(--m-dim); font: 500 .62rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.jx-stat strong { display: block; margin-top: 10px; font: 500 1.35rem/1 var(--font-mono); }
.jx-stat .up { color: var(--m-pos); }
.jx-chart { grid-column: 1 / -1; padding: 16px; }
.jx-chart svg { width: 100%; height: 160px; }
.jx-chart .line { fill: none; stroke: var(--m-accent); stroke-width: 2; }
.jx-mock[data-skin="nightops"] .jx-chart .line { filter: drop-shadow(0 0 4px rgba(0, 255, 128, .6)); }
.jx-chart .area { fill: var(--m-accent); opacity: .08; }
.jx-chart .grid { stroke: var(--m-row); stroke-width: 1; }
.jx-rows { grid-column: 1 / -1; }
.jx-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 80px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--m-row); }
.jx-row:last-child { border-bottom: 0; }
.jx-skel { height: 8px; border-radius: 4px; background: var(--m-row); }
.jx-bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--m-row); }
.jx-bar i { display: block; height: 100%; background: var(--m-accent2); }
.jx-pill { justify-self: end; padding: 5px 8px; border-radius: 6px; color: var(--m-pos); background: color-mix(in srgb, var(--m-pos) 12%, transparent); font: 500 .62rem/1 var(--font-mono); letter-spacing: .12em; }
.jx-pill.idle { color: var(--m-dim); background: color-mix(in srgb, var(--m-dim) 12%, transparent); }
.jx-caption { margin-top: 16px; color: var(--text-3); font: 400 .76rem/1.5 var(--font-mono); letter-spacing: .04em; }

/* palettes */
.jx-pals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.jx-pal { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.jx-strip { display: grid; grid-template-columns: repeat(8, 1fr); height: 96px; }
.jx-pal-meta { padding: 22px 24px; }
.jx-pal-meta h3 { margin-bottom: 6px; font: 500 1.6rem/1.2 var(--font-display); }
.jx-pal-meta p { color: var(--text-2); font-size: .95rem; }
.jx-hexes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jx-hexes code { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); font: 400 .7rem/1 var(--font-mono); }
.jx-themes { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 20px; }
.jx-themes i { height: 28px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .05); }

/* night ops desktop illustration */
.jx-desk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.jx-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid #14401f; border-radius: 16px;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 255, 128, .12), transparent 55%), linear-gradient(180deg, #030f06, #010804);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.jx-screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 255, 128, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 128, .06) 1px, transparent 1px); background-size: 32px 32px; }
.jx-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.jx-term { position: absolute; z-index: 1; left: 7%; top: 12%; width: 54%; overflow: hidden; border: 1px solid #14401f; border-radius: 8px; background: rgba(7, 19, 11, .92); color: #7fae90; font: 400 .7rem/1.7 var(--font-mono); }
.jx-term .tb { display: flex; gap: 5px; padding: 7px 10px; border-bottom: 1px solid #14401f; }
.jx-term .tb i { width: 7px; height: 7px; border-radius: 50%; background: #14401f; }
.jx-term pre { margin: 0; padding: 10px 12px; white-space: pre-wrap; font: inherit; }
.jx-term .g { color: #00ff80; text-shadow: 0 0 6px rgba(0, 255, 128, .5); }
.jx-term .c { color: #35e0ff; }
.jx-term .a { color: #ffb700; }
.jx-win { position: absolute; z-index: 1; right: 7%; top: 28%; width: 34%; height: 46%; display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid #14401f; border-radius: 8px; background: rgba(10, 26, 16, .9); }
.jx-win i { display: block; height: 7px; border-radius: 4px; background: #0c2414; }
.jx-win i.hl { width: 40%; background: #00ff80; box-shadow: 0 0 8px rgba(0, 255, 128, .6); }
.jx-taskbar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 9%; display: flex; align-items: center; gap: 10px; padding: 0 3%; border-top: 1px solid #14401f; background: rgba(5, 14, 8, .95); }
.jx-taskbar i { width: 18px; height: 18px; border-radius: 5px; background: #0c2414; }
.jx-taskbar i.on { background: #00ff80; box-shadow: 0 0 8px rgba(0, 255, 128, .6); }
.jx-checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.jx-checks li { position: relative; padding-left: 26px; color: var(--text-2); }
.jx-checks li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--accent); }
.jx-checks b { color: var(--text); font-weight: 600; }

/* featured project card (About page) */
.jx-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: inherit; text-decoration: none; transition: transform .35s, box-shadow .35s, border-color .35s; }
.jx-feature:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 50px rgba(212, 175, 55, .08); }
.jx-feature .jx-mock { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.jx-feature .jx-mbody { grid-template-columns: 1fr; min-height: 0; }
.jx-feature .jx-rail { display: none; }
.jx-feature-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.jx-feature-body h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.jx-feature-body p { color: var(--text-2); }
.jx-link { margin-top: auto; color: var(--accent); font-weight: 600; }
.jx-note { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); font-size: .95rem; }
.jx-note b { color: var(--text); font-weight: 600; }

@media (max-width: 920px) {
  .jx-about, .jx-desk, .jx-feature { grid-template-columns: 1fr; }
  .jx-feature .jx-mock { border-right: 0; border-bottom: 1px solid var(--line); }
  .jx-pals { grid-template-columns: 1fr; }
  .jx-mbody { grid-template-columns: 1fr; }
  .jx-rail { display: none; }
}
@media (max-width: 600px) {
  .jx-mmain { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .jx-stat:nth-child(3) { display: none; }
  .jx-row { grid-template-columns: 1fr 1fr 64px; }
  .jx-row > :nth-child(2) { display: none; }
  .jx-term { width: 72%; font-size: .56rem; }
  .jx-win { display: none; }
  .jx-themes { grid-template-columns: repeat(12, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .jx-mock, .jx-mock *, .jx-feature { transition: none; } }
