/* Load-bearing — almost nothing. Thick borders, one typeface, enormous headings and the browser's own blue links.
   Most of the work is a max-width in ch.
   Designed by machine for the Slopwright. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: #fff; color: #000; font: 20px/1.45 "Times New Roman", Times, serif; }
a { color: #0000ee; }
a:visited { color: #551a8b; }
:where(a, [tabindex]):focus-visible { outline: 4px solid #000; outline-offset: 2px; background: #ff0; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; top: -100px; left: 0; padding: 8px; background: #ff0; color: #000; }
.skip:focus { top: 0; }
.page { max-width: 68ch; margin: 0 auto; padding: 0 16px; border-inline: 8px solid #000; }
.main:focus { outline: none; }
.extra { display: none; }
h1, h2 { margin: 0; font-weight: 700; line-height: .95; letter-spacing: -.03em; }

.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin: 0 -16px; padding: 12px 16px; border-bottom: 8px solid #000; }
.masthead { display: flex; align-items: center; gap: 12px; }
.masthead .brand { display: inline-flex; min-height: 32px; align-items: center; }
.masthead .brand img { display: block; height: 26px; width: auto; }
.site-name { display: inline-flex; min-height: 32px; align-items: center; padding-left: 12px; border-left: 4px solid #000; font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-nav a { display: inline-flex; min-height: 32px; align-items: center; }

.title-block { padding: 24px 0; border-bottom: 8px solid #000; }
.edition { margin: 0; font-weight: 700; text-transform: uppercase; }
.title { margin: 10px 0 0; font-size: clamp(44px, 11.5vw, 104px); text-transform: uppercase; overflow-wrap: break-word; }
.subtitle { margin: 16px 0 0; font-size: 1.2em; }
.contents { padding: 16px 0; border-bottom: 8px solid #000; }
.contents-title { font-size: 1em; text-transform: uppercase; }
.contents-list { margin: 8px 0 0; padding-left: 1.6em; }
.contents-list a { display: inline-block; min-height: 30px; }

.chapter { padding: 24px 0; border-bottom: 8px solid #000; }
.chapter-title { font-size: clamp(36px, 8vw, 80px); overflow-wrap: break-word; }
.chapter-num { display: block; font-size: .5em; }
.chapter-num::after { content: " /"; }
.plate { margin: 20px 0; border: 8px solid #000; }
.plate img { display: block; width: 100%; filter: grayscale(1); }
.plate figcaption { padding: 8px; border-top: 8px solid #000; font-weight: 700; }
.note { margin: 20px 0; padding: 12px; border: 8px solid #000; background: #ff0; }
.note p { margin: 0; }
.saying { margin: 24px 0; font-size: 1.6em; font-weight: 700; line-height: 1.1; }
.saying footer { font-size: .5em; font-weight: 400; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; }
th, td { padding: 6px; border: 4px solid #000; text-align: left; vertical-align: top; }
.hazards, .glossary { margin: 0; }
.hazard { margin-bottom: 12px; padding: 10px; border: 4px solid #000; }
dt { font-weight: 700; text-transform: uppercase; }
dd { margin: 0 0 8px; }

.outfits { padding: 24px 0; }
.outfits-title { font-size: clamp(42px, 9vw, 88px); }
.outfit-list { padding-left: 1.6em; }
.outfit { margin: 4px 0; }
.outfit-link { display: inline-block; min-height: 28px; }
.outfit-by, .outfit-note, .outfit-technique { display: none; }
#th-brutal { margin: 8px 0; padding: 8px; border: 8px solid #000; background: #ff0; }
#th-brutal .outfit-link { font-weight: 700; }
#th-brutal .outfit-link::after { content: " ← THIS"; color: #000; }
#th-brutal .outfit-technique, #th-brutal .outfit-note { display: block; }

.site-foot { margin: 0 -16px; padding: 16px; border-top: 8px solid #000; background: #000; color: #fff; }
.site-foot a { color: #ff0; }

/* 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; } }
