/* Direction B, "Small jobs, big hours", fitted to teaching. Written Wed 4 Nov 2026 by Claude (builder B).
   The look comes from the Living pieces wave grid (views/library/cubes, round 6): chalk ground, Big Shoulders Display at poster
   size, one hot accent, Barlow body, Share Tech Mono only for dates. Used by index.html, library-m.html and work.html only;
   the older rooms keep shell.css. Fonts are self-hosted, SIL Open Font Licence (assets/fonts/OFL.txt). */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(../../assets/fonts/big-shoulders-display-82c0b952.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../assets/fonts/barlow-8d018ff8.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../../assets/fonts/barlow-1003d5c7.woff2) format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../../assets/fonts/share-tech-mono-0db5692c.woff2) format('woff2'); }

:root {
  --b-bg: #e9e6df; --b-bg2: #dedad1; --b-card: #f4f2ed; --b-fg: #17140f; --b-mute: rgba(23, 20, 15, .66); --b-line: rgba(23, 20, 15, .16);
  --b-acc: #ff5a1f; --b-acc-ink: #fbfaf6; --b-ink: #17140f;
  --b-disp: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --b-sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b-mono: 'Share Tech Mono', ui-monospace, Menlo, monospace;
  /* five sizes */
  --b-fs-1: clamp(64px, 10.5vw, 184px);
  --b-fs-2: clamp(44px, 6.2vw, 104px);
  --b-fs-3: clamp(26px, 2.6vw, 40px);
  --b-fs-4: 17px;
  --b-fs-5: 13px;
  --b-max: 1320px; --b-gut: clamp(16px, 4vw, 56px);
  --b-nav: 64px;
  color-scheme: light;
}
@media (max-width: 760px) { :root { --b-nav: 58px; --b-fs-4: 16px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--b-bg); }
body.b { margin: 0; background: var(--b-bg); color: var(--b-fg); font: 400 var(--b-fs-4)/1.55 var(--b-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.b .aw-sky { display: none; }
.b a { color: inherit; }
.b-wrap { width: min(var(--b-max), 100% - 2 * var(--b-gut)); margin: 0 auto; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* room bar (drawn by shell.js) */
.b .aw-rooms { margin-top: var(--b-nav); border-bottom: 2px solid var(--b-fg); position: relative; z-index: 3; }
.b .aw-rooms .aw-wrap { width: min(var(--b-max), 100% - 2 * var(--b-gut)); margin: 0 auto; display: flex; align-items: center; gap: 24px; min-height: 48px; }
.b .aw-rooms-name { font: 900 20px/1 var(--b-disp); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.b .aw-rooms-name b { color: var(--b-acc); }
.b .aw-rooms nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; flex: 0 1 auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.b .aw-rooms nav::-webkit-scrollbar { display: none; }
.b .aw-room { white-space: nowrap; padding: 13px 10px; font: 600 13px/1 var(--b-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--b-mute); border-bottom: 3px solid transparent; }
.b .aw-room:hover { color: var(--b-fg); }
.b .aw-room[aria-current=page] { color: var(--b-fg); border-bottom-color: var(--b-acc); }
/* phone (B2-1, 4 Nov 2026): the bar was cut off at 390 because the nav would not shrink; it now scrolls sideways inside itself,
   the current room is centred by shell.js, and a soft fade on the right says there is more */
@media (max-width: 760px) { .b .aw-rooms .aw-wrap { gap: 10px; } .b .aw-rooms-name { display: none; }
  .b .aw-rooms nav { margin-left: 0; flex: 1 1 auto; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .b .aw-room { padding: 13px 8px; } }

/* type */
.b-k { margin: 0 0 18px; font: 400 var(--b-fs-5)/1.3 var(--b-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--b-mute); }
.b-h1 { margin: 0; font: 900 var(--b-fs-1)/.84 var(--b-disp); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.b-h2 { margin: 0; font: 900 var(--b-fs-2)/.88 var(--b-disp); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.b-h3 { margin: 0; font: 900 var(--b-fs-3)/.95 var(--b-disp); text-transform: uppercase; }
.b-h1 em, .b-h2 em, .b-h3 em { font-style: normal; color: var(--b-acc); }
.b-lead { margin: 22px 0 0; max-width: 40ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; color: var(--b-mute); }
.b-p { margin: 12px 0 0; max-width: 58ch; color: var(--b-mute); }
.b-date { font: 400 var(--b-fs-5)/1.3 var(--b-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-mute); }

/* actions: one solid per section, the rest quiet */
.b-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 4px; border: 0; background: var(--b-acc); color: var(--b-acc-ink); font: 600 15px/1 var(--b-sans); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.b-btn:hover { background: #e94c12; }
.b-btn:focus-visible, .b-q:focus-visible, .b-tile:focus-visible { outline: 3px solid var(--b-fg); outline-offset: 3px; }
.b-q { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--b-fg); font: 600 15px/1 var(--b-sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--b-acc); cursor: pointer; }
.b-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }

/* sections */
.b-sect { padding: clamp(72px, 10vw, 150px) 0; border-top: 2px solid var(--b-fg); }
.b-sect-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.b-sect-head .b-p { margin: 0; }
@media (max-width: 900px) { .b-sect-head { grid-template-columns: 1fr; } }

/* big numbers, always with a date */
.b-nums { display: flex; flex-wrap: wrap; gap: 18px clamp(24px, 4vw, 64px); margin: 0; }
.b-nums > div { display: grid; gap: 4px; padding-top: 10px; border-top: 3px solid var(--b-fg); min-width: 130px; }
.b-nums dd { order: 1; margin: 0; font: 900 clamp(44px, 5vw, 80px)/.9 var(--b-disp); }
.b-nums dd small { font-size: .42em; margin-right: 4px; }
.b-nums dt { order: 2; font-size: 14px; line-height: 1.3; color: var(--b-mute); max-width: 22ch; }
.b-nums .b-date { order: 3; }

/* huge tiles */
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2px; background: var(--b-fg); border: 2px solid var(--b-fg); }
.b-tile { position: relative; display: flex; flex-direction: column; min-height: clamp(260px, 26vw, 360px); padding: clamp(20px, 2.2vw, 32px); background: var(--b-bg); color: var(--b-fg); text-decoration: none; overflow: hidden; transition: background .3s ease, color .3s ease; }
.b-tile-n { font: 900 clamp(64px, 7vw, 120px)/.8 var(--b-disp); color: var(--b-acc); }
.b-tile-h { margin: auto 0 0; padding-top: 24px; font: 900 clamp(34px, 3.4vw, 56px)/.9 var(--b-disp); text-transform: uppercase; }
.b-tile-p { margin: 12px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.45; color: var(--b-mute); }
.b-tile canvas { position: absolute; right: 0; top: 0; width: 62%; height: 58%; pointer-events: none; }
a.b-tile:hover { background: var(--b-fg); color: var(--b-bg); }
a.b-tile:hover .b-tile-p { color: rgba(233, 230, 223, .72); }

/* foot (drawn by shell.js) */
.b .aw-foot { border-top: 2px solid var(--b-fg); padding: 28px 0 40px; font-size: 14px; color: var(--b-mute); }
.b .aw-foot .aw-wrap { width: min(var(--b-max), 100% - 2 * var(--b-gut)); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.b .aw-foot .aw-quiet { color: var(--b-fg); font-weight: 600; }

/* reveal (shell.js adds .in) */
.b .aw-rise { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.b .aw-rise.in { opacity: 1; transform: none; }
html[data-motion=off] .b .aw-rise { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .b .aw-rise { opacity: 1; transform: none; transition: none; } }

/* the still drawn when WebGL is missing */
.b-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
