/* NYCTOPHILE · re-skinned to Olivier Marcolin Brand System Vol. 03 (approved 2026-11-13).
   Source of the tokens: ~/workspaces/om/personal-brand/01-creative/brand-system/tokens.css
   (published at brand.oliviermarcolin.com). Only the tokens and drawing-kit parts this page uses
   are copied here, so the brand's own .tag class cannot collide with the artifact cards.
   The dark sheet only: Char is the darkness, Bone and Field Beige are the two inks, Copper the accent.
   The torch engine (torch.js) is the original, unchanged. It binds to .artifact, .aisle, .aisle-head,
   .title, .plate, .uncat p, .bookplate, .dark, #beam, #hint, #plate-note, #lights and .pin-*. */

/* ---------- Faces (self-hosted, OFL, copied from the brand system) ---------- */
@font-face { font-family: 'Anton'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/anton-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'National Park'; font-weight: 200 800; font-style: normal; font-display: swap;
  src: url('fonts/national-park-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Mynerve'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/mynerve-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-style: normal; font-display: swap;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  /* Brand palette, dark sheet */
  --char:      #1A1410;   /* the sheet, and the darkness the lamp cuts through */
  --char-soft: #221B15;
  --bone:      #E8DFCE;   /* strong ink, 13.8:1 on char */
  --beige:     #A79B78;   /* Field Beige: body, labels, small print, 6.6:1 */
  --copper:    #D06E3A;   /* the accent on the dark sheet, 5.2:1 */
  --accent:    var(--copper);
  --fg-strong: var(--bone);
  --fg-1:      var(--beige);
  --fg-2:      var(--beige);
  --fg-3:      rgba(167, 155, 120, 0.5);     /* decoration only, never text */
  --rule:        rgba(167, 155, 120, 0.18);
  --rule-strong: rgba(167, 155, 120, 0.36);
  --line:        rgba(232, 223, 206, 0.72);  /* a drawn line */
  --ghost:       rgba(232, 223, 206, 0.035);  /* the aisle numerals in the dark */

  /* Brand type: five voices, one job each */
  --font-title: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-label: 'National Park', 'Inter', system-ui, sans-serif;
  --font-hand:  'Mynerve', 'Bradley Hand', 'Segoe Print', cursive;
  --font-read:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-code:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --t-hero:   clamp(64px, 15vw, 184px);
  --t-h1:     clamp(32px, 4.5vw, 56px);
  --t-spoken: clamp(18px, 2.2vw, 26px);
  --t-read:   16px;
  --t-label:  13px;
  --t-label-s: 12px;      /* the floor */
  --t-note:   clamp(18px, 1.6vw, 22px);
  --track-label: 0.14em;
  --page-x: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  background: var(--char);
  color: var(--fg-1);
  font-family: var(--font-read);
  font-weight: 400;
  font-size: var(--t-read);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; }
::selection { background: rgba(208, 110, 58, 0.35); color: var(--bone); }

/* The lettering: labels, nav, title blocks. Uppercase, weight 500, tracked, tabular figures. */
.lettering, .over, .mast-word, .switch-label, .aisle-kicker, .tag-no, .acq, .uncat-label, .ex, .credit-link, .slot-kind, .kit-cat, .ba-btn, .plot-legend, .subhead, .cat-head, .rate-table th, .kit-name, .per, .col-unit {
  font-family: var(--font-label); font-weight: 500; font-size: var(--t-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  font-feature-settings: "tnum" 1, "case" 1;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 40;
  background: var(--bone); color: var(--char);
  padding: .5rem 1rem; font: 500 var(--t-label) var(--font-label); letter-spacing: var(--track-label);
  text-transform: uppercase; transition: top .2s; text-decoration: none;
}
.skip:focus-visible { top: 1rem; }

/* ---------- chrome (always above the darkness) ---------- */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem var(--page-x) 1rem;
  pointer-events: none;
  background: var(--char);
  border-bottom: 1px solid var(--rule);
}
.mark-link { pointer-events: auto; display: flex; flex: none; color: var(--accent); }
.mark-link:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 4px; }
.mast .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.mast-word { color: var(--fg-strong); }
.mast-sep { width: 1px; height: 18px; background: var(--rule-strong); }
.mast-by { font-family: var(--font-label); font-weight: 500; font-size: var(--t-label-s);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-2); }
/* the cue and the switch sit together in the mast, above the darkness */
.mast-lights {
  margin-left: auto;
  display: flex; align-items: flex-end; gap: .15rem .35rem;
  pointer-events: none;
  position: relative;
}
.hint-wrap {
  display: flex; align-items: flex-end; gap: .2rem .3rem;
  pointer-events: none;
  padding-bottom: .15rem;
  transition: opacity .6s var(--ease);
}
.hint {
  font-family: var(--font-hand); font-size: var(--t-note); line-height: 1;
  color: var(--accent); white-space: nowrap;
}
.arrow-to-switch {
  flex: none; overflow: visible; color: var(--accent);
}
.arrow-to-switch.arrow-side { width: 58px; height: 36px; margin-bottom: .15rem; }
.arrow-to-switch.arrow-up { display: none; width: 40px; height: 56px; }
body.lit .hint-wrap { opacity: 0; }

.switch {
  pointer-events: auto;
  display: flex; align-items: center; gap: .65rem;
  background: none; border: 1px solid var(--rule-strong); border-radius: 0;
  padding: .5rem .85rem; cursor: pointer; color: var(--fg-strong);
}
.switch:hover { border-color: var(--line); }
.switch:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 3px; }
.switch-track {
  width: 36px; height: 18px; border-radius: 0;
  border: 1px solid var(--line); position: relative; display: inline-block;
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 0;
  background: var(--beige); transition: transform .25s var(--ease), background-color .25s, border-color .25s;
}
.switch[aria-pressed="true"] .switch-track { border-color: var(--accent); }
.switch[aria-pressed="true"] .switch-knob { transform: translateX(16px); background: var(--accent); }
.switch-label { position: relative; display: inline-grid; }
.switch-label .is-off,
.switch-label .is-on { grid-area: 1 / 1; }
.switch-label .is-on { color: var(--accent); opacity: 0; }
.switch[aria-pressed="true"] .switch-label .is-off { opacity: 0; }
.switch[aria-pressed="true"] .switch-label .is-on { opacity: 1; }

/* ---------- vestibule ---------- */
main { position: relative; }
.vestibule {
  min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) var(--page-x) 3rem;
  max-width: 64rem;
}
.over { color: var(--fg-2); margin-bottom: 1.4rem; }
.title {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: var(--t-hero); line-height: .92; letter-spacing: -0.02em;
  color: var(--fg-strong); margin-left: -.03em;
}
/* the spoken line: the pen hand, upright, strong ink */
.dek {
  font-family: var(--font-hand); font-size: var(--t-spoken); line-height: 1.4;
  color: var(--fg-strong); margin-top: 1.1rem; max-width: 36ch;
}
.intro { max-width: 34em; margin-top: 2rem; color: var(--fg-1); text-wrap: pretty; }
/* ---------- aisles ---------- */
.aisle {
  position: relative; padding: clamp(4rem, 12vh, 8rem) var(--page-x);
  border-top: 1px solid var(--rule);
}
.aisle-no {
  position: absolute; top: .5rem; right: clamp(.5rem, 4vw, 4rem);
  font-family: var(--font-title); font-size: clamp(9rem, 26vw, 20rem);
  line-height: 1; color: var(--ghost); user-select: none;
}
.aisle-head { max-width: 40rem; position: relative; }
/* room tag: the number jotted in a ring in the accent, the name in the strong ink */
.aisle-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-strong); }
.bubble.pen {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; color: var(--accent);
  font-family: var(--font-hand); font-size: 19px; line-height: 1; padding-top: 2px; letter-spacing: 0;
}
.bubble.pen svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent);
  stroke-width: 1.4; overflow: visible; pointer-events: none; }
.aisle-head h2 {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02;
  color: var(--fg-strong); margin-top: .9rem;
}
.aisle-note {
  margin-top: .7rem; font-family: var(--font-hand); font-size: var(--t-spoken); line-height: 1.4;
  color: var(--fg-strong); max-width: 36ch; text-wrap: balance;
}

.shelf {
  list-style: none; margin-top: clamp(2.5rem, 7vh, 5rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.artifact { position: relative; padding-bottom: 1.4rem; }
.artifact:nth-child(2) { transform: translateY(2.6rem); }
.artifact:focus-visible { outline: 1px solid var(--line); outline-offset: 10px; }

/* curiosity answered: under hover/focus the drawing warms and lifts a breath */
.artifact .obj svg, .artifact .tag h3, .artifact .tag-no { transition: filter .5s ease, color .5s ease, transform .5s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .artifact:hover .obj svg, .artifact:focus-visible .obj svg {
    filter: brightness(1.18) drop-shadow(0 0 10px rgba(232, 223, 206, .14));
    transform: translateY(-3px);
  }
  .artifact:hover .tag h3, .artifact:focus-visible .tag h3 { color: #FFFFFF; }
}

.obj { position: relative; width: min(240px, 80%); margin-bottom: 1.1rem; }
.obj svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
/* every line has a job: the drawing in the line ink, the seal in the accent */
.obj .ink { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.obj .ink .thin, .obj .thin { stroke-width: 1; opacity: .8; }
.obj .seal { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.obj-sh {
  position: absolute; left: 12%; right: 12%; bottom: -7px; height: 14px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 68%);
  filter: blur(5px); transform-origin: 50% 50%; will-change: transform, opacity; opacity: .6;
}

.tag { border-top: 1px solid var(--rule-strong); padding-top: .9rem; max-width: 30em; }
.tag-no { color: var(--accent); }
.tag h3 {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: 1.6rem; line-height: 1.05; letter-spacing: .005em;
  color: var(--fg-strong); margin-top: .45rem; text-wrap: balance;
}
.tag p { margin-top: .6rem; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.acq { display: block; margin-top: .8rem; font-size: var(--t-label-s); color: var(--fg-2); }

/* ---------- uncatalogued + bookplate ---------- */
.uncat { border-top: 1px solid var(--rule); padding: clamp(3rem, 8vh, 5rem) var(--page-x); }
.uncat p { max-width: 44em; color: var(--fg-1); text-wrap: pretty; }
.uncat-label { color: var(--accent); margin-right: .4em; }

.bookplate {
  border-top: 1px solid var(--rule);
  padding: clamp(4rem, 10vh, 7rem) var(--page-x) clamp(3rem, 8vh, 5rem);
  display: flex; flex-direction: column; align-items: center; gap: clamp(3rem, 8vh, 5rem);
}
.plate {
  max-width: 32rem; text-align: center;
  border: 1px solid var(--rule-strong); padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
}
.plate::before {
  content: ''; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid var(--rule);
}
.constellation { width: 120px; height: 120px; margin: 0 auto 1.4rem; overflow: visible; }
.constellation .edge {
  stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.complete .constellation .edge { stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease .1s; }
.complete .constellation .e2 { transition-delay: 1s; }
.complete .constellation .e3 { transition-delay: 1.9s; }
.constellation .pin circle { fill: none; stroke: var(--fg-3); stroke-width: 1.3; }
.constellation .pin .pin-core { fill: rgba(167, 155, 120, .3); stroke: none; transition: fill .6s; }
.constellation .pin.found .pin-core { fill: var(--accent); }
.constellation .pin.found circle:first-child { stroke: var(--accent); }
.ex { color: var(--fg-strong); }
.ex-t { color: var(--fg-2); }
.plate-note {
  margin: 1rem auto 0; font-family: var(--font-hand); font-size: var(--t-note); line-height: 1.3;
  color: var(--accent); max-width: 28ch;
}
.colophon { margin-top: 1.8rem; font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.colophon code { font-family: var(--font-code); color: var(--fg-strong); font-size: 13px; }

/* The credit: a title block, written in the pen hand, closing the sheet. */
.credit { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.titleblock { display: grid; grid-auto-flow: column; border: 1px solid var(--rule-strong); width: fit-content; max-width: 100%; }
.titleblock > div { padding: 9px 14px 10px; border-left: 1px solid var(--rule-strong); min-width: 0; }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { font-family: var(--font-hand); font-size: 18px; line-height: 1.2; color: var(--fg-2); margin: 0 0 2px; }
.titleblock dd { margin: 0; font-family: var(--font-hand); font-size: 21px; line-height: 1.2; color: var(--fg-strong); white-space: nowrap; }
.credit-link { color: var(--fg-strong); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.credit-link:hover { color: #FFFFFF; }
.credit-link:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 4px; }
.credit-line { font-family: var(--font-label); font-weight: 500; font-size: var(--t-label-s);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-2); }

/* ---------- the darkness (the original torch mask; Char is the same hex as the original walnut) ---------- */
.dark {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden;
  display: none;
  transition: opacity .8s ease;
}
body.torch-on .dark { display: block; }
body.lit .dark { opacity: .06; }
body.coarse:not(.lit) .dark { opacity: .62; }

.beam {
  position: absolute; top: 0; left: 0;
  width: 340vmax; height: 340vmax; margin: -170vmax 0 0 -170vmax;
  will-change: transform;
  background: radial-gradient(circle,
    rgba(26, 20, 16, 0) 0 128px,
    rgba(26, 20, 16, .52) 250px,
    rgba(26, 20, 16, .93) 420px,
    rgba(26, 20, 16, .978) 580px,
    rgba(26, 20, 16, .987) 100%);
}
body.torch-on .dark.strike { animation: strike .9s steps(1, end); }
@keyframes strike {
  0% { opacity: 0; } 18% { opacity: 1; } 26% { opacity: .3; }
  38% { opacity: 1; } 46% { opacity: .55; } 60% { opacity: 1; }
}

.mote {
  position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(232, 223, 206, .5);
  animation: drift 9s linear infinite;
}
.mote.m2 { width: 2px; height: 2px; animation-duration: 13s; animation-delay: -4s; }
.mote.m3 { animation-duration: 11s; animation-delay: -7s; width: 2px; height: 2px; }
.mote.m4 { animation-duration: 15s; animation-delay: -2s; }
.mote.m5 { width: 1.5px; height: 1.5px; animation-duration: 17s; animation-delay: -9s; }
@keyframes drift {
  0%   { transform: translate(-60px, 40px); opacity: 0; }
  12%  { opacity: .8; }
  55%  { opacity: .35; }
  100% { transform: translate(70px, -90px); opacity: 0; }
}

@media (min-width: 1024px) {
  .beam { background: radial-gradient(circle,
    rgba(26, 20, 16, 0) 0 158px,
    rgba(26, 20, 16, .52) 300px,
    rgba(26, 20, 16, .93) 470px,
    rgba(26, 20, 16, .978) 620px,
    rgba(26, 20, 16, .987) 100%); }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .artifact:nth-child(2) { transform: translateY(1.6rem); }
  .artifact:nth-child(3) { grid-column: 1 / -1; max-width: 26rem; }
}
@media (max-width: 640px) {
  .mast-sep, .mast-by { display: none; }
  .kit-list li { grid-template-columns: 1fr; gap: .35rem; }
  .hint-wrap {
    position: absolute; top: 100%; right: 0; margin: .85rem 0 0;
    flex-direction: row; align-items: flex-start;
    padding-bottom: 0;
  }
  .arrow-to-switch.arrow-side { display: none; }
  .arrow-to-switch.arrow-up { display: block; order: 2; margin: -1.05rem 3.55rem 0 0; }
  .hint { order: 1; }
  .shelf { grid-template-columns: 1fr; gap: 2.6rem; }
  .artifact:nth-child(2), .artifact:nth-child(3) { transform: none; max-width: none; }
  .aisle-no { font-size: 8.5rem; top: 1rem; }
  .titleblock { grid-auto-flow: row; grid-template-columns: repeat(2, auto); }
  .titleblock > div:nth-child(odd) { border-left: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
  .beam { background: radial-gradient(circle,
    rgba(26, 20, 16, 0) 0 100px,
    rgba(26, 20, 16, .52) 190px,
    rgba(26, 20, 16, .93) 330px,
    rgba(26, 20, 16, .978) 470px,
    rgba(26, 20, 16, .987) 100%); }
}

/* ---------- reduced motion: the lamp settles, nothing hides ---------- */

/* ---------- hire page: slots, plates, plot, kit ---------- */
.need {
  font-family: var(--font-hand); font-size: var(--t-note); line-height: 1.3;
  color: var(--accent); text-wrap: balance; text-align: center;
}
.obj.slot { width: 100%; }
.slot-frame {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; padding: 1.1rem 1.2rem; text-align: center;
  background: var(--ghost);
}
.slot.still .slot-frame { aspect-ratio: 3 / 2; }
.slot-kind { color: var(--fg-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .artifact:hover .slot-frame, .artifact:focus-visible .slot-frame {
    border-color: var(--line);
  }
}

.subhead {
  color: var(--fg-strong); margin-top: clamp(3rem, 8vh, 5rem);
}
.artifact.ba { max-width: 36rem; margin-top: 5rem; } /* clear the shelf stagger (transform does not add height) */
.artifact.ba .subhead { margin-top: 0; }
.subnote {
  margin: .7rem 0 1.4rem; font-family: var(--font-hand); font-size: var(--t-note);
  line-height: 1.35; color: var(--fg-strong); max-width: 36ch;
}
.ba-toggle { display: flex; gap: 0; margin-bottom: 1.1rem; width: fit-content; }
.ba-btn {
  background: none; border: 1px solid var(--rule-strong); border-radius: 0;
  padding: .5rem .95rem; cursor: pointer; color: var(--fg-2);
}
.ba-btn + .ba-btn { border-left: 0; }
.ba-btn:hover { border-color: var(--line); color: var(--fg-strong); }
.ba-btn:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 3px; z-index: 1; }
.ba-btn[aria-pressed="true"] { color: var(--fg-strong); border-color: var(--line); background: var(--ghost); }

.plot { margin-top: clamp(2.5rem, 7vh, 4.5rem); max-width: 36rem; }
.plot-status {
  font-family: var(--font-hand); font-size: var(--t-note); line-height: 1.35;
  color: var(--accent); margin-bottom: 1rem; min-height: 1.4em;
}
.plot-stage { position: relative; }
.plot-sheet { width: 100%; height: auto; display: block; color: var(--line); overflow: visible; }
.plot-floor { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; }
.plot-talent, .plot-cam { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plot-talent text, .plot-cam text, .fix-label {
  font-family: var(--font-label); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  fill: var(--beige); stroke: none;
}
.fix { cursor: pointer; }
.fix .glow { fill: rgba(208, 110, 58, 0.22); stroke: none; opacity: 0; transition: opacity .35s var(--ease); }
.fix .lamp, .fix .beam-mark, .fix .practical-body {
  fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.fix .practical-body { fill: var(--char); }
.fix.is-on .glow { opacity: 1; }
.fix.is-on .lamp, .fix.is-on .beam-mark, .fix.is-on .practical-body { stroke: var(--accent); }
.fix.is-on .practical-body { fill: var(--accent); }
.fix.is-on .fix-label { fill: var(--bone); }
.fix:focus { outline: none; }
.fix:focus-visible .lamp, .fix:focus-visible .practical-body {
  stroke: var(--bone); stroke-width: 2;
}
.plot-legend { margin-top: .9rem; color: var(--fg-2); }

.kit { margin-top: clamp(3rem, 8vh, 5.5rem); max-width: 36rem; }
.kit .subhead { margin-top: 0; }
.kit-need { display: block; text-align: left; margin: 0 0 1.2rem; }
.kit-list { list-style: none; border-top: 1px solid var(--rule-strong); }
.kit-list li {
  display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: baseline;
  border-bottom: 1px solid var(--rule); padding: .85rem 0;
}
.kit-cat { color: var(--fg-strong); }
.kit-blank { border-bottom: 1px solid var(--rule); min-height: 1em; }

.book-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.book-link:hover { color: var(--bone); }
.book-link:focus-visible { outline: 1.5px solid var(--bone); outline-offset: 4px; }


/* ---------- hire list (Rev D): categories, kits, crew ---------- */
.cat { margin-top: clamp(2.4rem, 6vh, 4rem); max-width: 56rem; }
.cat-head {
  color: var(--fg-strong); margin-bottom: .85rem; font-size: 15px;
}
.rate-table {
  width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45;
}
.rate-table th {
  text-align: left; color: var(--fg-2);
  border-bottom: 1px solid var(--rule-strong);
  padding: 0 .8rem .55rem 0;
}
.rate-table td {
  padding: .7rem .8rem .7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  color: var(--fg-1);
}
.rate-table .col-item { width: auto; color: var(--fg-strong); }
.rate-table .col-qty, .rate-table .col-rate, .rate-table .col-unit {
  width: 7.5rem; text-align: right; white-space: nowrap; padding-right: 0;
  font-family: var(--font-code); font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; font-feature-settings: "tnum" 1;
  color: var(--fg-strong);
}
.rate-table th.col-qty, .rate-table th.col-rate, .rate-table th.col-unit {
  font-family: var(--font-label); font-size: var(--t-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--fg-2);
}
.rate-table .poa {
  font-family: var(--font-label); font-size: var(--t-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--accent);
}

.kits { margin-top: clamp(2.5rem, 7vh, 4.5rem); display: grid; gap: clamp(2.2rem, 5vh, 3.4rem); max-width: 56rem; }
.kit-card { border: 1px solid var(--rule-strong); padding: 1.4rem 1.4rem 1.1rem; }
.kit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; }
.kit-name { color: var(--fg-strong); margin: 0; font-size: 15px; }
.kit-rate {
  font-family: var(--font-code); font-size: 15px; color: var(--fg-strong);
  font-feature-settings: "tnum" 1; margin: 0;
}
.kit-rate .per {
  margin-left: .4rem; color: var(--fg-2);
}
.kit-rate.poa { color: var(--accent); }
.kit-blurb {
  margin: .7rem 0 1.1rem; font-family: var(--font-hand); font-size: var(--t-note);
  line-height: 1.35; color: var(--fg-strong); max-width: 48ch;
}
.kit-table { margin-top: .3rem; }
.kit-table .kit-section td {
  font-family: var(--font-label); font-weight: 500; font-size: var(--t-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--accent); padding-top: 1.15rem; border-bottom-color: var(--rule-strong);
}

.crew-table { margin-top: clamp(2.5rem, 7vh, 4.5rem); max-width: 56rem; }
.crew-note {
  display: block; margin-top: .25rem;
  font-family: var(--font-read); font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--fg-2);
}

@media (max-width: 640px) {
  .rate-table .col-qty, .rate-table .col-rate, .rate-table .col-unit { width: 4.6rem; font-size: 12px; }
  .kit-card { padding: 1.1rem 1rem .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mote { animation: none; opacity: 0; }
  body.torch-on .dark.strike { animation: none; }
  .complete .constellation .edge { transition: none; }
  .switch-knob { transition: none; }
  .fix .glow { transition: none; }
  body.torch-on:not(.lit) .dark { opacity: .38; }
}
