/* After hours — the workshop with only the lamp on. Shows off color-scheme and light-dark(): every colour is a
   light/dark pair, the scheme defaults to dark, and a @supports fallback covers browsers without light-dark().
   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;
  /* fallbacks first (dark), then the pairs */
  --bg: #12100d; --panel: #1d1914; --text: #ece3d2; --dim: #b8ab94; --glow: rgba(255, 190, 90, .26); --lamp: #ffc46b; --line: #3a322a; --link: #ffd08a;
}
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg: light-dark(#f6efe0, #12100d);
    --panel: light-dark(#fffaf0, #1d1914);
    --text: light-dark(#231c12, #ece3d2);
    --dim: light-dark(#5e5340, #b8ab94);
    --glow: light-dark(rgba(255, 170, 40, .35), rgba(255, 190, 90, .26));
    --lamp: light-dark(#8a4d00, #ffc46b);
    --line: light-dark(#d9ccb2, #3a322a);
    --link: light-dark(#7a3f00, #ffd08a);
  }
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  min-width: 320px; margin: 0; color: var(--text);
  font: 18px/1.65 "Iowan Old Style", Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 78% 60px, var(--glow), transparent 520px),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .35), transparent 60%),
    var(--bg);
}
a { color: var(--link); text-underline-offset: 3px; }
:where(a, [tabindex]):focus-visible { outline: 3px solid var(--lamp); outline-offset: 4px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--lamp); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }
.page { max-width: 1100px; margin: auto; padding: 0 5%; }
.main:focus { outline: none; }
/* the lamp itself, hanging top right */
.extra-1 { display: block; position: absolute; top: 0; right: 14%; width: 2px; height: 46px; background: var(--dim); pointer-events: none; }
.extra-2 { display: block; position: absolute; top: 44px; right: calc(14% - 26px); width: 54px; height: 28px; border-radius: 54px 54px 6px 6px; background: linear-gradient(#5a4a36, #2a2219); box-shadow: 0 24px 60px 30px var(--glow); pointer-events: none; }
.extra-3, .extra-4 { display: none; }

.site-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-family: Arial, Helvetica, sans-serif; }
.masthead { display: flex; align-items: center; }
.masthead .brand { display: flex; align-items: center; min-height: 42px; padding: 6px 10px; border-radius: 8px; background: #f4f1e8; }
.masthead .brand img { display: block; height: 22px; width: auto; }
.site-name { margin-left: 14px; padding-left: 14px; 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: 15px; margin-right: 80px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 42px; color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--lamp); text-decoration: underline; }

.title-block { padding: 70px 0 34px; }
.edition { margin: 0; color: var(--lamp); font: 700 12px Arial, sans-serif; letter-spacing: .25em; text-transform: uppercase; }
.title { margin: 14px 0 0; max-width: 10ch; font: 1000 clamp(48px, 9vw, 120px)/.95 "Archivo Black", "Arial Black", Arial, sans-serif; letter-spacing: -.04em; text-shadow: 0 0 40px var(--glow); }
.subtitle { max-width: 30em; margin: 20px 0 0; color: var(--dim); font-size: 21px; font-style: italic; }

.contents { margin: 10px 0 40px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-family: Arial, sans-serif; }
.contents-title { margin: 0 0 10px; color: var(--lamp); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.contents-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 20px; margin: 0; padding-left: 1.4em; }
.contents-list li::marker { color: var(--dim); }
.contents-list a { display: inline-block; padding: 6px 0; color: var(--text); }

.chapter { padding: 40px 0; border-top: 1px solid var(--line); }
.chapter-title { margin: 0 0 18px; font: 1000 clamp(28px, 4vw, 44px)/1.05 "Archivo Black", "Arial Black", Arial, sans-serif; letter-spacing: -.02em; }
.chapter-num { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 10px; border-radius: 50%; border: 2px solid var(--lamp); color: var(--lamp); font-size: .6em; vertical-align: .2em; }
.chapter-body { max-width: 40em; }
.first { font-size: 21px; }
.plate { margin: 26px 0; }
.plate img { display: block; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .5); filter: brightness(.88) sepia(.15); }
.plate figcaption { margin-top: 8px; color: var(--dim); font-size: 15px; font-style: italic; }
.tools, .rules { padding-left: 1.3em; }
.tools li, .rules li { margin-bottom: .45em; }
.tools li::marker, .rules li::marker { color: var(--lamp); }
b, strong, dt { color: var(--lamp); }
.note { margin: 22px 0; padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--lamp); }
.note p { margin: 0; }
.table-wrap { overflow-x: auto; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font: 15px/1.5 Arial, sans-serif; }
caption { padding: 12px 14px 4px; color: var(--dim); text-align: left; font-style: italic; }
th, td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--lamp); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.saying { margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--lamp); font-size: 24px; font-style: italic; }
.saying p { margin: 0; }
.saying footer { color: var(--dim); font-size: 15px; font-style: normal; }
.hazards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.hazard { padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.hazard dd { margin: 4px 0 0; font-size: 16px; }
.glossary dt { margin-top: 10px; }
.glossary dd { margin: 0; }
.sign-off { margin-top: 26px; }

.outfits { padding: 40px 0; border-top: 1px solid var(--line); font-family: Arial, sans-serif; }
.outfits-title { margin: 0; font: 1000 clamp(28px, 4vw, 44px)/1.05 "Archivo Black", "Arial Black", Arial, sans-serif; }
.outfits-lede { color: var(--dim); }
.outfit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.outfit { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.outfit-link { display: inline-block; min-height: 24px; color: var(--text); font-size: 16px; font-weight: 700; }
.outfit-by, .outfit-note { display: none; }
.outfit-technique { display: block; color: var(--dim); }
#th-afterhours { border-color: var(--lamp); box-shadow: 0 0 30px var(--glow); }
#th-afterhours .outfit-link { color: var(--lamp); }
#th-afterhours .outfit-link::after { content: " — lit"; font-weight: 400; }
#th-afterhours .outfit-by { display: block; color: var(--dim); }

.site-foot { padding: 30px 0 60px; border-top: 1px solid var(--line); color: var(--dim); font: 14px/1.6 Arial, sans-serif; }
.site-foot p { margin: 0 0 6px; }

@media (max-width: 640px) {
  .site-nav { margin-right: 0; }
  .extra-1 { right: 30px; } .extra-2 { right: 4px; }
  .site-head { padding-right: 60px; }
}

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