/* Photocopied zine — cut-out ransom headings, stapled corners, toner grain and slightly crooked pages. Shows off
   mix-blend-mode (the toner and the highlighter multiply into the paper) and small transforms. Nothing here was
   photocopied. Designed by machine for the Slopwright. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f2f0ea;
  --ink: #111;
  --grey: #444;
  --hot: #ff2e88;
  --hi: #fff04a;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  min-width: 320px; margin: 0; color: var(--ink); font: 17px/1.55 "Courier New", Courier, monospace;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 7px),
    #cfcac0;
}
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--hi); }
:where(a, [tabindex]):focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.extra { display: none; }

/* one long photocopied sheet, a little crooked */
.page {
  position: relative; max-width: 900px; margin: 26px auto 40px; padding: 10px 6% 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 0, 0, .07) 0 1px, transparent 2px) 0 0 / 23px 29px,
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .06) 0 1px, transparent 2px) 0 0 / 31px 17px,
    linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 4%, transparent 96%, rgba(0, 0, 0, .14)),
    var(--paper);
  box-shadow: 0 2px 0 #bbb, 0 18px 40px rgba(0, 0, 0, .35);
  transform: rotate(-.6deg);
}
/* staples */
.page::before, .page::after { content: ""; position: absolute; top: 18px; width: 46px; height: 6px; background: linear-gradient(#e4e4e4, #888); border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.page::before { left: 26px; transform: rotate(-38deg); }
.page::after { right: 26px; transform: rotate(36deg); }
.main:focus { outline: none; }

.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; padding: 24px 0 12px; border-bottom: 3px solid var(--ink); }
.masthead { display: flex; align-items: center; }
.masthead .brand { display: flex; align-items: center; min-height: 42px; }
.masthead .brand img { display: block; height: 26px; width: auto; filter: grayscale(1) contrast(1.6); }
.site-name { margin-left: 12px; padding: 2px 10px; background: var(--ink); color: #fff; font: 1000 20px "Archivo Black", Impact, sans-serif; text-decoration: none; transform: rotate(2deg); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; font-weight: 700; }
.site-nav a { display: inline-flex; align-items: center; min-height: 42px; text-transform: uppercase; font-size: 15px; }

/* ransom-note title: each word its own scrap */
.title-block { padding: 34px 0 20px; }
.edition { display: inline-block; margin: 0; padding: 2px 8px; border: 2px dashed var(--ink); font-size: 14px; text-transform: uppercase; transform: rotate(-2deg); }
.title { margin: 18px 0 0; font: 1000 clamp(46px, 10vw, 104px)/.95 "Archivo Black", Impact, "Arial Black", sans-serif; letter-spacing: -.02em; text-transform: uppercase; word-spacing: .1em; }
.title-block .title { display: inline; padding: 0 .08em; background: linear-gradient(transparent 58%, var(--hot) 58% 88%, transparent 88%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.title-block .subtitle { display: block; }
.subtitle { max-width: 30em; margin: 18px 0 0; padding: 6px 10px; background: var(--hi); mix-blend-mode: multiply; font-weight: 700; transform: rotate(.8deg); }

.contents { margin: 18px 0; padding: 14px 18px; border: 3px solid var(--ink); background: #fff; transform: rotate(1deg); }
.contents-title { margin: 0 0 6px; font: 1000 20px "Archivo Black", Impact, sans-serif; text-transform: uppercase; }
.contents-list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.contents-list li { counter-increment: c; }
.contents-list li::before { content: counter(c) "/ "; font-weight: 700; color: var(--hot); }
.contents-list a { display: inline-block; padding: 4px 0; }

/* cut-out chapter headings: alternating scraps */
.chapter { padding: 26px 0 8px; }
.chapter-title { display: inline-block; margin: 0 0 16px; padding: 4px 14px 6px; font: 1000 clamp(26px, 5vw, 44px)/1.05 "Archivo Black", Impact, sans-serif; text-transform: uppercase; box-shadow: 4px 4px 0 var(--ink); }
.chapter:nth-of-type(odd) .chapter-title { background: var(--ink); color: #fff; transform: rotate(-1.5deg); }
.chapter:nth-of-type(even) .chapter-title { background: #fff; border: 3px solid var(--ink); transform: rotate(1.2deg); }
.chapter-num { display: inline-block; margin-right: 8px; padding: 0 6px; background: var(--hot); color: var(--ink); }
.chapter-body { max-width: 40em; }
.first { font-weight: 700; font-size: 19px; }
.first::first-letter { font: 1000 2.2em/1 "Archivo Black", Impact, sans-serif; float: left; margin: 0 .1em 0 0; padding: 0 .1em; border: 3px solid var(--ink); }
.plate { margin: 20px 0; padding: 10px 10px 4px; background: #fff; transform: rotate(-1.5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.plate img { display: block; width: 100%; filter: grayscale(1) contrast(1.9) brightness(1.05); mix-blend-mode: multiply; }
.plate figcaption { padding: 6px 0; font-size: 15px; font-weight: 700; }
.tools, .rules { padding-left: 1.4em; }
.tools li, .rules li { margin-bottom: .4em; }
b, strong { background: var(--hi); mix-blend-mode: multiply; }
.note { margin: 20px 0; padding: 12px 16px; border: 3px solid var(--ink); background: repeating-linear-gradient(-45deg, #fff 0 10px, #eee 10px 20px); transform: rotate(-.8deg); }
.note p { margin: 0; background: #fff; padding: 4px 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
caption { padding: 4px 0; text-align: left; font-weight: 700; text-transform: uppercase; }
th, td { padding: 8px 10px; border: 2px solid var(--ink); text-align: left; vertical-align: top; }
thead th { background: var(--ink); color: #fff; }
.saying { margin: 24px 0 0; padding: 18px; background: var(--ink); color: #fff; transform: rotate(1deg); }
.saying p { margin: 0; font: 1000 22px/1.2 "Archivo Black", Impact, sans-serif; text-transform: uppercase; }
.saying footer { margin-top: 8px; font-size: 14px; }
.hazards { margin: 0; }
.hazard { margin-bottom: 10px; padding: 10px 14px; border: 2px dashed var(--ink); background: #fff; }
.hazard:nth-child(even) { transform: rotate(.8deg); }
.hazard:nth-child(odd) { transform: rotate(-.6deg); }
dt { font-weight: 700; text-transform: uppercase; }
dd { margin: 2px 0 0 0; }
.glossary dd { margin-bottom: 8px; }
.sign-off { font-weight: 700; }

.outfits { padding: 26px 0 10px; border-top: 3px solid var(--ink); }
.outfits-title { margin: 0; font: 1000 clamp(24px, 4vw, 36px) "Archivo Black", Impact, sans-serif; text-transform: uppercase; }
.outfit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.outfit { padding: 8px 10px; border: 2px solid var(--ink); background: #fff; font-size: 13px; }
.outfit-link { display: inline-block; min-height: 24px; font-weight: 700; font-size: 15px; }
.outfit-by, .outfit-note { display: none; }
.outfit-technique { display: block; color: var(--grey); }
#th-zine { background: var(--ink); color: #fff; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--hot); }
#th-zine .outfit-link { color: #fff; }
#th-zine .outfit-technique { color: #fff; }
#th-zine .outfit-link::after { content: " ← YOU ARE HERE"; font-size: 12px; }

.site-foot { padding: 18px 0 0; border-top: 3px solid var(--ink); font-size: 14px; }
.site-foot p { margin: 0 0 6px; }

@media (max-width: 600px) {
  .page { margin: 10px 8px 30px; padding: 4px 16px 24px; transform: none; }
  .page::before { left: 10px; } .page::after { right: 10px; }
}

/* moving between outfits: a cross-document view transition where the browser has them (Chromium did, Firefox did not, when check.mjs last ran), with the
   masthead and the title carried across; an ordinary page load elsewhere, and under reduced motion */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
.title { view-transition-name: manual-title; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
