/* Exposure sheet — the manual laid out like a project in Animate, the workshop's motion-graphics studio (codex:
   site-animate): a dark timeline, every chapter a clip on its own track with a keyframe diamond at its head, a frame
   ruler across the top of each. Shows off @starting-style: when the page opens, the clips slide in from the right one
   after another, because each says where it starts from in @starting-style and transitions from there to where it
   sits. Only on the first paint: nothing moves after that, and under reduced motion nothing slides at all.
   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: dark;
  --bg: #14151b; --panel: #1f2029; --panel-2: #282a35; --line: #3a3c4a; --text: #ecebf3; --dim: #b3b1c4; --key: #ffcb52; --link: #8fc3ff;
  --c1: #ff8a7a; --c2: #7fd8a8; --c3: #8fb4ff; --c4: #f0a6e8;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --head: "Archivo Black", "Arial Black", Arial, sans-serif;
}
* { 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; color: var(--text); font: 16px/1.6 "Helvetica Neue", Arial, Helvetica, sans-serif;
  background: linear-gradient(90deg, transparent 0 calc(50% - 1px), rgb(255 203 82 / .5) calc(50% - 1px) calc(50% + 1px), transparent 0) fixed, var(--bg); }
a { color: var(--link); text-underline-offset: 3px; }
:where(a, [tabindex]):focus-visible { outline: 3px solid var(--key); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; border-radius: 6px; background: var(--key); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.extra { display: none; }
.main:focus { outline: none; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 18px 30px; }
/* the studio's top bar */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; margin: 0 -18px; padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; }
.masthead .brand { padding: 4px 10px; border-radius: 6px; background: #f4f1e8; }
.masthead .brand img { display: block; height: 20px; width: auto; }
.site-name { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--key); text-decoration: underline; }

/* the project card */
.title-block { margin: 26px 0 0; padding: 30px clamp(18px, 4vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.edition { margin: 0; color: var(--dim); font: 13px var(--mono); }
.edition::before { content: "project \00B7  "; color: var(--key); }
h1, h2 { margin: 0; font-family: var(--head); font-weight: 1000; font-synthesis: none; }
.title { margin-top: 10px; font-size: clamp(40px, 7vw, 88px); line-height: .98; letter-spacing: -.03em; }
.subtitle { max-width: 36em; margin: 14px 0 0; color: var(--dim); font-size: 19px; }
.contents { margin-top: 14px; padding: 18px clamp(18px, 4vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.contents-title { margin: 0 0 6px; color: var(--dim); font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.contents-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
.contents-list li { counter-increment: c; }
.contents-list a { gap: 8px; padding: 0 14px; border-radius: 6px; background: var(--panel-2); color: var(--text); font-size: 15px; text-decoration: none; }
.contents-list a::before { content: "\25C6"; color: var(--key); font-size: 11px; }
.contents-list a:hover { background: var(--line); }

/* the tracks: every chapter a clip, a ruler of frames along its top and a keyframe at its head */
.chapter { --clip: var(--c1); position: relative; margin-top: 14px; padding: 0 0 22px; border: 1px solid var(--line); border-left: 6px solid var(--clip); border-radius: 8px; background: var(--panel); scroll-margin-top: 14px; }
.chapter-2, .chapter-6 { --clip: var(--c2); } .chapter-3, .chapter-7 { --clip: var(--c3); } .chapter-4 { --clip: var(--c4); }
.chapter-title { display: flex; align-items: center; gap: 12px; padding: 28px clamp(18px, 4vw, 34px) 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) 0 0 / 100% 8px no-repeat,
              repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 60px) 0 0 / 100% 14px no-repeat;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.chapter-num { display: inline-grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; background: var(--key); color: var(--bg); font: 700 .55em/1 var(--mono); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.chapter-body { max-width: 66ch; padding: 14px clamp(18px, 4vw, 34px) 0; }
.chapter-body > :first-child { margin-top: 0; }
.first { font-size: 18px; }
.plate { margin: 20px 0 0; }
.plate img { display: block; width: 100%; border-radius: 6px; }
.plate figcaption { margin-top: 6px; color: var(--dim); font: 13px var(--mono); }
.tools, .rules { padding-left: 0; list-style: none; }
.tools li, .rules li { position: relative; padding: 6px 0 6px 1.8em; border-top: 1px solid var(--line); }
.tools li::before { content: "\25C6"; position: absolute; left: .2em; color: var(--clip); font-size: 12px; }
.rules { counter-reset: r; }
.rules li { counter-increment: r; }
.rules li::before { content: counter(r); position: absolute; left: 0; color: var(--key); font: 700 14px/1.9 var(--mono); }
.tools b, .rules b, .hazard dt, .glossary dt { color: var(--text); }
.note { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--key); border-radius: 0 8px 8px 0; background: var(--panel-2); }
.note p { margin: 0; }
.saying { margin: 22px 0 0; padding: 0; }
.saying p { margin: 0; font: 1000 clamp(20px, 2.6vw, 28px)/1.2 var(--head); font-synthesis: none; }
.saying footer { margin-top: 6px; color: var(--dim); font: 13px var(--mono); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding-bottom: 6px; color: var(--dim); font: 13px var(--mono); text-align: left; }
th, td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { border-top: 0; color: var(--dim); font: 700 12px var(--mono); text-transform: uppercase; }
.hazards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.hazard { padding: 12px 14px; border-radius: 8px; background: var(--panel-2); }
.hazard dd { margin: 4px 0 0; font-size: 15px; color: var(--dim); }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.glossary dd { margin: 0; }
.sign-off { margin-top: 18px; font-weight: 700; }

/* the other outfits: the project browser */
.outfits { margin-top: 26px; padding: 24px clamp(18px, 4vw, 34px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.outfits-title { font-size: clamp(22px, 3vw, 30px); }
.outfits-lede { color: var(--dim); }
.outfit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.outfit { padding: 8px 12px; border-radius: 8px; background: var(--panel-2); }
.outfit-link { justify-content: flex-start; color: var(--text); font-weight: 700; text-decoration: none; }
.outfit-link:hover { text-decoration: underline; }
.outfit-by, .outfit-note { display: none; }
.outfit-technique { display: block; color: var(--dim); }
#th-exposure { outline: 2px solid var(--key); }
#th-exposure .outfit-link::after { content: " \25C6 open"; margin-left: .3em; color: var(--key); }
.site-foot { margin-top: 20px; color: var(--dim); font-size: 14px; }
.site-foot p { margin: 0 0 6px; }

@media (max-width: 640px) {
  .glossary { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 8px; }
}

/* @starting-style: where each clip comes from on the first paint. The transition carries it to where it sits; the
   delay staggers them along the timeline. Reduced motion: no transition, so they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .title-block, .contents, .chapter { transition: translate .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease-out; }
  .contents { transition-delay: .08s; }
  .chapter-1 { transition-delay: .16s; } .chapter-2 { transition-delay: .24s; } .chapter-3 { transition-delay: .32s; }
  .chapter-4 { transition-delay: .4s; } .chapter-5 { transition-delay: .48s; } .chapter-6 { transition-delay: .56s; } .chapter-7 { transition-delay: .64s; }
  @starting-style {
    .title-block, .contents, .chapter { translate: 60px 0; opacity: 0; }
  }
}
@media (forced-colors: active) { .chapter-num { forced-color-adjust: none; background: CanvasText; color: Canvas; } }

/* moving between outfits: a cross-document view transition where the browser has them, 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; } }

/* targets: every link outside running text is at least 44 px tall (the accessibility skill). The display has no
   specificity, so the outfit's own wins; the minimum size is made to stick over any outfit rule */
:where(.masthead, .site-nav, .contents-list) :where(a), :where(.outfit-link) { display: inline-flex; align-items: center; justify-content: center; }
:root:root body :is(.masthead, .site-nav, .contents-list) a, :root:root body .outfit-link { min-width: 44px; min-height: 44px; }
