/* brandtabbott.me as a printed magazine.

   The magazine (.mag) lies on a desk (.desk). Its pages live in a sideways scroller
   (.pages). Two kinds of page:
     .plate  one fixed, full-bleed page (cover, feature openers, ads), sized in
             container units so it scales like print.
     .flow   running text. A multi-column box one page wide whose extra columns
             overflow sideways, so each column (or pair of columns) is a page.
   magazine.js lays a .sheet over every page (paper grain, spine shadow, running
   head, folio) and turns the pages.

   Sizes: --pw / --ph are one page, --pp pages per view (2 = an open spread),
   --n text columns per page, --h the air on each side of a text column. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "VGA";
  src: url("/assets/projects/turbo-blues/fonts/WebPlus_IBM_VGA_8x16.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3efe5;
  --paper-2: #e6e0d2;
  --ink: #161412;
  --ink-2: #5b554d;
  --mint: #8fd4a9; /* the lenses on the cover */
  --red: #e2422a;
  --desk: #c8c2b5;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bar: 46px;
  --pad: clamp(14px, 2.6vmin, 34px);
  --pp: 1;
  --n: 1;
  --ph: min(calc(100dvh - var(--bar) - 2 * var(--pad)), calc((100vw - 2 * var(--pad)) / 0.77));
  --pw: calc(var(--ph) * 0.77);
  --h: calc(var(--pw) * 0.085);
  --mt: calc(var(--ph) * 0.085);
  --mb: calc(var(--ph) * 0.1);
  --fs: clamp(15.5px, calc(var(--pw) / 32), 21px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* tall pages with room for two columns of text (tablets held upright) */
@media (min-width: 740px) and (min-height: 960px) {
  :root {
    --n: 2;
  }
}
/* wide screens: the magazine lies open, two pages at a time */
@media (min-aspect-ratio: 5/4) and (min-width: 880px) {
  :root {
    --pp: 2;
    --n: 1;
    --ph: min(calc(100dvh - var(--bar) - 2 * var(--pad)), calc((100vw - 2 * var(--pad)) / 1.54));
  }
}
@media (min-aspect-ratio: 5/4) and (min-width: 1480px) and (min-height: 980px) {
  :root {
    --n: 2;
  }
}
/* the front cover is a closed magazine: always one page */
:root:has(body[data-view="home"]) {
  --pp: 1;
  --n: 1;
  --ph: min(calc(100dvh - var(--bar) - 2 * var(--pad)), calc((100vw - 2 * var(--pad)) / 0.77));
}
/* phones: the page is the screen */
@media (max-width: 600px), (max-height: 520px) {
  :root,
  :root:has(body[data-view="home"]) {
    --pad: 0px;
    --pp: 1;
    --n: 1;
    --pw: 100vw;
    --ph: calc(100dvh - var(--bar));
    --h: calc(var(--pw) * 0.07);
    --mt: clamp(34px, calc(var(--ph) * 0.075), 60px);
    --mb: clamp(40px, calc(var(--ph) * 0.085), 70px);
    --fs: clamp(16px, calc(var(--pw) / 23), 18.5px);
  }
}
@media (max-height: 520px) and (min-width: 640px) {
  :root {
    --n: 2;
    --fs: 15.5px;
  }
}
/* two columns want a little less air and smaller type */
@media (min-width: 740px) and (min-height: 960px) and (max-aspect-ratio: 5/4),
  (min-aspect-ratio: 5/4) and (min-width: 1480px) and (min-height: 980px) {
  :root:not(:has(body[data-view="home"])) {
    --h: calc(var(--pw) * 0.05);
    --fs: clamp(15px, calc(var(--pw) / 44), 22px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--desk);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@view-transition {
  navigation: auto;
}

/* ------------------------------------------------------------------ desk */
.desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.3;
  pointer-events: none;
}
.desk {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--bar);
  background: radial-gradient(120% 90% at 50% 38%, #d9d3c7 0%, var(--desk) 55%, #aaa497 100%);
}
.mag {
  position: relative;
  place-self: center;
  width: calc(var(--pw) * var(--pp));
  height: var(--ph);
  isolation: isolate;
  perspective: 2600px;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.1),
    0 2px 3px rgb(0 0 0 / 0.25),
    0 22px 34px -14px rgb(40 30 15 / 0.5),
    0 50px 80px -30px rgb(40 30 15 / 0.45);
  view-transition-name: magazine;
}
/* the block of pages underneath, peeking out at the fore-edges */
.mag::before,
.mag::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px -3px -3px;
  background: repeating-linear-gradient(to bottom, #f7f4ec 0 1px, #cfc8b8 1px 2px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}
.mag::after {
  inset: 4px -6px -6px;
  z-index: -2;
}
:root:has(body[data-view="home"]) .mag::before {
  inset: 2px -3px -3px 0;
}
:root:has(body[data-view="home"]) .mag::after {
  inset: 4px -6px -6px 0;
}

.pages {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: auto hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  background: var(--paper);
  font-size: var(--fs);
  outline: none;
}
.js .pages {
  scrollbar-width: none;
}
.js .pages::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------------ sheets (added by magazine.js) */
.sheet {
  position: absolute;
  z-index: 3;
  top: 0;
  left: calc(var(--i) * var(--pw));
  width: var(--pw);
  height: 100%;
  pointer-events: none;
  font-family: var(--mono);
  color: var(--ink);
  /* the spine: pages curve down into the fold */
  background: linear-gradient(
    to var(--spine),
    transparent 82%,
    rgb(0 0 0 / 0.035) 90%,
    rgb(0 0 0 / 0.1) 96%,
    rgb(0 0 0 / 0.26) 100%
  );
}
.sheet.verso {
  --spine: right;
  --outer: left;
}
.sheet.recto {
  --spine: left;
  --outer: right;
}
.sheet.snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.22;
}
.sheet .rh,
.sheet .folio {
  position: absolute;
  font-size: max(9px, 0.6em);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sheet .rh {
  top: calc(var(--mt) * 0.42);
  max-width: calc(100% - 2 * var(--h));
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-2);
}
.sheet .folio {
  bottom: calc(var(--mb) * 0.34);
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 800;
  font-size: max(13px, 1.05em);
  letter-spacing: 0.02em;
}
.sheet.verso .rh,
.sheet.verso .folio {
  left: var(--h);
}
.sheet.recto .rh,
.sheet.recto .folio {
  right: var(--h);
}
/* the last spread came up a page short: a house ad fills it */
.sheet.filler {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: calc(var(--pw) * 0.03);
  background-color: var(--mint);
  text-align: center;
}
.filler-mark {
  font: 900 calc(var(--pw) * 0.24) / 0.8 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
}
.filler-line {
  font: 500 max(8px, calc(var(--pw) * 0.019)) / 1.7 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* the page that lifts and falls when you turn (open spreads only) */
.flap {
  position: absolute;
  z-index: 6;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(to var(--to), rgb(0 0 0 / 0.16), rgb(0 0 0 / 0) 30%, rgb(255 255 255 / 0.25) 70%, rgb(0 0 0 / 0.1)),
    var(--paper);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.35);
  will-change: transform;
}
.flap.fwd {
  left: 50%;
  transform-origin: left center;
  --to: right;
}
.flap.back {
  left: 0;
  transform-origin: right center;
  --to: left;
}

/* click the fore-edge to turn (pointer devices) */
.edge {
  position: absolute;
  z-index: 5;
  top: 0;
  width: calc(var(--h) * 0.8);
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: none;
}
.edge-prev {
  left: 0;
}
.edge-next {
  right: 0;
}
.edge::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.edge-next::after {
  background: linear-gradient(to left, rgb(0 0 0 / 0.14), transparent);
}
.edge-prev::after {
  background: linear-gradient(to right, rgb(0 0 0 / 0.14), transparent);
}
.edge:hover::after,
.edge:focus-visible::after {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .edge {
    display: block;
  }
}

/* ------------------------------------------------------------------ rail (under the magazine) */
.rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(10px, 3vw, 34px);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rail a {
  color: inherit;
  text-decoration: none;
}
.rail-logo {
  font: 900 22px/1 var(--display);
  font-stretch: 62%;
  letter-spacing: 0.01em;
}
.rail-links {
  display: flex;
  gap: clamp(2px, 1.6vw, 22px);
  min-width: 0;
}
.rail-links a {
  padding: 10px 6px;
  border-bottom: 2px solid transparent;
}
.rail-links a:hover,
.rail-links a[aria-current] {
  border-bottom-color: currentColor;
}
.rail-turn {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-count {
  min-width: 5.5em;
  max-width: 16em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.turn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 500 15px/1 var(--mono);
  letter-spacing: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
a.turn:hover,
span.turn.live:hover {
  background: var(--ink);
  color: var(--paper);
}
/* no section that way: dimmed, unless this section still has pages to turn (.live) */
span.turn {
  opacity: 0.25;
}
span.turn.live {
  opacity: 1;
  cursor: pointer;
}
.rail a:focus-visible,
.pages:focus-visible,
.pages a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 600px), (max-height: 520px) {
  .rail {
    background: var(--ink);
    color: var(--paper);
    letter-spacing: 0.06em;
    font-size: 10px;
    gap: 6px;
    padding: 0 8px;
  }
  .rail-logo {
    display: none;
  }
  .rail-links {
    gap: 0;
  }
  .rail-links a {
    padding: 10px 5px;
  }
  .rail-count {
    min-width: 3.6em;
    max-width: 4.4em;
  }
  .turn {
    width: 32px;
    height: 32px;
  }
  a.turn:hover,
  span.turn.live:hover {
    background: var(--paper);
    color: var(--ink);
  }
  .mag {
    box-shadow: none;
  }
  /* a gentler fold when the page fills the screen */
  .sheet {
    background: linear-gradient(to var(--spine), transparent 88%, rgb(0 0 0 / 0.05) 95%, rgb(0 0 0 / 0.16) 100%);
  }
  .mag::before,
  .mag::after {
    display: none;
  }
}

/* ------------------------------------------------------------------ plates */
.plate {
  position: relative;
  flex: none;
  width: var(--pw);
  height: var(--ph);
  overflow: hidden;
  container-type: size;
  margin: 0;
}
.plate-kicker {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  margin: 0;
  font: 500 max(9px, 1.9cqw) / 1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* front cover */
.cover {
  background: #0a0a0a;
  color: var(--paper);
}
.cover a {
  color: inherit;
  text-decoration: none;
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.cover::after {
  /* shade for the cover lines */
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.55) 40%, rgb(0 0 0 / 0.92));
  pointer-events: none;
}
.cover-head {
  position: absolute;
  inset: 4.4cqw 5.5cqw auto;
}
.cover-strip {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.5cqw;
  font: 500 max(8px, 1.75cqw) / 1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cover-logo {
  margin: 0 0 0 -0.035em;
  font: 900 29.4cqw/0.8 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mint);
  /* only where the photo is darker: the head stays in front of the masthead */
  mix-blend-mode: lighten;
}
.cover-tag {
  margin: 2.6cqw 0 0;
  font: 500 italic 3.1cqw/1 var(--text);
  letter-spacing: 0.01em;
}
.cover-tag i {
  color: var(--mint);
}
.cover-lines {
  position: absolute;
  z-index: 1;
  left: 5.5cqw;
  right: 35cqw;
  bottom: 5.5cqw;
}
.cover-lead {
  display: block;
}
.cover-kicker {
  display: inline-block;
  padding: 0.7cqw 1.2cqw 0.6cqw;
  background: var(--mint);
  color: var(--ink);
  font: 500 max(8px, 1.75cqw) / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cover-lead b {
  display: block;
  margin: 1.6cqw 0 1.3cqw;
  font: 900 9.6cqw/0.88 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  text-wrap: balance;
}
.cover-dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font: 400 italic max(11px, 2.7cqw) / 1.25 var(--text);
  max-width: 34em;
}
.cover-more {
  list-style: none;
  margin: 2.6cqw 0 0;
  padding: 1.6cqw 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.5);
  font: 700 max(11px, 2.7cqw) / 1.1 var(--display);
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cover-more li + li {
  margin-top: 0.9cqw;
}
.cover-more span {
  display: inline-block;
  min-width: 3.4em;
  color: var(--mint);
  font: 500 0.72em/1 var(--mono);
  letter-spacing: 0.08em;
}
.cover-lead:hover b,
.cover-more a:hover {
  color: var(--mint);
}
.cover-sticker {
  position: absolute;
  z-index: 1;
  right: 4.5cqw;
  bottom: 27cqw;
  width: 19cqw;
  height: 19cqw;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper) !important;
  text-align: center;
  transform: rotate(11deg);
  box-shadow: 0 0.4cqw 1.4cqw rgb(0 0 0 / 0.5);
  transition: transform 0.2s;
}
.cover-sticker:hover {
  transform: rotate(4deg) scale(1.06);
}
.cover-sticker b {
  font: 900 9.5cqw/0.8 var(--display);
  font-stretch: 62%;
}
.cover-sticker span {
  font: 500 max(7px, 1.55cqw) / 1.15 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cover-code {
  position: absolute;
  z-index: 1;
  right: 14.5cqw;
  bottom: 5.5cqw;
  width: 17cqw;
  padding: 1.1cqw 1.2cqw 0.8cqw;
  background: var(--paper);
  color: var(--ink);
}
.cover-code i {
  display: block;
  height: 7cqw;
  background: repeating-linear-gradient(
    to right,
    var(--ink) 0 0.28cqw,
    transparent 0 0.62cqw,
    var(--ink) 0 1.24cqw,
    transparent 0 1.52cqw,
    var(--ink) 0 1.68cqw,
    transparent 0 2.3cqw
  );
}
.cover-code span {
  display: block;
  margin-top: 0.6cqw;
  font: 500 max(6px, 1.3cqw) / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
/* the dog-eared corner that opens the magazine */
.cover-open {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 11cqw;
  height: 11cqw;
  background: linear-gradient(315deg, var(--paper) 0 50%, #fbf9f3 50%, #cdc6b6 58%, #efebe1 100%);
  box-shadow: -0.5cqw -0.5cqw 1.6cqw rgb(0 0 0 / 0.55);
  transition:
    width 0.2s,
    height 0.2s;
}
.cover-open:hover,
.cover-open:focus-visible {
  width: 15cqw;
  height: 15cqw;
}
.cover-open span {
  position: absolute;
  right: 0.9cqw;
  bottom: 0.9cqw;
  color: var(--ink);
  font: 500 max(6px, 1.25cqw) / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* feature openers (and the contents / colophon title pages) */
.opener,
.contents {
  display: flex;
  flex-direction: column;
  /* a container's own padding can't use its cq units, so these are from --pw */
  padding: calc(var(--pw) * 0.07) calc(var(--pw) * 0.08) calc(var(--pw) * 0.08);
  background: var(--bg);
  color: var(--fg);
}
.tone-0 {
  --bg: var(--mint);
  --fg: var(--ink);
  --hi: var(--ink);
}
.tone-1 {
  --bg: var(--ink);
  --fg: var(--paper);
  --hi: var(--mint);
}
.tone-2 {
  --bg: var(--red);
  --fg: var(--ink);
  --hi: var(--paper);
}
.tone-3 {
  --bg: var(--paper-2);
  --fg: var(--ink);
  --hi: var(--red);
}
.opener h1 {
  margin: auto 0 0;
  padding-top: 6cqw;
  /* --ts is the size for the title's length; --fit (set per post by the build) caps
     it so the longest word always fits the line */
  font: 900 min(var(--ts, 21cqw), var(--fit, 100cqw)) / 0.84 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.008em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: none;
  hyphens: none;
  color: var(--hi);
}
.size-xs {
  --ts: 31cqw;
}
.size-s {
  --ts: 26cqw;
}
.size-m {
  --ts: 21cqw;
}
.size-l {
  --ts: 17.5cqw;
}
@container (max-aspect-ratio: 62/100) {
  /* tall phone pages have the height for bigger headlines */
  .size-m {
    --ts: 23cqw;
  }
  .size-l {
    --ts: 20cqw;
  }
}
.opener-dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  margin: 4.5cqw 0 0;
  max-width: 30em;
  font: 400 italic max(14px, 3.7cqw) / 1.28 var(--text);
}
.opener-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw 4cqw;
  margin-top: 5cqw;
  padding-top: 2.4cqw;
  border-top: 0.4cqw solid currentColor;
  font: 500 max(9px, 1.9cqw) / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.opener-foot b {
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.opener-read {
  margin-left: auto;
}
.opener.has-hero {
  --bg: #0a0a0a;
  --fg: var(--paper);
  --hi: var(--paper);
}
.opener-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opener.has-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.55),
    rgb(0 0 0 / 0.05) 22%,
    rgb(0 0 0 / 0.1) 40%,
    rgb(0 0 0 / 0.88) 82%
  );
}
.opener.has-hero > :not(.opener-art) {
  position: relative;
  z-index: 2;
}

/* contents title page */
.contents {
  --bg: var(--paper);
  --fg: var(--ink);
}
.contents h1 {
  margin: 3cqw 0 0 -0.03em;
  font: 900 27cqw/0.8 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.contents-lead {
  position: relative;
  display: block;
  margin: auto 0 0;
  padding: 5cqw 5cqw 4.4cqw;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
}
.contents-leadno {
  position: absolute;
  right: 4cqw;
  top: 3.4cqw;
  font: 900 15cqw/0.8 var(--display);
  font-stretch: 62%;
}
.contents-kicker,
.contents-go {
  display: block;
  font: 500 max(9px, 1.9cqw) / 1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contents-lead h2 {
  margin: 2.6cqw 16cqw 2cqw 0;
  font: 900 9.5cqw/0.88 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  text-wrap: balance;
}
.contents-lead p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  margin: 0 0 3cqw;
  font: 400 italic max(13px, 3.3cqw) / 1.28 var(--text);
}
.contents-lead:hover .contents-go {
  text-decoration: underline;
}
.contents-note,
.contents-empty {
  margin: 4.5cqw 0 0;
  padding-top: 3cqw;
  border-top: 0.6cqw solid var(--ink);
  max-width: 14em;
  font: 400 italic max(17px, 5.6cqw) / 1.14 var(--text);
  text-wrap: balance;
}
.contents-empty {
  margin-top: auto;
  border: 0;
}

/* colophon title page */
.colophon h1 {
  margin: 3cqw 0 0 -0.03em;
  padding: 0;
  font-size: 23cqw;
  color: var(--ink);
}
.staff {
  margin: auto 0 0;
}
.staff div {
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  padding: 1.5cqw 0;
  border-top: 1px solid currentColor;
}
.staff dt {
  flex: none;
  width: 30%;
  font: 500 max(9px, 1.9cqw) / 1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.staff dd {
  margin: 0;
  font: 800 max(15px, 4.6cqw) / 1 var(--display);
  font-stretch: 70%;
  text-transform: uppercase;
}
.staff div:nth-child(n + 2) dd {
  color: var(--red);
}

/* ------------------------------------------------------------------ flowing pages */
.flow {
  flex: none;
  width: var(--pw);
  height: var(--ph);
  margin: 0;
  padding: var(--mt) var(--h) var(--mb);
  column-count: var(--n);
  column-gap: calc(2 * var(--h));
  column-fill: auto;
  font-family: var(--text);
  line-height: 1.42;
  font-optical-sizing: auto;
  orphans: 2;
  widows: 2;
}
.story {
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}
.story p {
  margin: 0;
}
.story p + p {
  text-indent: 1.4em;
}
.story p:has(> img:only-child),
.story p:has(> br) {
  text-indent: 0;
}
.story > p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.09em 0 0;
  font: 900 4.15em/0.74 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  color: var(--red);
}
.story > p:last-of-type::after {
  content: "\00a0■";
  color: var(--red);
  font-size: 0.75em;
}
.story h1,
.story h2,
.story h3,
.story h4 {
  font-family: var(--display);
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
  break-after: avoid;
  break-inside: avoid;
}
.story h1 {
  margin: 0 0 0.55em;
  font-size: 1.95em;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.98;
}
.story h2 {
  margin: 1.5em 0 0.5em;
  padding-top: 0.5em;
  border-top: 2px solid var(--ink);
  font-size: 0.98em;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.story h3,
.story h4 {
  margin: 1.3em 0 0.3em;
  font-size: 1em;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.2;
}
.story > :first-child {
  margin-top: 0;
}
.story a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--red);
}
.story a:hover {
  background: var(--mint);
}
.story ul,
.story ol {
  margin: 0.65em 0;
  padding-left: 1.25em;
}
.story li {
  margin: 0.22em 0;
}
.story li::marker {
  color: var(--red);
  font-family: var(--display);
  font-weight: 800;
}
.story blockquote {
  margin: 0.9em 0;
  padding: 0.75em 0.95em;
  background: color-mix(in srgb, var(--mint) 42%, var(--paper));
  border-left: 3px solid var(--ink);
  font-size: 0.93em;
  line-height: 1.36;
}
.story blockquote p + p {
  margin-top: 0.55em;
  text-indent: 0;
}
.story code {
  font: 0.8em/1.3 var(--mono);
  padding: 0.08em 0.28em;
  background: rgb(22 20 18 / 0.075);
  border-radius: 2px;
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
}
.story pre {
  margin: 0.9em 0;
  padding: 0.75em 0.85em;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  font: 0.72em/1.5 var(--mono);
  /* a listing that runs over the page keeps its box on both sides of the break */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-hyphens: none;
  hyphens: none;
  tab-size: 2;
}
.story pre code {
  padding: 0;
  background: none;
  font: inherit;
}
.story img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--ph) - var(--mt) - var(--mb));
  margin: 0.9em 0;
  object-fit: contain;
  break-inside: avoid;
}
.story table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  border-bottom: 2px solid var(--ink);
  font: 0.76em/1.3 var(--display);
  -webkit-hyphens: none;
  hyphens: none;
}
.story th,
.story td {
  padding: 0.45em 0.5em 0.45em 0;
  border-top: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.story th {
  border-top-width: 2px;
  font-weight: 800;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.story hr {
  margin: 1.3em auto;
  width: 30%;
  border: 0;
  border-top: 2px solid var(--ink);
}
.endnote {
  margin-top: 1.9em;
  padding-top: 0.8em;
  border-top: 2px solid var(--ink);
  break-inside: avoid;
  -webkit-hyphens: none;
  hyphens: none;
}
.endnote a {
  display: block;
  text-decoration: none;
}
.endnote a:hover {
  background: none;
}
.next-up span,
.back {
  font: 500 0.62em/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.next-up span {
  display: block;
  color: var(--red);
}
.next-up b {
  display: block;
  margin: 0.2em 0 0.55em;
  font: 900 1.9em/0.92 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  text-wrap: balance;
}
.next-up:hover b,
.back:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
}
.colophon-body > p:first-of-type::first-letter {
  /* the title here is an <em>, which a drop cap would split */
  float: none;
  margin: 0;
  font: inherit;
  color: inherit;
}
.colophon-body p + p {
  margin-top: 0.5em;
  text-indent: 0;
}

/* contents list */
.toc {
  -webkit-hyphens: none;
  hyphens: none;
}
.dept {
  margin: 1.9em 0 0;
  padding: 0.55em 0;
  border-top: 3px solid var(--ink);
  font: 500 0.64em/1.2 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  break-after: avoid;
}
.toc > .dept:first-child {
  margin-top: 0;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li {
  border-top: 1px solid var(--ink);
  break-inside: avoid;
}
.toc-list a {
  display: grid;
  grid-template-columns: 2.9em 1fr;
  column-gap: 0.5em;
  padding: 0.7em 0 0.85em;
  color: inherit;
  text-decoration: none;
}
.toc-no {
  grid-row: 1 / span 3;
  font: 900 2.05em/0.86 var(--display);
  font-stretch: 62%;
  color: var(--red);
}
.toc-title {
  font: 900 1.5em/0.94 var(--display);
  font-stretch: 66%;
  text-transform: uppercase;
  text-wrap: balance;
}
.toc-dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-top: 0.3em;
  font-style: italic;
  font-size: 0.92em;
  line-height: 1.3;
  color: var(--ink-2);
}
.toc-meta {
  margin-top: 0.5em;
  font: 500 0.6em/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.toc-list a:hover .toc-title {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-decoration-color: var(--red);
}
.toc-feeds {
  margin: 0;
  padding-top: 0.2em;
  font-style: italic;
  break-inside: avoid;
}
.toc-feeds a {
  color: inherit;
  text-decoration-color: var(--red);
}

/* ------------------------------------------------------------------ the ads (projects) */
.ad {
  display: flex;
  flex-direction: column;
  padding: calc(var(--pw) * 0.06) calc(var(--pw) * 0.07) calc(var(--pw) * 0.07);
  font-family: "VGA", var(--mono);
  -webkit-font-smoothing: none;
  color: #fff;
}
.ad a {
  color: inherit;
  text-decoration: none;
}
.ad-slug {
  position: relative;
  z-index: 1;
  margin: 0 0 4cqw;
  font: 500 max(7px, 1.5cqw) / 1 var(--mono);
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.6;
  -webkit-font-smoothing: auto;
}
.ad h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 11cqw;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.ad h2 a::after {
  /* the whole ad is the link */
  content: "";
  position: absolute;
  inset: -100cqh -100cqw;
}
.ad h2 + p {
  position: relative;
  z-index: 1;
  margin: 2.4cqw 0 0;
  font-size: max(13px, 3.5cqw);
  line-height: 1.25;
}
.ad-cta {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  font-size: max(11px, 2.7cqw);
}
.ad-bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.ad-phrase {
  align-items: center;
  background: #020503;
  color: #46e585;
  text-align: center;
  text-shadow: 0 0 1.6cqw rgb(70 229 133 / 0.55);
}
.ad-phrase h2 {
  font-size: 12.5cqw;
}
.ad-shot {
  flex: 1 1 0;
  min-height: 0;
  margin: 4cqw 0;
  padding: 1cqw;
  border: 0.3cqw solid #46e585;
  box-shadow:
    0 0 3cqw rgb(70 229 133 / 0.35),
    inset 0 0 2cqw rgb(70 229 133 / 0.2);
}
.ad-shot img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.ad-phrase .ad-cta {
  margin: 0;
}
.ad-phrase .ad-cta b {
  font-weight: 400;
  color: #020503;
  background: #46e585;
  padding: 0 0.4em;
  text-shadow: none;
}

.ad-quark {
  justify-content: flex-end;
  background: #1a0d08;
  color: #f6e3b4;
}
.ad-quark .ad-bleed {
  height: 62%;
  object-position: 42% 50%;
}
.ad-quark::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to bottom, transparent, #1a0d08 46%);
}
.ad-quark .ad-slug {
  position: absolute;
  inset: 3cqw 0 auto;
  margin: 0;
  opacity: 0.85;
}
.ad-quark h2 {
  font-size: 15cqw;
  color: #ffc857;
  text-shadow: 0.6cqw 0.6cqw 0 #5a1e12;
}
.ad-quark .ad-cta {
  margin-top: 5cqw;
  padding-top: 2.2cqw;
  border-top: 0.5cqw double #f6e3b4;
}
.ad-quark .ad-cta b {
  font-weight: 400;
  color: #ffc857;
}

.ad-turbo {
  background: #0000a8;
  color: #fff;
  padding-bottom: 0;
}
.ad-window {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 5cqw;
  padding: 7cqw 5cqw 5cqw;
  background: #00a8a8;
  border: 1.2cqw double #fff;
  outline: 1.4cqw solid #00a8a8;
  box-shadow: 3.2cqw 3.2cqw 0 1.4cqw #000;
}
.ad-wintitle {
  position: absolute;
  top: -1.9cqw;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1.6cqw;
  background: #00a8a8;
  font-size: max(11px, 2.8cqw);
  line-height: 1;
}
.ad-turbo h2 {
  color: #ffff54;
  font-size: 13cqw;
}
.ad-turbo h2 + p {
  color: #fff;
}
.ad-window img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin-top: 4cqw;
  object-fit: cover;
  object-position: 50% 30%;
  border: 0.4cqw solid #000;
}
.ad-turbo .ad-cta {
  margin: 0 calc(var(--pw) * -0.07);
  padding: 1.3cqw 3cqw;
  background: #a8a8a8;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
}
.ad-turbo .ad-cta b {
  font-weight: 400;
  color: #a80000;
  margin-left: 0.6em;
}
.ad-turbo .ad-cta b:first-child {
  margin-left: 0;
}
.ad-turbo .ad-cta span {
  float: right;
}

.ad-shop {
  justify-content: flex-end;
  background: #0b0706;
  color: #f3e3c8;
}
.ad-shop .ad-bleed {
  object-position: 46% 50%;
}
.ad-shop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(11 7 6 / 0.5),
    rgb(11 7 6 / 0) 16%,
    rgb(11 7 6 / 0.2) 42%,
    rgb(11 7 6 / 0.9) 60%,
    #0b0706 100%
  );
}
.ad-shop .ad-slug {
  position: absolute;
  inset: 3cqw 0 auto;
  margin: 0;
  opacity: 0.85;
}
.ad-shop h2 {
  font-size: 13.5cqw;
  color: #8fe4ff;
  text-shadow:
    0 0 1.2cqw #2bb8ff,
    0 0 4cqw rgb(43 184 255 / 0.7);
}
.ad-shop .ad-cta {
  margin-top: 4.5cqw;
}
.ad-shop .ad-cta b {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0.1em 0.5em;
  background: #a3302a;
  color: #f3e3c8;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: 0 0 0 0.3cqw #5a1712;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  @view-transition {
    navigation: none;
  }
}
