:root {
  color-scheme: dark;
  --bg: #111111;
  --acid: #dfff44;
  --paper: #f2e9d3;
  --ink: #171614;
  --rule: #343434;
  --muted: #afaca5;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at 50% 20%, #232329 0, transparent 66%), var(--bg);
  color: #f6f5ed;
  font: 1rem/1.45 var(--sans);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.mast :focus-visible, .pager :focus-visible { color: var(--acid); }
p, h1, h2 { margin: 0; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 10; padding: .7rem; background: var(--acid); color: #111; transform: translateY(-200%); }
.skip:focus { transform: none; }
.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 10px clamp(16px, 4.2vw, 64px);
  background: #111;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  font: 900 .97rem/.83 var(--sans);
  letter-spacing: -.07em;
  text-decoration: none;
}
.brand-mark { font: 2.4rem/.9 var(--sans); color: var(--acid); }
.brand-dot { color: var(--acid); }
.mast-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font: .75rem/1 var(--mono);
  letter-spacing: .09em;
}
.mast-meta span { border: 1px solid #495124; padding: .46rem .55rem; color: var(--acid); }
.mast-meta b { font-weight: 500; color: #d8d5cd; }
.tools { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.tool {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: 0 .72rem;
  border: 1px solid var(--rule);
  color: inherit;
  background: transparent;
  text-decoration: none;
  font: .81rem/1 var(--mono);
  cursor: pointer;
}
.tool:hover { color: var(--acid); border-color: var(--acid); }
.tool-icon { min-width: 42px; justify-content: center; padding: 0; }
.grid-icon { width: 11px; height: 11px; background: linear-gradient(90deg, transparent 40%, #111 40% 59%, transparent 59%), linear-gradient(transparent 40%, #111 40% 59%, transparent 59%), currentColor; }
.fullscreen-icon { width: 13px; height: 13px; border: 1px solid currentColor; background: linear-gradient(90deg, transparent 30%, #111 30% 70%, transparent 70%), linear-gradient(transparent 30%, #111 30% 70%, transparent 70%); box-shadow: inset 0 0 0 1px #111; position: relative; }
.fullscreen-icon::before, .fullscreen-icon::after { position: absolute; content: ""; background: #111; }
.fullscreen-icon::before { inset: 3px -1px; }
.fullscreen-icon::after { inset: -1px 3px; }
.reader { max-width: 986px; margin: 0 auto; padding: 20px 26px 14px; }
.reader:focus { outline: none; }
.issue-meta, .paper-line, .paper-foot, .cover-kicker {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font: .75rem/1.25 var(--mono);
  letter-spacing: .075em;
}
.issue-meta { margin-bottom: 11px; color: var(--muted); }
.issue-meta > span:first-child { display: flex; align-items: center; gap: .55em; }
.live-dot { display: inline-block; width: .46rem; aspect-ratio: 1; border-radius: 50%; background: var(--acid); }
.meta-slash { opacity: .55; }
.book { perspective: 1500px; touch-action: pan-y pinch-zoom; }
.spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
  box-shadow: 0 22px 55px #0009, 0 0 0 1px #ffffff22;
}
.spread + .spread { margin-top: 1.75rem; }
.spread::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 2;
  width: 32px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #0002 37%, #0007 49%, #fffc 50%, #0002 56%, transparent);
  pointer-events: none;
}
.spread.turn-forward { animation: turn-in .38s cubic-bezier(.19,.7,.25,1) both; transform-origin: left center; }
.spread.turn-back { animation: turn-in .38s cubic-bezier(.19,.7,.25,1) both; transform-origin: right center; --flip: 13deg; --shift: -8px; }
@keyframes turn-in { from { opacity: .5; transform: translateX(var(--shift, 8px)) rotateY(var(--flip, -13deg)); } to { opacity: 1; transform: none; } }
.sheet {
  position: relative;
  min-width: 0;
  min-height: 100%;
  container-type: inline-size;
  background: var(--paper);
  color: var(--ink);
}
.sheet > img { user-select: none; -webkit-user-drag: none; }
.cover, .opener, .back { width: 100%; min-height: 0; aspect-ratio: 4/5.34; overflow: hidden; align-self: stretch; }
.full-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover { background: #142372; color: var(--acid); }
.cover::after, .opener::after, .back::after { position: absolute; z-index: 0; content: ""; inset: 0; pointer-events: none; }
.cover::after { background: linear-gradient(180deg, #04082aab, #04082a29 31%, transparent 50%, #0405254d 68%, #05061cec 100%); }
.cover-content, .opener-ink, .back-ink { position: absolute; z-index: 1; inset: 0; padding: 6.25cqw; display: flex; flex-direction: column; }
.cover-kicker { color: white; border-top: 1px solid #ffffff9e; padding-top: .62rem; }
.cover h1, .contents h2, .opener h2, .fiction h2, .back-title, .cover-title {
  font-family: var(--display);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.cover h1 {
  color: var(--acid);
  font-size: 17.4cqw;
  margin-top: 3cqw;
  text-shadow: 2px 3px 0 #1e257b, 0 3px 14px #0007;
}
.cover h1 em, .contents h2 em { font-style: normal; }
.cover h1 em { color: #faf4e7; }
.cover-footer { display: flex; gap: 1rem; justify-content: space-between; align-items: end; margin-top: auto; }
.cover-title { font-size: 10.4cqw; color: white; }
.cover-title span { color: var(--acid); }
.cover-lines { color: #e7ff7b; text-align: right; font: 700 max(.65rem, 2.4cqw)/1.55 var(--mono); }
.contents, .story { display: flex; flex-direction: column; }
.contents > *, .story > * { margin-left: 7.8cqw; margin-right: 7.8cqw; }
.paper-line { margin-top: 6.25cqw; padding-top: .62rem; border-top: 1px solid currentColor; }
.paper-foot { margin-top: auto; margin-bottom: 6.25cqw; padding-top: .65rem; border-top: 1px solid currentColor; }
.contents { background-image: radial-gradient(#55311d25 .46px, transparent .58px); background-size: 4px 4px; }
.contents-heading { margin-top: clamp(1.3rem, 6cqw, 2.35rem); display: flex; justify-content: space-between; align-items: center; gap: .5rem; position: relative; }
.contents h2 { flex-shrink: 0; font-size: 18.6cqw; }
.contents h2 em { color: #252fd1; }
.contents h2 span { color: #252fd1; }
.contents-star { color: #252fd1; font: 29cqw/.8 var(--sans); transform: rotate(-15deg); }
.contents-deck { margin-top: 1rem; font: 600 1rem/1.25 var(--sans); }
.toc { margin-top: 1.05rem; margin-bottom: 1.25rem; border-top: 1px solid var(--ink); }
.toc a {
  min-height: 55px;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .38rem .28rem;
  border-bottom: 1px solid #17161460;
  text-decoration: none;
  transition: background-color .14s, color .14s;
}
.toc a:hover { background: #252fd1; color: white; }
.toc a:hover .toc-kind, .toc a:hover .toc-number { color: inherit; }
.toc-number { font: 900 1.25rem/1 var(--display); color: #252fd1; }
.toc-kind { display: block; font: .69rem/1.1 var(--mono); color: #4c4e71; letter-spacing: .08em; margin-bottom: 4px; }
.toc strong { display: block; font-size: .99rem; line-height: 1.06; letter-spacing: -.02em; }
.toc-chevron { font-size: 1.45rem; line-height: 1; }

.local { --spread-accent: #dfff44; --story-paper: #ebefd3; --art-bg: #19200d; }
.power { --spread-accent: #ff753d; --story-paper: #f7e2ce; --art-bg: #3c1223; }
.proof { --spread-accent: #decbff; --story-paper: #e8dff4; --art-bg: #182056; }
.after { --spread-accent: #dfff44; --story-paper: #d8cdf0; --art-bg: #251746; }
.opener, .back { background: var(--art-bg); color: #fff9e7; }
.opener::after { background: linear-gradient(#0c06189c 0%, transparent 28%, transparent 46%, #0906177d 65%, #0e0819ef 100%); }
.opener-ink .paper-line, .back-ink .paper-line { margin-top: 0; }
.opener h2 { color: #fff7e8; font-size: 15.6cqw; margin-top: auto; text-shadow: 0 3px 12px #0009; }
.opener h2 span { color: var(--spread-accent); }
.proof .opener h2 { font-size: 11.4cqw; }
.story { background: var(--story-paper); }
.standfirst { margin-top: 5.4cqw; margin-bottom: .78rem; font-size: clamp(1.35rem, 5.5cqw, 1.72rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.story-copy { font: 1rem/1.39 Georgia, "Times New Roman", serif; }
.story-copy > p + p { margin-top: .68rem; }
.side-note { margin: .85rem 0; padding: .6rem .72rem; border-left: 3px solid #1b1624; background: color-mix(in srgb, var(--spread-accent) 62%, transparent); }
.side-note b { display: block; margin-bottom: .25rem; font: 700 .72rem/1.2 var(--mono); letter-spacing: .025em; }
.side-note p { font-size: .92rem; line-height: 1.3; }
.big-stat { display: flex; gap: .72rem; align-items: center; }
.big-stat strong { font: 900 2.65rem/.9 var(--display); letter-spacing: -.035em; }
.sources { display: flex; flex-wrap: wrap; gap: .45rem .75rem; margin-top: .8rem; margin-bottom: 1.1rem; font: .73rem/1.3 var(--mono); }
.sources a { text-underline-offset: .18em; }
.sources a:hover { color: #3125b8; }
.fiction h2 { font-size: 11.2cqw; margin-top: 5.5cqw; margin-bottom: 3.2cqw; }
.fiction h2 span { color: #3727b0; }
.fiction .story-copy { margin-bottom: 1.1rem; }
.continue-link {
  align-self: flex-start;
  margin-top: .8rem;
  font: 700 .82rem/1.45 var(--mono);
  text-underline-offset: .2em;
}
.continue-link:hover { color: #3125b8; }
.continuation-page { min-height: clamp(33rem, 64vw, 38.95rem); }
.continuation-page:nth-child(2) {
  background: color-mix(in srgb, var(--spread-accent) 25%, var(--story-paper));
}
.continuation-title {
  color: var(--ink);
  font: 900 9.3cqw/.98 var(--display);
  text-transform: uppercase;
  letter-spacing: -.018em;
  margin-top: 5cqw;
  margin-bottom: .95rem;
}
.continuation-page .story-copy { margin-bottom: 1rem; }
.continuation-page .story-copy > p:first-child::first-letter {
  float: left;
  margin: .06em .1em 0 0;
  font: 900 3.25em/.83 var(--display);
}
.continuation-art {
  flex-shrink: 0;
  margin-block: 0 1rem;
  block-size: clamp(9rem, 43cqw, 12.5rem);
  overflow: hidden;
  background: var(--art-bg);
}
.continuation-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.continuation-art--bleed {
  margin-inline: 0;
  border-bottom: .25rem solid var(--spread-accent);
}
.continuation-art--inset {
  block-size: clamp(8.25rem, 38cqw, 11rem);
  border: 1px solid var(--art-bg);
  box-shadow: .28rem .28rem 0 var(--spread-accent);
}
.continuation-art + .sources { margin-top: 0; }
/* Field reports and the second contents spread */
.field-index { --spread-accent: #cfff44; --story-paper: #ede8d7; --art-bg: #191520; }
.field-title {
  margin-top: 6cqw;
  margin-bottom: 1rem;
  font: 900 13cqw/.88 var(--display);
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.field-title span { color: #3729c5; }
.field-intro .story-copy { margin-bottom: 1rem; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-block: 0 1.1rem;
  padding: 3px;
  background: var(--art-bg);
}
.field-grid img { width: 100%; height: clamp(85px, 27cqw, 134px); object-fit: cover; display: block; }
.field-list .field-title { font-size: 12cqw; }
.field-list .toc { margin-top: .25rem; }
.field-list .toc a { min-height: 45px; }
.field-list .toc-kind { margin-bottom: 3px; }
.field-opener .opener h2 { font-size: 12cqw; overflow-wrap: anywhere; }
.feature-text .continuation-title { font-size: 8.8cqw; }
.feature-text .paper-line { letter-spacing: .055em; }
.back::after { background: linear-gradient(#10052599, transparent 28%, transparent 52%, #100525dc 86%); }
.back-title { font-size: 12cqw; color: var(--acid); margin-top: auto; }
.back-footer { margin-top: 1.1rem; display: flex; align-items: end; gap: .9rem; justify-content: space-between; font: .76rem/1.38 var(--mono); }
.back-footer a { flex-shrink: 0; padding-bottom: .2rem; text-underline-offset: .22em; }

.pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
  padding: 15px 0 0;
}
.turn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #f8f6ee;
  background: #1b1b1b;
  border: 1px solid #474747;
  min-height: 44px;
  padding: 0 .85rem;
  width: max-content;
  font: .81rem/1 var(--mono);
  cursor: pointer;
}
#next { justify-self: end; }
.turn:hover:not(:disabled) { background: var(--acid); border-color: var(--acid); color: #111; }
.turn:disabled { color: #7e7c77; border-color: #363636; cursor: default; }
.chevron { width: 8px; height: 8px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.chevron.left { transform: rotate(-135deg); }
.pager-center { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; min-width: 0; }
.thumbnails {
  display: flex;
  gap: .5rem;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #68675f #111;
  scroll-padding-inline: 4px;
}
.thumb { flex: 0 0 auto; }
.thumb-field { --tiny-color: #ede8d7; --tiny-image: url("assets/photon-beams.webp"); }
.thumb {
  width: 58px;
  height: 45px;
  position: relative;
  display: flex;
  align-items: end;
  text-decoration: none;
  padding: 3px;
  box-shadow: inset 0 0 0 1px #ffffff38;
  border: 1px solid transparent;
  background: var(--tiny-color) var(--tiny-image) left center / 50% auto no-repeat;
}
.thumb span { color: white; background: #111e; font: .69rem/1 var(--mono); padding: 2px 3px; }
.thumb-cover { --tiny-color: #f2e9d3; --tiny-image: url("assets/cover.webp"); }
.thumb-local { --tiny-color: #ebefd3; --tiny-image: url("assets/local.webp"); }
.thumb-power { --tiny-color: #f7e2ce; --tiny-image: url("assets/power.webp"); }
.thumb-proof { --tiny-color: #e8dff4; --tiny-image: url("assets/proof.webp"); }
.thumb-after { --tiny-color: #d8cdf0; --tiny-image: url("assets/back.webp"); background-position: right center; }
.theme-dreams { --spread-accent: #e9a7ff; --story-paper: #eee3f9; --art-bg: #261344; }
.thumb-dreams { --tiny-color: #eee3f9; --tiny-image: url("assets/dreams-scanner.webp"); }
.theme-wetware { --spread-accent: #c8ef33; --story-paper: #e8eed4; --art-bg: #20351e; }
.thumb-wetware { --tiny-color: #e8eed4; --tiny-image: url("assets/wetware-culture-dish.webp"); }
.theme-radio { --spread-accent: #77f5ef; --story-paper: #def1ef; --art-bg: #103643; }
.thumb-radio { --tiny-color: #def1ef; --tiny-image: url("assets/radio-wireframe.webp"); }
.theme-mesh { --spread-accent: #e4fb5b; --story-paper: #eef1d5; --art-bg: #26351b; }
.thumb-mesh { --tiny-color: #eef1d5; --tiny-image: url("assets/mesh-ridgeline.webp"); }
.theme-photon { --spread-accent: #ff796a; --story-paper: #f6e3e5; --art-bg: #341731; }
.thumb-photon { --tiny-color: #f6e3e5; --tiny-image: url("assets/photon-photonic-chip.webp"); }
.theme-worlds { --spread-accent: #ffdc55; --story-paper: #e8e9f9; --art-bg: #1f235c; }
.thumb-worlds { --tiny-color: #e8e9f9; --tiny-image: url("assets/worlds-concourse.webp"); }
.theme-circuits { --spread-accent: #ff9b76; --story-paper: #f4e1ea; --art-bg: #321c39; }
.thumb-circuits { --tiny-color: #f4e1ea; --tiny-image: url("assets/circuits-labyrinth.webp"); }
.theme-town { --spread-accent: #fcb6e7; --story-paper: #f5e3ef; --art-bg: #41224a; }
.thumb-town { --tiny-color: #f5e3ef; --tiny-image: url("assets/town-synthetic-town.webp"); }
.thumb:hover, .thumb[aria-current] { outline: 1px solid var(--acid); outline-offset: 2px; }
.page-count { color: #dedad1; font: .75rem/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.reader-foot { text-align: right; margin-top: -1rem; color: var(--muted); font: .69rem/1.15 var(--mono); letter-spacing: .06em; }
kbd { font: inherit; color: #eeece6; }

@media (max-width: 820px) {
  .spread { grid-template-columns: minmax(0, 1fr); }
  .reader { max-width: 560px; padding-bottom: 110px; }
  .spread::after { display: none; }
  .sheet { min-height: auto; }
  .contents, .story { min-height: 525px; }
  .continuation-page { min-height: 0; }
  .continuation-page .paper-foot { margin-top: .9rem; }
  .contents > *, .story > * { margin-left: 7%; margin-right: 7%; }
  .contents, .story { padding-bottom: 1.3rem; }
  .paper-foot { margin-bottom: 0; }
  .pager { position: fixed; z-index: 3; inset: auto 0 0; padding: 10px max(12px, calc((100vw - 510px) / 2)) max(9px, env(safe-area-inset-bottom)); background: #111; border-top: 1px solid var(--rule); }
  .reader-foot { display: none; }
  #contents { scroll-margin-top: 8px; }
}
@media (max-width: 540px) {
  .mast { min-height: 62px; grid-template-columns: 1fr auto; }
  .mast-meta { display: none; }
  .reader { padding: 13px 12px 112px; }
  .issue-meta { font-size: .63rem; letter-spacing: .025em; }
  .cover-kicker, .paper-line, .paper-foot { font-size: .68rem; }
  .toc a { min-height: 52px; }
  .toc strong { font-size: .94rem; }
  .story-copy { font-size: 1rem; }
  .thumbnails { gap: .35rem; }
  .pager-center { gap: 3px; }
  .thumb { width: clamp(33px, 10vw, 49px); height: 37px; }
  .turn { min-width: 39px; padding: 0 .65rem; justify-content: center; }
  .turn-name { display: none; }
  .back-footer { flex-wrap: wrap; }
}
@media (max-width: 330px) {
  .issue-meta { flex-wrap: wrap; row-gap: 4px; }
  .turn { min-width: 34px; }
  .pager { gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  body { background: #fff; print-color-adjust: exact; }
  .mast, .issue-meta, .pager, .reader-foot, .skip { display: none !important; }
  .reader { padding: 0; max-width: none; }
  .spread[hidden], .spread { display: grid !important; grid-template-columns: 1fr 1fr; box-shadow: none; break-after: page; }
  .spread + .spread { margin-top: 0; }
  .spread:last-child { break-after: auto; }
  .spread::after { display: none; }
}

.mast .archive-link[aria-current="page"] { color: var(--acid); border-color: #495124; }
@media (max-width: 820px) {
  .mast { grid-template-columns: 1fr auto; }
  .mast-meta { display: none; }
}
@media (max-width: 480px) {
  .mast .tools { gap: .4rem; }
  .mast .tool { padding-inline: .6rem; }
  .mast .tools .tool-icon, .mast .tools .grid-icon { display: none; }
}
