/* The sheet system: Death to the World (dtw.css, unchanged) extended with the technical-print
   vocabulary chosen 2026-10-13 (design/direction.md). Class names follow the canvas artboards
   in design/sheets/ so the markup stays diffable against them. */

@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/courier-prime-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/courier-prime-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-serif-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-serif-400i-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-serif-500-latin.woff2') format('woff2'); }

html, body { margin: 0; padding: 0; background: #e8e5dc; }
a { color: #1a1a18; } a:hover { color: #b3202c; }
:focus-visible { outline: 2px solid #b3202c; outline-offset: 2px; }

/* The ground: paper with the photocopy noise (verbatim from the one-sheet page), the statue
   field fixed behind the sheet. */
.sheet-ground { position: relative; min-height: 100vh; overflow-x: hidden; background: #e8e5dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
statue-field { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.dtw-sheet.dtw-sheet--paper { background: transparent !important; }
.sheet-paper { width: 100%; padding: 0; position: relative; z-index: 1; }
.sheet-pad { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 28px 120px; display: flex; flex-direction: column; color: #1a1a18; font-family: 'IBM Plex Serif', Georgia, serif; }
.sheet-pad > main { display: flex; flex-direction: column; }
.sheet-pad > main h1:focus { outline: none; }

/* Chrome: masthead and the numbered nav. Identical on every sheet but the active mark. */
.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 34px; }
.sheet-mast { text-decoration: none; background: #141412; color: #e8e5dc; padding: 10px 22px 8px; transform: rotate(-0.6deg); box-shadow: 3px 3px 0 rgba(20,20,18,.18); }
.sheet-mast:hover { color: #e8e5dc; }
.sheet-mast__name { display: block; font-family: 'Pirata One', serif; font-size: 46px; line-height: 1; }
.sheet-mast__tag { display: block; font-size: 10px; letter-spacing: .32em; margin-top: 4px; }
.sheet-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sheet-nav a { font-size: 12px; text-decoration: none; display: flex; gap: 8px; align-items: baseline; padding: 10px 0; min-height: 24px; border-bottom: 2px solid transparent; }
.sheet-nav a:hover, .sheet-nav a.is-on { border-bottom-color: #b3202c; }
.sheet-nav__n { color: #6a6558; }
.sheet-nav a.is-on .sheet-nav__n { color: #b3202c; }

/* The canvas's component classes (design/sheets/*.dc.html <helmet>), unchanged. */
.mono { font-family: 'Courier Prime', 'Courier New', monospace; letter-spacing: .14em; text-transform: uppercase; }
.plate { position: relative; display: block; background-color: #d9d4c6; background-image: repeating-linear-gradient(45deg, rgba(26,26,24,.16) 0 1px, transparent 1px 6px); box-shadow: 3px 3px 0 rgba(20,20,18,.18); }
.plate img, .plate video { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; filter: grayscale(1) contrast(1.65) brightness(1.05); pointer-events: none; }
.row, .card, .prow { text-decoration: none; }
.row:hover .rt, .prow:hover .pn { color: #b3202c; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card:hover .go { background: #b3202c; }
.prow { display: grid; grid-template-columns: 70px minmax(0,190px) minmax(0,1fr) minmax(0,190px); gap: 18px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid #1a1a18; }
.srow { display: grid; grid-template-columns: 70px minmax(0,230px) minmax(0,1fr) minmax(0,120px); gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid #1a1a18; }
dt { font-family: 'Old Standard TT', serif; font-weight: 700; font-size: 18px; }
dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; }
.field { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: #1a1a18; background-color: transparent; border: 0; border-bottom: 1.5px solid #1a1a18; padding: 10px 2px; min-height: 44px; }
.field:focus { outline: 2px solid #b3202c; outline-offset: 2px; background-color: rgba(217,212,198,.5); } /* background-color, never background: failure mode 15 */
textarea.field { background-image: repeating-linear-gradient(transparent 0 31px, rgba(26,26,24,.35) 31px 32px); line-height: 32px; resize: vertical; }
.reply-card__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The piece window (verbatim from the one-sheet page). */
.piece-window { border: 1px solid #141412; padding: 0; background: #e8e5dc; color: #141412; width: min(1120px, calc(100vw - 32px)); height: min(920px, calc(100vh - 48px)); max-width: none; max-height: none; box-shadow: 6px 6px 0 rgba(20,20,18,0.35); flex-direction: column; overflow: hidden; }
.piece-window[open] { display: flex; animation: piece-in .22s ease-out; }
.piece-window::backdrop { background: rgba(20,20,18,0.78); animation: piece-fade .22s ease-out; }
.piece-window__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; background: #141412; flex: none; }
.piece-window__close { flex: none; white-space: nowrap; }
.piece-window__scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 7px; background-color: var(--dtw-grey-2); }
.piece-window__img { display: block; width: 100%; height: auto; }
@keyframes piece-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes piece-fade { from { opacity: 0; } }

/* Its close button keeps the underside's back-button style. */
.work-back { background: none; color: inherit; font: inherit; cursor: pointer; border: 1px solid #e8e5dc; padding: 8px 14px; transform: rotate(-1.2deg); }
.work-back:hover { box-shadow: 3px 3px 0 #e8e5dc; }
.work-back:active { transform: rotate(-1.2deg) translate(1px,1px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .piece-window[open], .piece-window::backdrop { animation: none; } }

@media (max-width: 720px) {
  .stack { grid-template-columns: minmax(0,1fr) !important; }
  .hl { font-size: 40px !important; }
  .hide-m { display: none !important; }
  .arrow { transform: rotate(90deg); }
  .srow, .prow { grid-template-columns: 52px minmax(0,1fr) !important; }
  .srow .sd, .srow .sc, .prow .pw, .prow .pd { grid-column: 2; }
  .sheet-pad { padding: 0 18px 90px; }
  .row { grid-template-columns: 40px minmax(0,1fr) !important; }
  .row > :last-child { grid-column: 2; justify-self: start; }
}

/* The first screen (h, 2026-10-13: "content fitted to the screen on load"). On a desktop the
   hero, main's first block, fills the viewport under the strip, masthead and nav (--chrome) and
   centres its content; the next block always starts below the fold, so nothing straddles it.
   Type and gaps follow the viewport height so the hero fits down to ~650 px tall. The hero's
   inline vh margins are the one-column canvas's and are overridden here, not edited out. */
@media (min-width: 721px) {
  .sheet-pad { --chrome: 160px; }
  .sheet-pad > main > :first-child {
    min-height: calc(100svh - var(--chrome)); box-sizing: border-box;
    margin-top: 0 !important; padding-block: clamp(12px, 3.5vh, 44px);
    display: flex; flex-direction: column; justify-content: center; align-content: center;
  }
  .sheet-pad > main > :first-child[style*="display: grid"] { align-items: center !important; }
  .sheet-pad > main > :first-child > * { margin-top: 0 !important; }
  .sheet-pad > main > :first-child [data-depth] { gap: clamp(12px, 2.4vh, 22px) !important; }
  .sheet-pad > main > :first-child h1 { font-size: clamp(32px, min(4.4vw, 5.8vh), 64px) !important; }
  .sheet-pad > main > :first-child p { font-size: clamp(14.5px, 2.1vh, 18px) !important; line-height: 1.55 !important; }
  .sheet-pad > main > :first-child p + p { font-size: clamp(14px, 1.95vh, 16px) !important; }
  /* The first screen ends on a folio, like a patent sheet's "continued", so the space under a
     short hero reads as the sheet's margin rather than an empty page. Only where it fits. */
  .sheet-pad > main > :first-child { position: relative; }
  .sheet-pad > main > :first-child::after {
    content: "Continued below \2193"; position: absolute; left: 0; bottom: 10px;
    font-family: 'Courier Prime', 'Courier New', monospace; font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: #6a6558;
  }
  /* Contact's card: the message box gives up height first */
  .sheet-pad > main > :first-child textarea.field { height: clamp(128px, 26vh, 212px); }
  /* Home's Fig. 1 */
  .sheet-pad > main > :first-child figure { font-size: clamp(13px, 1.9vh, 15px); }
  .sheet-pad > main > :first-child figure div[style*="font-size: 15px"] { font-size: inherit !important; padding-block: clamp(7px, 1.4vh, 12px) !important; }
  .sheet-pad > main > :first-child figure div[style*="height: 26px"],
  .sheet-pad > main > :first-child figure span[style*="height: 26px"] { height: clamp(12px, 2.4vh, 26px) !important; }
}

/* (after the first-screen block, so it wins) */
@media (min-width: 721px) and (max-height: 759px) {
  .sheet-pad > main > :first-child::after { content: none; }
}
