/* Conceptual Sketch, for /worlds/jurassic-park/ and /control-room/ (style: sketch).

   The night lab. The films' dinosaurs began as pencil drawings in Stan
   Winston's shop, and the page praises effects that were physical objects
   first, so both pages become concept boards: white pencil on a black
   drafting board under one lamp, blue pencil for the construction lines that
   run past every corner, red pencil for the notes, specimen tags, dimension
   lines, and amber (the mosquito's) as the only colour.

   One file for the pair, in three parts: what both share (the board, the
   pencils, the tag, the construction lines, the lettering); the world page,
   where the six films are pinned up as specimen sheets; and the Control
   Room, which keeps its console and every screen on it, drawn as the console
   would have been on the boards before anyone built it. The spec:
   docs/superpowers/specs/2026-10-11-page-styles-design.md, "Jurassic Park:
   Conceptual Sketch" and section 9.

   The hand shows in the lines and the notes, never in a handwriting face:
   reading text stays Inter, labels stay JetBrains Mono (IBM Plex Mono on the
   console), and headings take the console's own narrow Archivo, which is
   what ties the two pages' lettering together.

   Everything is scoped to :root[data-style="sketch"]. Material rules on
   shared components use :where() for that scope, so they weigh what the rule
   they restyle weighs, and each page's own hover, open and down states still
   win. */

/* ── 1. shared: the board, the pencils, the tag ─────────────────────────── */
:root[data-style="sketch"] {
  --sk-board: #0c0e11;
  --sk-sheet: rgba(13, 15, 18, .93);
  --sk-white: #ece8de;                    /* white pencil */
  --sk-line: rgba(236, 232, 222, .5);     /* a drawn outline, 4.6:1 on the board */
  --sk-blue: rgba(126, 182, 232, .45);    /* construction lines */
  --sk-blue-t: #9cc8f0;                   /* blue pencil, as text */
  --sk-red: #ff8f7e;                      /* red-pencil notes */
  --sk-amber: #f2a73b;                    /* the mosquito's amber */
  --sk-amber-t: #ffc06a;
  /* the specimen tag, one drawing for both pages: a card tag with its eyelet,
     in amber pencil. The rooms on the console wear it standing up. */
  --sk-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 28' preserveAspectRatio='none'%3E%3Cpath d='M12 1.5H58.5V26.5H12L1.5 14Z' fill='%230e1013' stroke='%23f2a73b' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='10.5' cy='14' r='2.4' fill='none' stroke='%23f2a73b' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --sk-tag-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 52'%3E%3Cpath d='M4 13L22 2.5L40 13V50.5H4Z' fill='%230e1013' stroke='%23f2a73b' stroke-width='1.4'/%3E%3Ccircle cx='22' cy='11' r='2.6' fill='none' stroke='%23f2a73b' stroke-width='1.2'/%3E%3C/svg%3E");
  /* the drafting registration mark that opens every section head */
  --sk-mark:
    linear-gradient(var(--sk-amber) 0 0) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--sk-amber) 0 0) 0 50% / 100% 1px no-repeat,
    radial-gradient(circle, transparent 0 3.4px, var(--sk-amber) 3.6px 4.6px, transparent 4.9px);
  /* hand lettering is drawn between a cap line and a baseline; one pair per
     line of the title (sized in em, so it follows the title's own size) */
  --sk-guides: repeating-linear-gradient(180deg, transparent 0 .1em, var(--sk-blue) .1em calc(.1em + 1px),
    transparent 0 .79em, var(--sk-blue) .79em calc(.79em + 1px), transparent 0 .92em);
  /* the under-drawing's pencil: a 1px blue line, set a hair out of register */
  --sk-under: rgba(126, 182, 232, .62);

  --s-surface: var(--sk-sheet);
  --s-surface-hi: rgba(20, 23, 27, .95);
  --s-edge: var(--sk-line);
  --s-bw: 1.5px;
  --s-r: 3px;
  --s-r-sm: 2px;
  --s-shadow: none;
  --s-shadow-hi: 0 18px 30px -22px rgba(0, 0, 0, .9);
  --s-lift: -3px;
  --s-display: "Archivo", var(--sans, sans-serif);
  --s-display-w: 800;
  --s-display-ls: 0.01em;
  --s-focus: var(--sk-amber);

  /* the bars: board, not glass, edged in pencil */
  --s-bar: rgba(11, 12, 14, .92);
  --s-bar-edge: rgba(236, 232, 222, .26);
  --s-bar-r: 4px;
  --s-bar-blur: none;
  --s-bar-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);

  /* graphite tooth stays, the circuit field goes, and the HUD lattice
     becomes the board's blue rules; the lamp follows the pointer */
  --s-grain: .06;
  --s-field: 0;
  --hud-cell: 96px;
  --hud-grid: rgba(126, 182, 232, .07);
  --hud-scan: transparent;
  --hud-sweep: transparent;
  --hud-lit: rgba(126, 182, 232, .3);
  --hud-halo: rgba(242, 167, 59, .07);
}
/* Increase Contrast: the board goes darker and every pencil harder (the
   console's own inks follow in part 3) */
@media (prefers-contrast: more) {
  :root[data-style="sketch"] { --sk-board: #060708; --sk-line: rgba(236, 232, 222, .78); --sk-blue: rgba(126, 182, 232, .7); }
}

/* Construction lines: four blue lines laid along a box's edges and run on
   past its corners, the way a drawing is blocked in before it is inked. One
   rule for every drawn box on both pages; each sets how far they overrun. */
:root[data-style="sketch"] :is(.fan-card, .fan-rankrow, .fan-linkcard, .fan-land, .cr-mon, .cr-hosts-wrap, .cr-mac)::before {
  --o: 9px;
  content: ""; position: absolute; inset: calc(-1 * var(--o)); pointer-events: none;
  background:
    linear-gradient(var(--sk-blue) 0 0) 0 var(--o) / 100% 1px no-repeat,
    linear-gradient(var(--sk-blue) 0 0) 0 calc(100% - var(--o)) / 100% 1px no-repeat,
    linear-gradient(var(--sk-blue) 0 0) var(--o) 0 / 1px 100% no-repeat,
    linear-gradient(var(--sk-blue) 0 0) calc(100% - var(--o)) 0 / 1px 100% no-repeat;
  opacity: .75; transition: opacity .3s;
}
:root[data-style="sketch"] :is(.fan-rankrow, .cr-mon, .cr-mac)::before { --o: 15px; }
@media (max-width: 640px) {
  :root[data-style="sketch"] :is(.fan-card, .fan-rankrow, .fan-linkcard, .fan-land, .cr-mon, .cr-hosts-wrap, .cr-mac)::before { --o: 8px; }
}
@media (hover: hover) {
  :root[data-style="sketch"] :is(.fan-card, .fan-rankrow, .fan-linkcard, .fan-land):hover::before { opacity: 1; }
}
/* the signature moment: as a sheet or a monitor scrolls up into the lamp,
   its construction lines are drawn out past its corners. Under Reduce
   Motion, and without scroll timelines, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-style="sketch"] :is(.fan-rankrow, .cr-mon)::before {
      animation: sk-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 30%;
    }
  }
}
@keyframes sk-draw { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: .75; } }

/* section heads: the registration mark, the lettering, the red-pencil note */
:root[data-style="sketch"] :is(.subsec--fan, .cr-h)::before {
  content: ""; flex: none; align-self: center; width: 13px; height: 13px;
  border-radius: 0; box-shadow: none; background: var(--sk-mark);
}

/* ── 2. the world page: the specimen sheets ─────────────────────────────── */

/* the world's colour is the mosquito's amber; items keep their own --a */
:root[data-style="sketch"] body[data-fan="jp"] { --a: var(--sk-amber); }
:root[data-style="sketch"] .tabbar { --s-accent: var(--sk-amber); }

/* The island at night, redrawn on the board: one warm lamp at the top left,
   a fine blue grid, the treeline and ferns as faint pencil outlines down
   in the jungle, the fence as a dashed line through the trees, and the rain
   as hatching that holds still. The whole sky is capped at .36
   (fanpages.css), and it sits behind every word, so the treeline is drawn
   soft enough never to fight the text over it. */
:root[data-style="sketch"] .jp-sky { background: radial-gradient(75% 60% at 24% 0%, #2c2215 0%, #121315 52%, #090a0c 100%); }
:root[data-style="sketch"] .jp-sky::before {
  background-image: linear-gradient(rgba(126, 182, 232, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 182, 232, .2) 1px, transparent 1px);
  background-size: 24px 24px;
}
:root[data-style="sketch"] .jp-storm { background: radial-gradient(40% 36% at 22% 0%, rgba(242, 167, 59, .3), transparent 70%); filter: none; }
:root[data-style="sketch"] .jp-bolt { animation: none; opacity: 0; }
:root[data-style="sketch"] .jp-rain {
  animation: none; inset: 0;
  background-image: repeating-linear-gradient(76deg, rgba(236, 232, 222, .14) 0 1px, transparent 1px 13px);
}
:root[data-style="sketch"] .jp-fence {
  filter: none;
  background: linear-gradient(90deg, rgba(126, 182, 232, .32) 0 6px, transparent 0) 0 80% / 10px 1px repeat-x;
}
:root[data-style="sketch"] :is(.jp-canopy-back, .jp-canopy-mid) { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
:root[data-style="sketch"] .jp-canopy-back { stroke: rgba(126, 182, 232, .32); }
:root[data-style="sketch"] .jp-canopy-mid { stroke: rgba(236, 232, 222, .34); }
:root[data-style="sketch"] .jp-fern { opacity: .45; }
/* on a phone the treeline is squeezed into spikes, so it fades further */
@media (max-width: 640px) {
  :root[data-style="sketch"] .jp-jungle { opacity: .5; }
}
:root[data-style="sketch"] .jp-fern {
  background: conic-gradient(from 200deg at 50% 100%, transparent 0 9deg, var(--sk-white) 9deg 10deg,
    transparent 10deg 23deg, var(--sk-white) 23deg 24deg, transparent 24deg 37deg, var(--sk-white) 37deg 38deg,
    transparent 38deg 51deg, var(--sk-white) 51deg 52deg, transparent 52deg 65deg, var(--sk-white) 65deg 66deg,
    transparent 66deg 79deg, var(--sk-white) 79deg 80deg, transparent 80deg);
}

/* the hazard stripe, hatched in amber pencil, on both pages */
:root[data-style="sketch"] :is(.jp-hazard, .cr-hazard) {
  border-radius: 0; opacity: 1;
  background: repeating-linear-gradient(135deg, var(--sk-amber) 0 1.5px, transparent 1.5px 8px);
  box-shadow: inset 0 0 0 1px var(--sk-amber);
}

/* The title, lettered: the console's narrow Archivo in capitals, between
   its guidelines, over a blue under-drawing a hair out of register. The
   guidelines overrun the word a little either side. */
:root[data-style="sketch"] :is(.fan-title, .cr-title) {
  display: inline-block; text-shadow: none;
  background: var(--sk-guides);
}
/* The under-drawing is the construction pass: the same letters traced once
   in blue pencil, outline only, a few px down and right of the inked ones,
   showing through wherever the ink does not cover it. A pseudo-element only
   carries the text it is given, so each title's words are written again
   here, with an empty alternative so a screen reader hears them once. It
   sits in the title's own box with its padding, so it wraps where the title
   does; isolation keeps it above the guidelines and under the ink. */
:root[data-style="sketch"] :is(.fan-title, .cr-title span) { position: relative; isolation: isolate; }
:root[data-style="sketch"] :is(.fan-title, .cr-title span)::before {
  position: absolute; inset: 0; z-index: -1; padding: inherit; pointer-events: none;
  translate: .045em .035em;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px var(--sk-under);
}
:root[data-style="sketch"] body[data-fan="jp"] .fan-title::before { content: "Jurassic Park"; content: "Jurassic Park" / ""; }
:root[data-style="sketch"] .cr-title span:first-child::before { content: "The Control"; content: "The Control" / ""; }
:root[data-style="sketch"] .cr-title span + span::before { content: "Room"; content: "Room" / ""; }
:root[data-style="sketch"] .fan-title {
  margin-left: -.25em; padding: 0 .45em 0 .25em;
  font-family: var(--s-display); font-weight: 800; font-stretch: 72%;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--sk-white);
  -webkit-text-stroke: 0;
}
:root[data-style="sketch"] :is(.fan-card :is(h2, h3, h4, h5), .fan-film :is(h2, h3, h4, h5), .fan-rankhead b, .fan-tiletext b, .fan-what b, .fan-land-head h3, .fan-linkhead b, .fan-film-num) {
  font-family: var(--s-display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
/* (the paddock feeder's heading, from fan-play.js, is lettered as one) */
:root[data-style="sketch"] :is(.subsec--fan, .fp-head :is(h2, h3)) {
  font-family: var(--s-display); font-weight: 800; font-stretch: 72%;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: 0.02em; text-transform: uppercase; color: var(--sk-white);
}
:root[data-style="sketch"] .subsec--fan .subsec-yr {
  font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--sk-red);
}
/* the rule after a head is a dimension line, ticked at its far end */
:root[data-style="sketch"] .subsec--fan::after {
  height: 9px; background: linear-gradient(var(--sk-blue) 0 0) 0 50% / 100% 1px no-repeat;
  border-right: 1px solid var(--sk-blue);
}
@media (hover: hover) {
  :root[data-style="sketch"] .fan-fold-sum:hover .subsec--fan { color: var(--sk-amber-t); filter: none; }
}
:root[data-style="sketch"] .fan-fold-sum:focus-visible .subsec--fan { color: var(--sk-amber-t); filter: none; }

/* every drawn box: a pencil outline on the board, square-cornered */
:where(:root[data-style="sketch"]) :is(.fan-rankrow, .fan-land, .fan-film, .fan-shot, .fan-linkcard) {
  position: relative; border: 1.5px solid var(--sk-line); border-radius: var(--s-r); background: var(--sk-sheet);
}
:where(:root[data-style="sketch"]) .fan-land { overflow: visible; }
:where(:root[data-style="sketch"]) .fan-land-bar { height: 1.5px; background: var(--a); opacity: .9; }
:where(:root[data-style="sketch"]) :is(.fan-rides .fan-ride)::after { border-bottom-color: var(--sk-blue); }
:where(:root[data-style="sketch"]) :is(.fan-land-count, .fan-shot figcaption) { border-top-color: var(--sk-blue); }

/* An item's own colour, set on a black board in its own coloured pencil:
   lifted a third toward white so the dark ones still read. :where keeps the
   shared rules' weight, so hovering and playing still win. */
:root[data-style="sketch"] :is(.fan-tiletext i, .fan-card .fan-sub, .fan-film .fan-sub) { color: color-mix(in srgb, var(--a) 68%, #fff); opacity: 1; }
:where(:root[data-style="sketch"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: color-mix(in srgb, var(--a) 68%, #fff); }

/* a card's tag is a specimen tag: square, with its eyelet punched */
:where(:root[data-style="sketch"]) .fan-tag {
  position: relative; justify-self: start; padding-left: 1.05rem; border-radius: 0 2px 2px 0;
  border-color: color-mix(in srgb, var(--a) 68%, #fff);
}
:root[data-style="sketch"] .fan-tag::before {
  content: ""; position: absolute; left: 0.35rem; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor;
}

/* The signature: the six films pinned up as specimen sheets, each with its
   tag tied on at the corner, its title lettered, its year set out on a
   dimension line, its note in red pencil on a leader, and its release and
   setting along the foot like a title block. Three across, one on a phone. */
:root[data-style="sketch"] #films .fan-rank {
  display: grid; gap: 2.2rem 1.6rem; padding-top: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
:root[data-style="sketch"] #films .fan-rankrow {
  flex-direction: column; gap: 0.7rem; padding: 2.1rem 1.25rem 1rem;
  background:
    linear-gradient(rgba(126, 182, 232, .05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(126, 182, 232, .05) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--sk-sheet);
}
:root[data-style="sketch"] #films .fan-num {
  position: absolute; top: -0.95rem; left: 1rem; min-width: 0;
  display: grid; place-items: center; width: 4.4rem; height: 2.05rem; padding-left: 0.75rem;
  background: var(--sk-tag) 0 0 / 100% 100% no-repeat;
  font-size: 0.95rem; letter-spacing: 0.08em; color: var(--sk-amber-t); opacity: 1;
  rotate: -5deg; transition: rotate .4s var(--ease);
}
@media (hover: hover) {
  :root[data-style="sketch"] #films .fan-rankrow:hover { transform: translateY(-3px); }
  :root[data-style="sketch"] #films .fan-rankrow:hover .fan-num { rotate: 0deg; }
}
:root[data-style="sketch"] #films .fan-rankbody { flex: 1; gap: 0.55rem; }
:root[data-style="sketch"] #films .fan-rankhead { flex-direction: column; align-items: stretch; gap: 0.45rem; }
:root[data-style="sketch"] #films .fan-rankhead b { font-size: 1.45rem; line-height: 1.05; color: var(--sk-white); }
:root[data-style="sketch"] #films .fan-rankhead i {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.24em; color: var(--sk-blue-t);
}
:root[data-style="sketch"] #films .fan-rankhead i::before,
:root[data-style="sketch"] #films .fan-rankhead i::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(var(--sk-blue) 0 0) 0 50% / 100% 1px no-repeat;
}
:root[data-style="sketch"] #films .fan-rankhead i::before { border-left: 1px solid var(--sk-blue); }
:root[data-style="sketch"] #films .fan-rankhead i::after { border-right: 1px solid var(--sk-blue); }
:root[data-style="sketch"] #films .fan-rankdesc { position: relative; padding-left: 1.35rem; color: var(--sk-red); }
:root[data-style="sketch"] #films .fan-rankdesc::before {
  content: ""; position: absolute; left: 0.2rem; top: -0.1rem; width: 0.75rem; height: 0.85rem;
  border-left: 1px solid var(--sk-red); border-bottom: 1px solid var(--sk-red);
}
:root[data-style="sketch"] #films .fan-rankmeta {
  margin-top: auto; padding-top: 0.55rem; border-top: 3px double var(--sk-blue); line-height: 1.6;
}

/* My Three: the same sheets, with a drawing border inset inside the edge
   and the numeral pencilled in large behind */
:root[data-style="sketch"] .fan-film { background: var(--sk-sheet); box-shadow: inset 0 0 0 6px var(--sk-board), inset 0 0 0 7px var(--sk-blue); }
:root[data-style="sketch"] .fan-film-num { color: color-mix(in srgb, var(--a) 68%, #fff); opacity: .16; font-weight: 800; }

/* cards: the outline, the construction lines, the lamp's shadow on hover */
:where(:root[data-style="sketch"]) .fan-card { background: var(--sk-sheet); }

/* tiles are small and many, so they are outlined only; the swatch is a
   square hatched in the item's own pencil */
:where(:root[data-style="sketch"]) .fan-swatch {
  border-radius: 0; box-shadow: inset 0 0 0 1px var(--a);
  background: repeating-linear-gradient(135deg, var(--a) 0 1px, transparent 1px 3px);
}

/* the timeline: a blue rail, each step a drafting node in amber */
:where(:root[data-style="sketch"]) .fan-time::before { background: var(--sk-blue); opacity: 1; }
:where(:root[data-style="sketch"]) .fan-tick::before { background: var(--sk-board); box-shadow: inset 0 0 0 1.5px var(--a); }

/* the lines from the films, pencilled in the margins: crop marks at the
   corners instead of a box, the speaker in red pencil */
:where(:root[data-style="sketch"]) .fan-quote {
  border-left: 0; border-radius: 0; box-shadow: none;
  background:
    linear-gradient(var(--sk-line) 0 0) 0 0 / 14px 1.5px, linear-gradient(var(--sk-line) 0 0) 0 0 / 1.5px 14px,
    linear-gradient(var(--sk-line) 0 0) 100% 100% / 14px 1.5px, linear-gradient(var(--sk-line) 0 0) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
}
:root[data-style="sketch"] .fan-quote blockquote { font-family: var(--s-display); font-stretch: 82%; font-weight: 600; font-size: 1.15rem; }
:root[data-style="sketch"] .fan-quote figcaption { color: var(--sk-red); }

/* "When I got into it", a red-pencil note boxed in dashes */
:where(:root[data-style="sketch"]) .fan-intro-when {
  border: 1px dashed var(--sk-red); border-radius: 0; background: none;
}

/* the links and doors: drafting buttons, square, outlined in pencil */
:where(:root[data-style="sketch"]) :is(.fan-link, .wsib-i a) { background: var(--sk-board); }
:where(:root[data-style="sketch"]) .fan-iface { border-color: var(--sk-amber); background: var(--sk-sheet); }
:where(:root[data-style="sketch"]) :is(.fan-iface-a, .fan-peek-dot) { border-radius: 0; }

/* the Control Room's fragment is drawn now too, so it comes in its pencils */
:root[data-style="sketch"] .fan-peek {
  --pk: var(--sk-amber) !important; --pkbg: var(--sk-board) !important;
  border: 1.5px solid var(--sk-line); box-shadow: none;
}
:root[data-style="sketch"] .fan-peek-bar { background: none; border-bottom-color: var(--sk-blue); }
:root[data-style="sketch"] .fan-peek-rows > div { border-bottom-color: var(--sk-blue); }

/* the interactive paddocks: pencilled slots */
:where(:root[data-style="sketch"]) .fp-bar { background: var(--sk-sheet); border: 1.5px solid var(--sk-line); border-radius: 0; }
:where(:root[data-style="sketch"]) .fp-slot { background: none; border-color: rgba(236, 232, 222, .32); box-shadow: none; color: var(--sk-white); }
:where(:root[data-style="sketch"]) .fp-slot i {
  border-radius: 0; opacity: 1; box-shadow: inset 0 0 0 1.5px var(--c);
  background: repeating-linear-gradient(135deg, var(--c) 0 1.5px, transparent 1.5px 4px);
}
:where(:root[data-style="sketch"]) .fp-go { border-color: var(--sk-amber); background: none; border-radius: 0; }
:where(:root[data-style="sketch"]) .fp-out { border-left: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--sk-blue); }

/* The gates and Hammond's cane, as the concept drawing: posts and leaves
   in white pencil over a blue construction wall, the flames and the amber
   head the only colour, no glow anywhere (pencil does not glow) */
:root[data-style="sketch"] .jp-wall { fill: none; stroke: var(--sk-blue); stroke-width: 1.4; }
:root[data-style="sketch"] :is(.jp-post, .jp-lintel, .jp-gate rect, .jp-torch rect, .jpc-shaft path, .jpc-collar rect) {
  fill: var(--sk-board); stroke: var(--sk-white); stroke-width: 1.6;
}
:root[data-style="sketch"] :is(.jp-gate path, .jpc-shaft path + path) { stroke: var(--sk-blue); opacity: 1; }
:root[data-style="sketch"] .jp-flame { fill: var(--sk-amber); filter: none; }
:root[data-style="sketch"] .jp-light { stroke: var(--sk-amber); }
:root[data-style="sketch"] .jp-ground { stroke: var(--sk-blue); opacity: 1; stroke-width: 1.4; }
:root[data-style="sketch"] .jp-cane { filter: none; }
/* and the figure is measured: a dimension line down its left side and one
   along its foot, ticked at each end */
:root[data-style="sketch"] .fan-art--jp .fan-art-fig { position: relative; }
:root[data-style="sketch"] .fan-art--jp .fan-art-fig::before,
:root[data-style="sketch"] .fan-art--jp .fan-art-fig::after { content: ""; position: absolute; pointer-events: none; }
:root[data-style="sketch"] .fan-art--jp .fan-art-fig::before {
  left: -1.4rem; top: 0; bottom: 0; width: 9px;
  background: linear-gradient(var(--sk-blue) 0 0) 50% 0 / 1px 100% no-repeat;
  border-block: 1px solid var(--sk-blue);
}
:root[data-style="sketch"] .fan-art--jp .fan-art-fig::after {
  left: 0; right: 0; bottom: -1.2rem; height: 9px;
  background: linear-gradient(var(--sk-blue) 0 0) 0 50% / 100% 1px no-repeat;
  border-inline: 1px solid var(--sk-blue);
}

/* the hero's orb takes the amber from --a; the photos are references
   pinned to the board */
:root[data-style="sketch"] .fan-shot figcaption b { color: var(--sk-amber-t); }

/* ── 3. the Control Room, as drawn on the boards ────────────────────────────
   The console keeps every screen, list and switch. Its plastic, phosphor and
   glow become pencil: the green phosphor is white pencil, the second green
   the blue, the room's orange the amber. Re-tinted at the source, on .cr,
   so the states the console sets (hot, down, flooded) follow. */
:root[data-style="sketch"] { background: var(--sk-board); }
:root[data-style="sketch"] .cr {
  --night: var(--sk-board); --plate: #101318;
  --amber: var(--sk-amber); --amber-2: var(--sk-amber-t); --amber-3: #ffd9a3;
  --phos: var(--sk-white); --phos-2: #8fc0ee; --phos-3: var(--sk-blue-t);
  --hazard: var(--sk-amber); --water: #8fc0ee;
  --dim: #c2c0b8; --mute: #9a978f; --line: rgba(236, 232, 222, .22);
}
/* with Increase Contrast, the ink, mute and line stand at least as far off
   the darker board as the room's own stand off its night (17.4, 6.8 and
   15.7 to one) */
@media (prefers-contrast: more) {
  :root[data-style="sketch"] .cr { --ink: #f6f7f2; --mute: #a9a69e; --line: rgba(245, 242, 234, .4); }
}
:where(:root[data-style="sketch"]) :focus-visible { outline-color: var(--s-focus); }

/* the room: one lamp, the board's blue rules, no storm through the glass */
:where(:root[data-style="sketch"]) .cr-glow {
  background: radial-gradient(55% 42% at 30% -6%, rgba(242, 167, 59, .14), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .65));
}
:where(:root[data-style="sketch"]) .cr-grid {
  opacity: 1;
  background:
    repeating-linear-gradient(0deg, rgba(126, 182, 232, .07) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(126, 182, 232, .07) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(126, 182, 232, .03) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(126, 182, 232, .03) 0 1px, transparent 1px 24px);
}
:where(:root[data-style="sketch"]) .cr-storm { animation: none; opacity: 0; }
:where(:root[data-style="sketch"]) .cr-top { background: rgba(11, 12, 14, .9); border-bottom-color: rgba(236, 232, 222, .26); }

/* the bezels, outlined; each screen's glass a second line inside, shaded
   with hatching where the scanlines were, a glint struck in two strokes */
:where(:root[data-style="sketch"]) .cr-mon {
  border-radius: 4px; background: rgba(12, 14, 17, .9);
  box-shadow: inset 0 0 0 1.5px rgba(236, 232, 222, .68);
}
:where(:root[data-style="sketch"]) .cr-mon-label { color: #cfccc3; }
:where(:root[data-style="sketch"]) :is(.cr-screen, .cr-screen--amber, .cr-screen--fsn) {
  background: #0e1114; box-shadow: inset 0 0 0 1.5px rgba(236, 232, 222, .42);
}
:where(:root[data-style="sketch"]) .cr-screen::after { background: repeating-linear-gradient(135deg, rgba(236, 232, 222, .035) 0 1px, transparent 1px 7px); }
:where(:root[data-style="sketch"]) .cr-screen::before {
  background: linear-gradient(135deg, transparent 44%, rgba(236, 232, 222, .3) 44% 47%, transparent 47% 55%, rgba(236, 232, 222, .2) 55% 57%, transparent 57%) calc(100% - 12px) 10px / 30px 30px no-repeat;
}
/* the map has its north arrow in that corner, so its glint sits low */
:where(:root[data-style="sketch"]) .cr-screen--map::before { background-position: calc(100% - 12px) calc(100% - 10px); }
/* the lamps: an amber dot in a drawn ring */
:where(:root[data-style="sketch"]) :is(.cr-led, .cr-room::after) {
  background: var(--sk-amber); box-shadow: 0 0 0 2px var(--sk-board), 0 0 0 3px rgba(236, 232, 222, .55);
}
:where(:root[data-style="sketch"]) .cr-kicker::before { color: var(--sk-amber); text-shadow: none; }

/* every glow goes: the clock, the voltages, the readings, the ah-ah */
:where(:root[data-style="sketch"]) :is(.cr-clock, .cr-room-n, .cr-fences b, .cr-sys dd, .cr-sys-warn a) { text-shadow: none; }
:where(:root[data-style="sketch"]) .cr-clock { color: var(--sk-amber-t); }
:where(:root[data-style="sketch"]) .cr-clock-meta dt { color: #d9b88a; }

/* the title and the heads, lettered like the world page's */
:where(:root[data-style="sketch"]) .cr-title { color: var(--sk-white); background-size: 100% .88em; }
:root[data-style="sketch"] .cr-title { --sk-guides: repeating-linear-gradient(180deg, transparent 0 .09em, var(--sk-blue) .09em calc(.09em + 1px), transparent 0 .76em, var(--sk-blue) .76em calc(.76em + 1px), transparent 0 .88em); }
:root[data-style="sketch"] .cr-h { color: var(--sk-white); }
:root[data-style="sketch"] .cr-h span { color: var(--sk-red); }

/* the map, as a survey drawing: white pencil coast, blue contours, sea grid
   and fences, the road, the cars and the pins in amber */
:where(:root[data-style="sketch"]) .cr-sea path { stroke: rgba(126, 182, 232, .16); }
:where(:root[data-style="sketch"]) .cr-surf { stroke: rgba(236, 232, 222, .3); }
:where(:root[data-style="sketch"]) .cr-land { fill: rgba(236, 232, 222, .03); }
:where(:root[data-style="sketch"]) .cr-tree { stroke: rgba(236, 232, 222, .2); }
:where(:root[data-style="sketch"]) .cr-contour use { stroke: rgba(126, 182, 232, .38); }
:where(:root[data-style="sketch"]) .cr-coast { stroke: var(--sk-white); filter: none; }
:where(:root[data-style="sketch"]) :is(.cr-fence, .cr-fence rect) { fill: rgba(126, 182, 232, .05); }
:where(:root[data-style="sketch"]) .cr-fence--perim { fill: none; stroke: rgba(242, 167, 59, .55); }
:where(:root[data-style="sketch"]) .cr-water { fill: rgba(126, 182, 232, .12); }
:where(:root[data-style="sketch"]) :is(.cr-car rect, .cr-key--car) { fill: var(--sk-amber-t); background: var(--sk-amber-t); filter: none; box-shadow: none; }
:where(:root[data-style="sketch"]) .cr-bldg { fill: none; stroke: var(--sk-white); }
:where(:root[data-style="sketch"]) .cr-map-name { fill: rgba(236, 232, 222, .6); }
:where(:root[data-style="sketch"]) .cr-pin circle { fill: var(--sk-board); }
:where(:root[data-style="sketch"]) .cr-pin text { fill: var(--sk-amber-t); }
:where(:root[data-style="sketch"]) .cr-sweep { background: conic-gradient(from 0deg, transparent 0 300deg, rgba(236, 232, 222, .04) 330deg, rgba(236, 232, 222, .12) 359deg, transparent 360deg); }

/* the directory: each room a pencilled box with the films' specimen tag,
   standing up, holding its number */
:where(:root[data-style="sketch"]) .cr-room {
  border: 1.5px solid rgba(236, 232, 222, .34); border-radius: 3px; background: var(--sk-sheet);
}
:where(:root[data-style="sketch"]) .cr-room-n {
  border-radius: 0; box-shadow: none; padding-top: 9px;
  background: var(--sk-tag-up) 50% 50% / contain no-repeat; color: var(--sk-amber-t);
}
:root[data-style="sketch"] :is(.cr-room.is-hot, .cr-room:focus-visible) { background: rgba(242, 167, 59, .08); }
@media (hover: hover) {
  :root[data-style="sketch"] .cr-room:hover { background: rgba(242, 167, 59, .08); }
}

/* the file system: its render in graphite, the status line ruled off */
:where(:root[data-style="sketch"]) .cr-fsn { filter: grayscale(1) contrast(1.08); }
:where(:root[data-style="sketch"]) .cr-fsn-status { background: none; border-radius: 0; box-shadow: inset 0 1px 0 var(--sk-blue), inset 0 -1px 0 var(--sk-blue); }
:where(:root[data-style="sketch"]) :is(.cr-fsn-go, .cr-chip, .cr-end-home, .cr-end-on) { border-radius: 2px; }
:where(:root[data-style="sketch"]) .cr-chip { background: none; border-color: var(--sk-amber); }
:where(:root[data-style="sketch"]) .cr-hosts-wrap { position: relative; border: 1.5px solid rgba(236, 232, 222, .4); border-radius: 3px; background: var(--sk-sheet); }
:where(:root[data-style="sketch"]) .cr-host { border-top-color: rgba(126, 182, 232, .26); }

/* park status: the bars and the trace in blue and white pencil */
:where(:root[data-style="sketch"]) .cr-fences span, :where(:root[data-style="sketch"]) :is(.cr-sensors figcaption, .cr-sys dt) { color: var(--sk-white); }
:where(:root[data-style="sketch"]) .cr-volt { box-shadow: none; }
:where(:root[data-style="sketch"]) .cr-volt::after { background: repeating-linear-gradient(90deg, var(--sk-white) 0 7px, transparent 7px 10px); }
:where(:root[data-style="sketch"]) .cr-scope svg { border-color: var(--sk-blue); background: none; }
:where(:root[data-style="sketch"]) .cr-scope-grid { stroke: rgba(126, 182, 232, .22); }
:where(:root[data-style="sketch"]) .cr-scope-trace { filter: none; }
:where(:root[data-style="sketch"]) .cr-sensors { border-bottom-color: var(--sk-blue); }
:where(:root[data-style="sketch"]) .cr-sys dt::after { border-bottom-color: var(--sk-blue); }
/* the orbs, inked in white pencil */
:where(:root[data-style="sketch"]) :is(.cr-sensor-orb, .cr-end-orb) { filter: grayscale(1) brightness(1.5); }

/* Nedry's Macintosh: the case drawn in pencil, its white screen the one
   sheet of paper pinned to the board, as it always was */
:where(:root[data-style="sketch"]) .cr-mac {
  background: rgba(12, 14, 17, .9); border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px rgba(236, 232, 222, .68);
}
/* the printout: tractor paper ruled in blue pencil instead of green bars */
:where(:root[data-style="sketch"]) .cr-print { background: repeating-linear-gradient(180deg, #e1e9f1 0 3.6rem, #f5f3ec 3.6rem 7.2rem); }
/* on paper the keyboard ring is graphite */
:root[data-style="sketch"] :is(.cr-print, .cr-mac-screen) { --s-focus: #1b1f24; }

/* the reboot: a drafting button, the switch hatched in red pencil under a
   guard hatched in amber */
:where(:root[data-style="sketch"]) .cr-butts { background: var(--sk-board); box-shadow: none; border-radius: 3px; }
:where(:root[data-style="sketch"]) .cr-guard {
  border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--sk-red);
  background: repeating-linear-gradient(45deg, var(--sk-red) 0 1.5px, transparent 1.5px 5px);
}
:where(:root[data-style="sketch"]) .cr-guard i {
  border-radius: 2px; opacity: 1; box-shadow: inset 0 0 0 1.5px var(--sk-amber);
  background: repeating-linear-gradient(-45deg, var(--sk-amber) 0 1.5px, var(--sk-board) 1.5px 6px);
}
:where(:root[data-style="sketch"]) .cr-end { background: radial-gradient(60% 50% at 50% 40%, #15171b, #08090b 75%); }

/* The world button, purple on every other interface, is the pair's amber,
   a drafting button like the rest, with the page's own ring */
:root[data-style="sketch"] .cr .iw {
  --iw-a: var(--sk-amber); border-radius: 3px;
  background: var(--sk-board); border-color: var(--sk-amber);
}
:root[data-style="sketch"] .cr .iw-i { border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--sk-amber); }
:root[data-style="sketch"] .cr .iw:focus-visible { outline-color: var(--s-focus); }
