/* jacqueskochen.com. The board is the owner's Athena clean screen, token for token: the same cool-blue
   palette, Inter for text, JetBrains Mono for the small caps, Space Grotesk for the brand and headings.
   Dark only, by the owner's decision (8 Oct 2026): one theme, declared in the gate. Colours are rgb
   triplets, Athena's way, so an alpha can be added where a surface needs one. */

:root, :root[data-theme="dark"] {
  --bg: 11 24 31;         --bg2: 14 29 38;       --surface: 20 34 43;   --raised: 30 50 64;
  --border: 56 94 114;    --hair: 31 53 66;      --ink: 230 241 248;    --muted: 167 191 206;
  --faint: 141 169 186;   --accent: 106 171 210; --accent-ink: 6 19 26;
  --ok: 99 198 176;       --down: 240 130 140;
  /* the five lines: Athena's brain hues, far apart on the wheel so one never reads as another on a phone */
  --l-tracking: 88 212 142; --l-dashboards: 86 160 250; --l-agents: 178 146 255; --l-apps: 255 178 90; --l-research: 244 134 186;
  --glow: 0.9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  background: rgb(var(--bg)); color: rgb(var(--ink));
  font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(rgb(var(--hair)) 1px, transparent 1px);
  background-size: 22px 22px;
}
button, input { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: rgb(var(--accent)); }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; letter-spacing: 0.01em; }
.mono, .tele { font-family: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; }
.tele { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(var(--faint)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- top bar ---------- */
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 20px 6px; position: sticky; top: 0; z-index: 30;
  background: linear-gradient(rgb(var(--bg)) 70%, rgb(var(--bg) / 0));
}
.top .left, .top .right { display: flex; gap: 6px; align-items: center; }
.top .right { justify-content: flex-end; }
.brand { text-align: center; }
.brand h1 { margin: 0; font: 600 22px/1.1 "Space Grotesk", "Inter", sans-serif; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; justify-content: center; }
.brand h1 b { letter-spacing: 0.12em; }
.brand h1 span { color: rgb(var(--accent)); font-weight: 500; }
.brand .sub { margin-top: 3px; }
.mark { width: 22px; height: 22px; color: rgb(var(--accent)); }
.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; position: relative;
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); color: rgb(var(--muted)); cursor: pointer; text-decoration: none;
}
.iconbtn:hover, .iconbtn[aria-pressed="true"] { color: rgb(var(--accent)); border-color: rgb(var(--accent) / 0.6); }
.iconbtn .badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: rgb(var(--ok)); color: rgb(var(--accent-ink)); font: 700 10px/18px "JetBrains Mono", monospace; text-align: center;
}
.iconbtn .badge:empty, .iconbtn .badge[data-n="0"] { display: none; }

/* ---------- the board: the brain is the screen ---------- */
.board { position: relative; margin: 0 20px 8px; height: calc(100vh - 78px); min-height: 560px; transition: height .22s ease-out; }
.board.small { height: 320px; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .board { transition: none; } }
.orb { position: absolute; inset: 0; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.orb-search { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: min(280px, 70%); z-index: 3; }
.orb-search input {
  width: 100%; height: 34px; border-radius: 17px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface) / .92);
  padding: 0 14px 0 34px; outline: none;
}
.orb-search input:focus { border-color: rgb(var(--accent)); }
.orb-search svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: rgb(var(--faint)); }
.orb-tools { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.orb-tools .iconbtn { width: 32px; height: 32px; background: rgb(var(--surface) / .9); }
/* the tile is 480px on a wide screen and 30% of a narrower one, so the two buttons beside it never reach the
   centred search box (at 1366px they touched its left edge) */
.orb-grip, .orb-fold {
  position: absolute; left: calc(min(480px, 30vw) + 12px); z-index: 4; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgb(var(--border));
  background: rgb(var(--surface) / .9); color: rgb(var(--muted)); display: grid; place-items: center;
}
.orb-grip { top: 8px; cursor: grab; touch-action: none; }
.orb-fold { top: 46px; cursor: pointer; }
.orb-grip:hover, .orb-fold:hover { color: rgb(var(--accent)); border-color: rgb(var(--accent) / .6); }
.orb-grip svg, .orb-fold svg { width: 16px; height: 16px; }
.orb-fold svg { transition: transform .18s; }
.board.small .orb-fold svg { transform: rotate(180deg); }
.orb-cap { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; pointer-events: none; z-index: 2; }
.orb-cap .tele { white-space: normal; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.board.small .orb-cap, .board.small .orb-search { display: none; }
.tip { position: absolute; pointer-events: none; z-index: 5; padding: 5px 9px; border-radius: 7px; background: rgb(var(--raised)); border: 1px solid rgb(var(--border)); font-size: 12px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.tip[hidden] { display: none; }

/* ---------- the Everything tile, folded to its title bar until opened ---------- */
.tile {
  position: absolute; display: flex; flex-direction: column; overflow: hidden; z-index: 5;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--hair)); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(0.04 * var(--glow))), 0 10px 30px rgb(0 0 0 / calc(0.25 * var(--glow)));
}
.tile.everything { left: 0; top: 8px; width: min(480px, 30vw); max-height: calc(100% - 16px); }
.th { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; user-select: none; }
.th .handle { color: rgb(var(--faint)); display: grid; opacity: .55; margin-left: -6px; }
.th .handle svg { width: 14px; height: 14px; }
.tile:hover .th .handle { opacity: 1; color: rgb(var(--accent)); }
.th .tele { color: rgb(var(--ink)); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.th .tele svg { color: rgb(var(--accent)); width: 15px; height: 15px; }
.th .grow { flex: 1; }
.th .meta { font-size: 10px; color: rgb(var(--faint)); }
.tb { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 12px; }
.tile .fold { width: 24px; height: 24px; margin: -2px -4px -2px 0; border-radius: 7px; border: 1px solid transparent; background: transparent;
  color: rgb(var(--muted)); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.tile .fold:hover { color: rgb(var(--accent)); border-color: rgb(var(--border)); background: rgb(var(--raised)); }
.tile .fold svg { width: 14px; height: 14px; transition: transform .18s; }
.tile.folded .fold svg { transform: rotate(180deg); }
.tile.folded .tb { display: none; }
.tile.folded .th { padding-top: 8px; padding-bottom: 8px; }

/* the sub-boxes, one per line: Athena's menu groups */
.mgroups { display: grid; gap: 6px; }
.lbox { border: 1px solid rgb(var(--hair)); border-radius: 10px; overflow: hidden; }
.lbox summary { list-style: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; background: rgb(var(--raised) / .5); color: rgb(var(--ink)); cursor: pointer; user-select: none; }
.lbox summary::-webkit-details-marker { display: none; }
.lbox summary:hover { background: rgb(var(--raised)); }
.lbox summary .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--raised)); color: rgb(var(--line)); border: 1px solid rgb(var(--hair)); flex: none; }
.lbox summary .ic i { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--line)); }
.lbox summary .t { flex: 1; font-weight: 600; font-size: 13px; }
.lbox summary .chev { display: grid; color: rgb(var(--muted)); transition: transform .15s ease; transform: rotate(180deg); }
.lbox summary .chev svg { width: 14px; height: 14px; }
.lbox[open] summary .chev { transform: none; }
.lbox .rows { padding: 2px 6px 6px; }
.prow {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid rgb(var(--hair));
  color: inherit; text-decoration: none; cursor: pointer; border-radius: 6px;
}
.prow:last-child { border-bottom: 0; }
.prow:hover, .prow:focus-visible, .prow[aria-current="true"] { background: rgb(var(--raised)); }
.prow[aria-current="true"] { box-shadow: inset 2px 0 0 rgb(var(--line)); }
.prow .col { min-width: 0; flex: 1; }
.prow .t { font-weight: 600; font-size: 13px; }
.prow .s { color: rgb(var(--muted)); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .pr-also { color: rgb(var(--faint)); font-weight: 400; font-size: 11px; margin-left: 6px; }
.prow .pr-n { font: 500 13px "JetBrains Mono", monospace; color: rgb(var(--line)); white-space: nowrap; }
.prow .arrow { color: rgb(var(--faint)); }
/* work built in the employer role is said so, in the row and on the entry */
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 1px 6px; border-radius: 6px; border: 1px solid rgb(var(--border)); background: rgb(var(--raised)); color: rgb(var(--muted)); font: 600 10px/1.5 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.prow .tag { margin-left: 6px; }
.stop h3 .tag { font-size: 11px; position: relative; top: -3px; }
.work-note { margin-top: 10px; color: rgb(var(--faint)); font-size: 13px; max-width: 70ch; }
.prow.hit { display: none; }
.lbox.quiet { display: none; }

/* phone: one column in the bar, the tile across the screen, finger-sized controls */
@media (max-width: 899px) {
  .top { grid-template-columns: 1fr; padding: 12px 16px 6px; }
  .top .left { display: none; }
  .top .right { justify-content: center; }
  .board { margin: 0 12px 8px; height: calc(100vh - 150px); min-height: 480px; }
  .tile.everything { width: 100%; }
  .orb-grip { display: none; }
  .orb-tools { top: 54px; }
  .orb-fold { left: auto; right: 8px; top: 254px; }   /* under the four tools, clear of the Everything tile */
  .orb-search { top: 62px; width: min(320px, calc(100% - 110px)); left: 8px; transform: none; }
  .orb-tools .iconbtn, .orb-fold { width: 44px; height: 44px; }
  .tile .fold { width: 44px; height: 44px; margin: -10px -10px -10px 0; }
  .orb-search input { height: 44px; border-radius: 22px; font-size: 16px; padding: 0 14px 0 38px; }
  .orb-search svg { top: 14px; }
}

/* ---------- below the board: the same work, written out ---------- */
.intro { padding: 28px 0 0; display: flex; align-items: baseline; gap: 10px 28px; flex-wrap: wrap; }
.intro .headline { font: 600 clamp(1.3rem, 2vw, 1.7rem)/1.2 "Space Grotesk", "Inter", sans-serif; }
.intro .lede { color: rgb(var(--muted)); font-size: 15px; max-width: 60ch; }
.section-h { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.running { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgb(var(--hair)); }
.running .rh { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.running .rh .checked { margin-left: auto; }
.status { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.status li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid rgb(var(--hair)); border-radius: 10px; background: rgb(var(--surface)); }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--faint)); align-self: center; }
.status .up .dot { background: rgb(var(--ok)); }
.status .down .dot { background: rgb(var(--down)); }
.status .pname { font-weight: 600; font-size: 14px; }
.status .pname a { color: inherit; text-decoration: none; }
.status .pname a:hover { text-decoration: underline; }
.status .detail { display: block; color: rgb(var(--muted)); font-size: 12px; }
.pnote { color: rgb(var(--faint)); font-size: 12px; margin-top: 10px; }

/* The system map */
.map-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid rgb(var(--hair)); }
.map { margin: 24px 0 0; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .rail { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.map .station circle { fill: rgb(var(--bg)); stroke-width: 4; transition: stroke-width .15s; }
.map .station.xfer circle { stroke: rgb(var(--ink)); }
.map .station text { font-size: 16px; font-weight: 500; fill: rgb(var(--ink)); paint-order: stroke; stroke: rgb(var(--bg)); stroke-width: 5px; stroke-linejoin: round; }
.map .station:hover circle, .map .station:focus-visible circle { stroke-width: 7; }
.map .station:hover text, .map .station:focus-visible text { text-decoration: underline; }
.map .station:focus-visible { outline: none; }
.map-note { margin-top: 18px; color: rgb(var(--muted)); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  .map.draw .rail { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.4s cubic-bezier(.4,0,.2,1) forwards; }
  .map.draw .rail:nth-child(2) { animation-delay: .15s; }
  .map.draw .rail:nth-child(3) { animation-delay: .3s; }
  .map.draw .rail:nth-child(4) { animation-delay: .45s; }
  .map.draw .rail:nth-child(5) { animation-delay: .6s; }
  .map.draw .station { opacity: 0; animation: appear .4s ease-out forwards; animation-delay: 1.3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}
.line-index { display: none; margin-top: 20px; }
.line-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.line-index li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; }
.line-index .swatch { width: 14px; height: 100%; min-height: 28px; border-radius: 7px; background: rgb(var(--line)); }
.line-index .lname { font-weight: 600; }
.line-index .stops-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.line-index .stops-inline a { color: rgb(var(--muted)); text-decoration-color: rgb(var(--line)); }
@media (max-width: 760px) {
  .map .station text { display: none; }
  .line-index { display: block; }
  .map-note { display: none; }
}

/* A line: section header, then a rail of stops. These are the spots on the page the board rows go to. */
.line { margin-top: 64px; }
.line-head { display: grid; grid-template-columns: 14px 1fr; gap: 20px; align-items: start; }
.line-head .bar { background: rgb(var(--line)); border-radius: 7px; min-height: 100%; }
.line-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: rgb(var(--line)); }
.line-head p { margin-top: 8px; color: rgb(var(--muted)); font-size: 15px; }
.stops { list-style: none; margin: 8px 0 0; padding: 0 0 0 48px; position: relative; }
.stops::before { content: ""; position: absolute; left: 2px; top: 0; bottom: 0; width: 10px; border-radius: 5px; background: rgb(var(--line)); }
.stop { position: relative; padding: 40px 0 8px; scroll-margin-top: 16px; border-radius: 12px; }
.stop::before { content: ""; position: absolute; left: -46px; top: 48px; width: 18px; height: 18px; border-radius: 50%; background: rgb(var(--bg)); border: 4px solid rgb(var(--line)); box-sizing: border-box; }
.stop.xfer::before { border-color: rgb(var(--ink)); left: -48px; width: 22px; height: 22px; top: 46px; }
.stop.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgb(var(--accent) / 0.12); } 100% { background: transparent; } }
.stop h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.stop h3:focus { outline: none; }
.stop .also { color: rgb(var(--faint)); font-weight: 400; font-size: 13px; margin-left: 10px; white-space: nowrap; font-family: "Inter", sans-serif; }
.stop .live { display: inline-block; margin-top: 8px; font-weight: 500; }
.stop .what { margin-top: 14px; font-size: 15px; max-width: 66ch; }
.stop .note { margin-top: 10px; color: rgb(var(--faint)); max-width: 66ch; }
.stop .back { margin-top: 18px; display: inline-block; color: rgb(var(--faint)); font-size: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 22px 0 0; padding: 0; }
.facts div { min-width: 150px; max-width: 290px; }
.facts dt { font: 300 30px/1 "JetBrains Mono", monospace; letter-spacing: -0.02em; color: rgb(var(--line)); font-variant-numeric: tabular-nums; }
.facts dd { margin: 6px 0 0; color: rgb(var(--muted)); font-size: 13px; line-height: 1.4; }
.facts dd small { display: block; color: rgb(var(--faint)); font-size: 12px; margin-top: 3px; }
.stack { margin-top: 20px; color: rgb(var(--muted)); font-size: 13px; max-width: 72ch; }
.stack b { color: rgb(var(--ink)); font-weight: 600; }
.pics { display: grid; gap: 22px; margin: 26px 0 0; }
.pics figure { margin: 0; }
.pics img { border: 1px solid rgb(var(--border)); border-radius: 10px; background: rgb(var(--surface)); max-width: min(100%, 880px); }
.pics figcaption { margin-top: 8px; color: rgb(var(--faint)); font-size: 12px; max-width: 60ch; }
.pics.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.pics.two .portrait { max-width: 300px; }
.pics .portrait img { max-width: 300px; }
@media (max-width: 760px) {
  .pics.two { grid-template-columns: 1fr; }
  .pics .portrait img, .pics.two .portrait { max-width: 260px; }
}

/* How I build, About, footer */
.method { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgb(var(--hair)); }
.method dl { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 26px 32px; }
.method dt { font-weight: 600; font-size: 15px; font-family: "Space Grotesk", sans-serif; }
.method dd { margin: 6px 0 0; color: rgb(var(--muted)); }
.about { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgb(var(--hair)); display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.about img { border-radius: 50%; width: 200px; height: 200px; object-fit: cover; border: 3px solid rgb(var(--border)); }
.about p { margin-top: 14px; font-size: 15px; max-width: 62ch; }
.about .contact { margin-top: 22px; display: flex; gap: 10px 26px; flex-wrap: wrap; font-weight: 600; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about img { width: 150px; height: 150px; }
}
footer { margin-top: 64px; padding: 24px 0 44px; border-top: 1px solid rgb(var(--hair)); color: rgb(var(--faint)); font-size: 12px; }
footer p { max-width: 80ch; }
footer p + p { margin-top: 8px; }
