/* Workshop standard — the slopped.site house style (slopped-brand): paper, ink and acid from a handful of custom
   properties; a named-line grid puts each chapter's title in a left column and its text on the right.
   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; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #171815;
  --acid: #e3ff59;
  --muted: #6b6b62;
  --line: #d4d2c9;
  --card: #fbf9f3;
  --focus: #728600;
  --head: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif;
  --gutter: 5%;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
:where(a, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.page { max-width: 1440px; margin: auto; padding: 0 var(--gutter); }
.main:focus { outline: none; }
.extra { display: none; }

/* the masthead, as on every subsite */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100px; border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; min-width: 0; }
.masthead .brand { display: flex; align-items: center; min-height: 42px; flex: none; }
.masthead .brand img { display: block; width: auto; height: 30px; }
.site-name { display: inline-flex; align-items: center; min-height: 42px; margin-left: 16px; padding-left: 17px; background: linear-gradient(var(--line), var(--line)) left center / 1px 22px no-repeat; font-size: 16px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; white-space: nowrap; }
.site-name:hover { text-decoration: underline; }
.site-nav { display: flex; align-items: center; gap: 4px 18px; font-size: 14px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 42px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }

/* the title */
.title-block { padding: 64px 0 36px; }
.edition { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.edition::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ink); vertical-align: 1px; }
h1, h2 { margin: 0; font-family: var(--head); font-weight: 1000; font-synthesis: none; line-height: 1.02; }
.title { max-width: 11ch; font-size: clamp(52px, 9vw, 136px); letter-spacing: -.045em; }
.subtitle { max-width: 34ch; margin: 22px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -.3px; }

/* contents as a row of pills */
.contents { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 22px 0; border-block: 1px solid var(--ink); }
.contents-title { font: 700 13px Arial, Helvetica, sans-serif; letter-spacing: 0; }
.contents-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.contents-list a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.contents-list li { counter-increment: c; }
.contents-list a::before { content: counter(c); margin-right: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.contents-list a:hover { border-color: var(--ink); background: var(--acid); }

/* chapters: the title in the left column, the text on the right */
.chapter { display: grid; grid-template-columns: [title] minmax(0, 4fr) [text] minmax(0, 7fr) [end]; gap: 0 5%; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.chapter-title { grid-column: title; align-self: start; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -1.5px; }
.chapter-num { display: block; margin-bottom: 10px; color: var(--muted); font: 700 13px Arial, Helvetica, sans-serif; letter-spacing: 0; }
.chapter-num::before { content: "Chapter "; }
.chapter-body { grid-column: text; max-width: 64ch; }
.chapter-body > :first-child { margin-top: 0; }
.first { font-size: 21px; line-height: 1.45; letter-spacing: -.2px; }
.plate { margin: 30px 0 0; }
.plate img { display: block; width: 100%; border-radius: 9px; }
.plate figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.tools, .rules { padding-left: 0; list-style: none; }
.tools li, .rules li { padding: 12px 0; border-top: 1px solid var(--line); }
.rules { counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.4em 1fr; }
.rules li::before { content: counter(r, decimal-leading-zero); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rules li b, .rules li { column-gap: 0; }
.note { margin: 24px 0; padding: 20px 24px; border-radius: 12px; background: var(--acid); }
.note p { margin: 0; }
.saying { margin: 32px 0 0; padding: 0; }
.saying p { margin: 0; font: 1000 clamp(24px, 2.6vw, 34px)/1.15 var(--head); letter-spacing: -1px; font-synthesis: none; }
.saying p::before { content: "“"; } .saying p::after { content: "”"; }
.saying footer { margin-top: 12px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding-bottom: 10px; color: var(--muted); font-size: 14px; text-align: left; }
th, td { padding: 12px 14px 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-top: 0; border-bottom: 1.5px solid var(--ink); font-size: 13px; }
.hazards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.hazard { padding: 18px 20px; border: 1px solid var(--ink); border-radius: 12px; background: var(--card); }
.hazard dt { font-weight: 900; font-size: 18px; }
.hazard dd { margin: 6px 0 0; font-size: 15px; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; }
.sign-off { margin-top: 28px; font-weight: 700; }

/* the other outfits */
.outfits { padding: 64px 0 40px; scroll-margin-top: 20px; }
.outfits-title { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -2px; }
.outfits-lede { max-width: 60ch; color: var(--muted); }
.outfit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.outfit { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.outfit-link { font-size: 17px; font-weight: 700; text-decoration: none; }
.outfit-link:hover { text-decoration: underline; }
.outfit-link::after { content: " ↗"; }
.outfit-by { color: var(--muted); font-size: 12px; }
.outfit-technique { font-weight: 700; }
.outfit-note { display: none; }
#th-brand { border-color: var(--ink); background: var(--acid); }
#th-brand .outfit-by { color: var(--ink); }
#th-brand .outfit-note { display: block; }
#th-brand .outfit-link::after { content: " · wearing now"; font-size: 13px; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding: 30px 0 60px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 14px; }
.site-foot p { max-width: 70ch; margin: 0; }

@media (max-width: 760px) {
  .site-head { flex-wrap: wrap; height: auto; padding: 18px 0 6px; gap: 2px 16px; }
  .masthead .brand img { height: 24px; }
  .site-name { margin-left: 12px; padding-left: 13px; }
  .site-nav { gap: 0 16px; }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 40px 0; }
  .chapter-title, .chapter-body { grid-column: 1; }
  .first { font-size: 19px; }
  .glossary { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 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; } }
