/* ajmyers.net: resume cover page.
   System fonts only, and no inline styles or scripts: the CSP allows same-origin resources only.
   The scripts are hero.js (the home page's background animation), highlight.js (colours code)
   and /pa-docker/setup/wizard.js (the setup page).
   Palette: whites, greys, blues and near-black. The hero and the contact panel are always dark. */

/* Tokens, chrome and code colours are shared with pages outside this repo; see each file's header */
@import url("tokens.css");
@import url("chrome.css");
@import url("code.css");

/* Dark surfaces re-scope the palette, so everything inside them just works */
.hero-shell, .contact {
  --ink: #f3f6fb;
  --ink-soft: #c3cbd8;
  --muted: #8b95a7;
  --rule: rgba(255, 255, 255, 0.1);
  --accent: #60a5fa;
  --accent-2: #93c5fd;
  --accent-ink: #05070d;
  --chip: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---- Hero ------------------------------------------------------------- */

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--bar));   /* run under the sticky masthead */
  padding-top: var(--bar);
  background:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(37, 99, 235, 0.32), transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 0%, rgba(96, 165, 250, 0.14), transparent 70%),
    linear-gradient(180deg, #05070d 0%, #070c18 100%);
}

.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Fine dot texture across the whole hero */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}

/* Canvas drawn by hero.js: the scrolling grid floor, racing cubes with light trails, and
   shooting stars. Stays empty without JavaScript. */
.hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-cube {
  position: absolute;
  top: 50%;
  right: max(0rem, calc((100% - var(--wrap)) / 2 - 3rem));
  width: min(46vw, 34rem);
  height: auto;
  translate: 0 -50%;
  filter: drop-shadow(0 0 32px rgba(59, 130, 246, 0.35));
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(3.5rem, 8vw, 5.5rem);
}

/* A quiet background behind a page's hero, the width of the window, in two layers:
   - always there: a faint isometric grid (the lines of a data cube's faces) with a soft glow of the
     accent, in the top right and bottom left corners;
   - moving: the rest of the same grid, of which only a band shows at a time, drifting slowly from
     left to right and back, and kept faint behind the text.
   --hero-tint picks the glow's colour, so a page can have its own. The home page's dark hero
   (.hero-shell) has art of its own. */
.hero:not(.hero-shell .hero)::before,
.hero:not(.hero-shell .hero)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background-size: auto, auto, 56px 32.33px;
}
/* The corners: grid and glow, each anchored in its corner, as a mirror of the other: the top
   right one under the masthead, the bottom left one on the line above the next section */
.hero:not(.hero-shell .hero)::before {
  background-image:
    radial-gradient(ellipse 45% 70% at 92% 8%, color-mix(in srgb, var(--hero-tint, var(--accent)) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 38% 65% at 4% 96%, color-mix(in srgb, var(--hero-tint, var(--accent)) 26%, transparent), transparent 70%),
    url("/hero-grid.svg");
  opacity: 0.5;
  mask-image:
    radial-gradient(ellipse 55% 85% at 88% 18%, #000 0%, transparent 72%),
    radial-gradient(ellipse 42% 75% at 6% 92%, #000 0%, transparent 70%);
  -webkit-mask-image:
    radial-gradient(ellipse 55% 85% at 88% 18%, #000 0%, transparent 72%),
    radial-gradient(ellipse 42% 75% at 6% 92%, #000 0%, transparent 70%);
}
/* The moving band, through three masks at once: a diagonal band, which the animation moves across;
   a fade at the top and bottom, so it never meets the masthead or the section below with an edge;
   and a dip behind the text, on the left, so it stays out of the way of reading */
.hero:not(.hero-shell .hero)::after {
  background-image: url("/hero-grid.svg");
  background-size: 56px 32.33px;
  opacity: 0.6;
  mask-image: linear-gradient(100deg, transparent 25%, #000 45%, #000 55%, transparent 75%), linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent), radial-gradient(ellipse 60% 65% at 32% 55%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 45%, #000 100%);
  mask-size: 300% 100%, 100% 100%, 100% 100%;
  mask-repeat: no-repeat;
  mask-position: 100% 0, 0 0, 0 0;
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 45%, #000 55%, transparent 75%), linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent), radial-gradient(ellipse 60% 65% at 32% 55%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 45%, #000 100%);
  -webkit-mask-size: 300% 100%, 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0, 0 0, 0 0;
  -webkit-mask-composite: source-in;
}

/* The band drifts across and back, very slowly. For readers who ask for less motion it doesn't
   show at all: the corners are the background */
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.hero-shell .hero)::after { animation: hero-sweep 24s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .hero:not(.hero-shell .hero)::after { display: none; }
}
@keyframes hero-sweep {
  from { mask-position: 100% 0, 0 0, 0 0; -webkit-mask-position: 100% 0, 0 0, 0 0; }
  to { mask-position: 0% 0, 0 0, 0 0; -webkit-mask-position: 0% 0, 0 0, 0 0; }
}

/* The window-wide background mustn't make the page scroll sideways */
html, body { overflow-x: clip; }
.hero-shell .hero > * { max-width: 36rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(96, 165, 250, 0); }
}

h1 {
  margin: 0;
  font: 700 clamp(2.9rem, 8vw, 5.25rem)/1 var(--sans);
  letter-spacing: -0.045em;
}
.hero-shell .hero h1 {
  background: linear-gradient(100deg, #ffffff 30%, #9cc6ff 75%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;  /* keep descenders inside the clipped background */
}

.role-line {
  margin: 1rem 0 0;
  color: var(--ink);
  font: 500 clamp(1.2rem, 2.6vw, 1.5rem)/1.3 var(--sans);
  letter-spacing: -0.015em;
}

.lead { margin: 1.4rem 0 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }

/* Where the work was done: the names a skimming reader looks for */
.employers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  margin: 1.5rem 0 0;
  color: var(--ink);
  font: 600 1.0625rem/1.3 var(--sans);
  letter-spacing: -0.01em;
}
.employers span {
  color: var(--muted);
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.button:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-1px); }

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 6px 24px -6px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.button.primary:hover { box-shadow: 0 10px 32px -6px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.button.primary::after { content: "→"; transition: translate 0.2s; }
.button.primary:hover::after { translate: 3px 0; }
/* A primary button that jumps down the page points down */
.button.primary[href^="#"]::after, .button.primary[href$=".pdf"]::after { content: "↓"; }
.button.primary[href^="#"]:hover::after, .button.primary[href$=".pdf"]:hover::after { translate: 0 3px; }

@media (max-width: 52rem) {
  .hero-cube { right: -18%; width: 80vw; opacity: 0.35; }
}

/* ---- Sections ---------------------------------------------------------- */

main { counter-reset: section; }

.section {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: 0 2.5rem;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--bar);
  counter-increment: section;
}
.hero-shell + .section { border-top: 0; }

.section-label {
  margin: 0.3rem 0 1.5rem;
  color: var(--ink);
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label::before {
  content: counter(section, decimal-leading-zero) " / ";
  color: var(--accent);
}

@media (max-width: 48rem) {
  .section { grid-template-columns: 1fr; }
}

h3 { margin: 0; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -0.015em; }

/* ---- Experience timeline ---------------------------------------------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
  border-left: 1px solid var(--rule);
}

/* Dates sit on the right of the title line, like a printed resume */
.role { position: relative; }
.timeline .role + .role { margin-top: 3rem; }

/* Node on the rail */
.timeline .role::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 5px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.timeline .role:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.when {
  position: absolute;
  top: 0.3rem;
  right: 0;
  margin: 0;
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.role-body h3 { padding-right: 12rem; }
/* The dates follow the company in the markup (title, company, dates: the order a reader and a
   resume parser expect) and are lifted to the right of the title on wide screens */
.role-body > .when { margin: 0; color: var(--muted); }

.role-body > p { margin: 0.75rem 0 0; color: var(--ink-soft); }
.role-body .org { margin-top: 0.2rem; color: var(--accent); font-weight: 600; }
.role-body .org span { color: var(--muted); font-weight: 400; }
.note { color: var(--muted); font-weight: 400; font-size: 1rem; }

.points { margin: 1rem 0 0; padding: 0; list-style: none; }
.points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.points li + li { margin-top: 0.6rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--accent);
  rotate: 45deg;
}
.points strong { color: var(--ink); font-weight: 600; }

@media (max-width: 40rem) {
  .when, .role-body > .when { position: static; margin: 0.2rem 0 0; }
  .role-body h3 { padding-right: 0; }
}

.more-link { margin: 2.25rem 0 0; font-weight: 500; }

/* ---- Resume page (/resume/) ------------------------------------------- */

.resume .hero { padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.resume h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
.resume .lead { max-width: 46rem; }
.print-only { display: none; }

/* ---- Expertise --------------------------------------------------------- */

.expertise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 40rem) { .expertise { grid-template-columns: 1fr; } }

.skill-group {
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.skill-group h3 { font-size: 1.05rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--chip);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---- Education --------------------------------------------------------- */

.education .when { top: 0.3rem; }

/* ---- Tools ------------------------------------------------------------- */

.section-intro { margin: 0 0 1.5rem; color: var(--ink-soft); max-width: 40rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 40rem) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
/* Thin blue light along the top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.7;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  box-shadow: 0 12px 36px -14px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}
/* The live project: full width, with an example command beside the text */
.card.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.6rem;
}
.card.featured h3 { font-size: 1.2rem; }
@media (max-width: 56rem) { .card.featured { grid-template-columns: minmax(0, 1fr); } }

/* A terminal window, always dark */
.term {
  margin: 0;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 10px;
  background: #0a1122;
  color: #dbe6f5;
  overflow: hidden;
}
.term figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8b95a7;
  font: 500 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.term figcaption::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 1.5rem;
  border-radius: 50%;
  background: #3b4a66;
  box-shadow: 0.85rem 0 0 #3b4a66, 1.7rem 0 0 #3b4a66;
}
.term pre { margin: 0; padding: 0.9rem 1rem 1rem; font-size: 0.8125rem; line-height: 1.7; overflow-x: auto; }
.term code { font-size: 1em; }
.term-note { color: #6f8fc2; }

.subhead {
  margin: 2.25rem 0 0.9rem;
  color: var(--muted);
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cards.compact { grid-template-columns: repeat(3, 1fr); }
.cards.compact.two { grid-template-columns: repeat(2, 1fr); }
.cards.compact .card { padding: 1.1rem 1.15rem; }
.cards.compact .card h3 { font-size: 0.95rem; }
.cards.compact .card p { font-size: 0.875rem; }
@media (max-width: 56rem) { .cards.compact { grid-template-columns: 1fr; } }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.card h3 { font: 600 1.05rem/1.3 var(--mono); letter-spacing: 0; }
.card p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.card .card-links { margin-top: 0.85rem; font-weight: 500; }

.badge {
  flex: none;
  padding: 0.15rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font: 600 0.65rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* A version keeps its case: v1.2.0, not V1.2.0 (release.js) */
.badge.version {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---- Contact: a dark panel that bookends the hero -------------------- */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    linear-gradient(160deg, #0a1122, var(--night));
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }
.contact-line { margin: 0; font: 600 clamp(1.35rem, 2.8vw, 1.85rem)/1.3 var(--sans); letter-spacing: -0.025em; }
.contact .actions { margin-top: 1.5rem; }

/* ---- 404 --------------------------------------------------------------- */

.notfound { padding-block: clamp(5rem, 16vw, 9rem); }
.notfound h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.notfound p { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1.125rem; }

/* ---- Setup page (/pa-docker/setup/) and code blocks ----------------------- */
/* The callout, code, table and step styles are also used by the project pages. The setup
   page's script (wizard.js) shows and hides blocks with the hidden attribute. */

/* A note under a hero: a quiet line, not a box. Its opening <strong> is the label, drawn as the
   site's badge; the rest reads in the hero's quieter colour. The libraries' landing pages show
   their release the same way. */
.callout {
  max-width: none;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.callout p > strong:first-child {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font: 600 0.65rem/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.6rem; }

code, kbd, pre { font-family: var(--mono); font-size: 0.875em; }
.setup p code, .setup li code, .setup td code, .callout code {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--chip);
  overflow-wrap: anywhere;
}
kbd { padding: 0.05em 0.35em; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }

.picker { display: grid; gap: 1.75rem; }
.picker fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker legend { padding: 0; font: 600 1.15rem/1.3 var(--sans); }
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: block;
  height: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}
.choice label:hover { border-color: var(--muted); }
.choice input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-title { display: block; font-weight: 600; font-size: 0.95rem; }
.choice input:checked + label .choice-title::before { content: "✓ "; color: var(--accent); }
.choice-hint { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.hint { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.875rem; }

.steps { min-width: 0; color: var(--ink-soft); }
.steps > p, .steps > div > p { margin: 0 0 1rem; }
.steps > :last-child { margin-bottom: 0; }
.numbered { margin: 0 0 1rem; padding-left: 1.4rem; }
.numbered > li + li { margin-top: 0.75rem; }
.numbered > li > p { margin: 0 0 0.6rem; }
.os-title { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }
.more { color: var(--muted); font-size: 0.9rem; }
.step-note { color: var(--muted); font-style: italic; }
.copy-tip { font-size: 0.925rem; }
.ph {
  padding: 0 0.15em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
}

.code { margin: 0 0 1rem; }
.code figcaption { margin-bottom: 0.3rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; }
.code pre {
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;       /* long one-liners wrap on screen but copy as one line */
  overflow-wrap: anywhere;
}
/* One click selects the whole command */
.setup .code code { padding: 0; background: none; border-radius: 0; }
.code code { user-select: all; -webkit-user-select: all; cursor: text; }

/* The syntax colours are in code.css. The home page's terminal is dark in both schemes */
.term {
  --tok-c: #6f8fc2; --tok-s: #7dd3a8; --tok-k: #c4a7ff; --tok-a: #f5c26b;
  --tok-n: #f5c26b; --tok-t: #67d5e8; --tok-f: #8ab8ff; --tok-p: #8ab8ff;
}

details.steps > summary {
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 500;
}

/* A prompt for a coding agent, collapsed until the reader asks for it: a <details class="prompt">
   whose summary is its caption row ("Prompt", and "Show the full prompt" or "Hide the prompt")
   and whose text is the <pre> inside. It needs no script. copy.js puts the Copy button on the
   <details>, at the right of that row, so it is there and copies the whole prompt while closed.
   Where the browser has ::details-content, a closed prompt shows its first lines, fading out;
   elsewhere it is the row alone. Shared: the landing pages and the Docker page that
   ajmyers/skipcheck-tm1 generates (api-site/scripts/prompts.mjs) are written in these classes. */
details.prompt {
  margin: 0 0 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
details.prompt > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-height: 2.4rem;
  padding: 0.4rem 4.75rem 0.4rem 1rem;    /* room on the right for copy.js's button */
  color: var(--muted);
  font: 500 0.8rem/1.4 var(--sans);
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
}
details.prompt > summary::-webkit-details-marker { display: none; }
details.prompt > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.prompt-toggle { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent); }
.prompt-toggle::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 0.15s;
}
details.prompt[open] .prompt-toggle::before { transform: translateY(0.1rem) rotate(-135deg); }
details.prompt > summary:hover .prompt-toggle { text-decoration: underline; text-underline-offset: 0.2em; }
details.prompt[open] .prompt-show, details.prompt:not([open]) .prompt-hide { display: none; }
details.prompt pre {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
details.prompt pre code { padding: 0; background: none; }
details.prompt:not([open])::details-content {
  content-visibility: visible;
  display: block;
  max-height: 6.5rem;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent);
  mask-image: linear-gradient(to bottom, #000 25%, transparent);
}
.steps details.prompt { margin: 1rem 0 0; }
/* A prompt's Copy button is how it reaches an agent other than Claude, so it isn't quiet */
.copy-wrap > details.prompt ~ .copy { opacity: 1; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.setup table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.setup th, .setup td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.setup th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }

.credit { padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.925rem; }

/* The hidden attribute wins over the display rules above */
.setup [hidden] { display: none !important; }

.code figcaption.with-copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wz-btn {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--chip);
  color: var(--ink);
  font: 500 0.8rem/1.2 var(--sans);
  cursor: pointer;
}
.wz-btn:hover { border-color: var(--muted); }
button.button { cursor: pointer; }

.wz-input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.925rem;
}
.wz-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wz-name { width: 9rem; }
.wz-port { width: 5.5rem; }
.wz-groups { flex: 1 1 12rem; min-width: 0; }
.wz-path { width: 100%; max-width: 24rem; font-family: var(--mono); }
.wz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.wz-check { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.9rem 0 0; font-size: 0.95rem; }
.wz-check label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.steps > .wz-check { margin: 0 0 0.6rem; }

.wz-options > summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.picker fieldset.wz-part {
  margin-top: 1.1rem;
  padding: 0.9rem 1.2rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.picker .wz-part legend { padding: 0 0.4rem; font-size: 1rem; }
.wz-part > .hint:first-of-type { margin-top: 0; }
.wz-part .wz-btn { margin-top: 0.3rem; }

/* Problems with the choices are the one note that's a box: they have to be dealt with */
.wz-problems {
  padding: 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, #d9822b 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, #d9822b 7%, transparent);
  color: var(--ink-soft);
}
.wz-problems p > strong:first-child { border-color: color-mix(in srgb, #d9822b 50%, transparent); background: color-mix(in srgb, #d9822b 12%, transparent); color: #b45309; }
.wz-problems ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.steps > div > .os-title:first-child, .steps > .os-title:first-child { margin-top: 0; }
.steps .os-title { margin-top: 2rem; }
.steps details.steps { margin-bottom: 1rem; }
.steps .actions { margin: 0 0 1rem; }

/* ---- Motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Print: a clean one-pager ----------------------------------------- */

@media print {
  @page { margin: 1.2cm 1.5cm; }

  :root, .hero-shell, .contact {
    --paper: #fff; --surface: #fff; --ink: #000; --ink-soft: #222; --muted: #555;
    --rule: #ccc; --accent: #000; --accent-2: #555; --chip: #fff;
  }

  body { font-size: 9.5pt; line-height: 1.45; }
  .masthead, .skip, .actions, .hero-art, .kicker, #projects, #contact { display: none; }
  .wrap { width: auto; max-width: none; }

  .hero-shell { margin: 0; padding: 0; background: none; }
  .hero, .resume .hero { padding: 0 0 0.8rem; }
  .print-only { display: block; margin: 0.3rem 0 0; color: #333; font-size: 9pt; }
  .hero-shell .hero > * { max-width: none; }
  /* Normal letter spacing in print: with the tight screen spacing, PDF text extraction (and so
     resume parsers) read "Andrew Myers" as one word */
  h1, .hero h1, .resume h1 { font-size: 26pt; background: none; color: #000; letter-spacing: 0; word-spacing: 0.08em; }
  .role-line { font-size: 12pt; margin-top: 0.3rem; }
  .lead, .resume .lead { font-size: 9.5pt; margin-top: 0.7rem; max-width: none; }

  .section { grid-template-columns: 1fr; padding-block: 0.5rem; }
  .section-label { break-after: avoid; }
  #education { break-inside: avoid; }
  /* No letter spacing: spaced capitals are extracted as "E X P E R I E N C E", which parsers
     don't recognise as a section heading */
  .section-label { margin: 0 0 0.5rem; letter-spacing: 0; }
  /* Nothing positioned: browsers paint positioned elements after the rest, and the PDF's text
     follows paint order, so positioned blocks were extracted after everything else on the page */
  .hero, .timeline, .role, .points li { position: static; }
  .section-label::before { content: none; }
  .timeline { padding-left: 0; border-left: 0; }
  .timeline .role::before { content: none; }
  .role { break-inside: avoid; }
  /* One column, in reading order: resume parsers read the PDF's text top to bottom, and dates
     positioned to the right of a title, or skills in two columns, come out scrambled */
  .when, .role-body > .when { position: static; margin: 0.05rem 0 0; font-size: 8.5pt; }
  .role-body h3 { padding-right: 0; }
  .timeline .role + .role { margin-top: 0.6rem; }
  h3 { font-size: 11pt; }
  .points { margin-top: 0.35rem; }
  .points li + li { margin-top: 0.2rem; }
  /* Ordinary list bullets: the screen's drawn markers need a positioned list item */
  .points { padding-left: 1.1rem; list-style: disc; }
  .points li { padding-left: 0.15rem; }
  .points li::before { content: none; }

  .expertise { grid-template-columns: 1fr; gap: 0.3rem; }
  .skill-group h3 { font-size: 10pt; }
  .skill-group { padding: 0; border: 0; }
  .chips { gap: 0.1rem 0.5rem; margin-top: 0.15rem; }
  .chips li { padding: 0; border: 0; background: none; font-size: 9pt; }
  /* Commas: the separator resume parsers split a skills list on most reliably */
  .chips li:not(:last-child)::after { content: ","; }

  /* The resume PDF needs no site footer; other pages keep a small one */
  .footer { padding: 0.6rem 0 0; font-size: 7.5pt; }
  .resume ~ .footer { display: none; }
  a { color: inherit; text-decoration: none; }
}

/* A command per system, chosen with radio buttons drawn as tabs (no JavaScript needed). The first
   is the default; the input after a label's partner shows its figure. */
.os-tabs { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 0.25rem; }
.os-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.os-tabs label {
  padding: 0.3rem 0.8rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.os-tabs input:checked + label { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.os-tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.os-tabs figure { flex-basis: 100%; margin-top: 0.5rem; }
.os-tabs .os-ps { display: none; }
#pa-os-ps:checked ~ .os-sh { display: none; }
#pa-os-ps:checked ~ .os-ps { display: block; }
