/* Joel Weston Wood, portfolio. Direction A, plain bones, real light (DESIGN.md, decided Thu 2026-10-22;
   reference: _design/comps/plain-bones/style.css). A plain, legible HTML page: Georgia for everything that
   reads, Menlo for everything that counts, blue links that turn purple, one-pixel rules, dotted rules between
   listings, no chrome. Nothing is shipped as a font. The only design is the light off the headline's asterisks
   (js/motion.js, home page only), cool and quiet at rest, warmer the more the visitor moves through the page.
   Palette: paper #fff, ink #000, secondary #333, small labels #555, rules #000, dotted #999,
   link #0000ee, visited #551a8b, hover #000. No em dashes in copy (lint-enforced). */

html, body { margin: 0; background: #fff; color: #000; }
body { font: 17px/1.45 Georgia, "Times New Roman", Times, serif; -webkit-font-smoothing: antialiased; }
#page { position: relative; overflow: hidden; min-height: 100vh; box-sizing: border-box; padding: 18px 20px 72px; }
a { color: #0000ee; text-decoration: underline; text-underline-offset: 0.14em; }
a:visited { color: #551a8b; }
a:hover { color: #000; }
/* home motion (js/motion.js). The light is a layer under the page, so once it's up the paper has to be see-through down to html */
body.lit { background: transparent; }
#light { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
.ring { position: absolute; display: none; pointer-events: none; z-index: 2; }
.label.ring-t, .scale.ring-t { border-top-color: transparent; }
.work li.ring-b, .scale.ring-b, .scale li.ring-b { border-bottom-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
img, video { max-width: 100%; }
.mono, .num, .v, .play, .stamp, .stamp2 { font-family: Menlo, "IBM Plex Mono", "SF Mono", Consolas, "Liberation Mono", monospace; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 4px 8px; z-index: 10; font-size: 13px; }
.skip:focus { left: 20px; }

/* the top line, not a header bar */
.top { font-size: 13px; margin: 0 0 56px; color: #333; }
.top a { margin-right: 14px; }
.top .me { color: #000; }

/* the headline */
h1 { font-weight: normal; font-size: clamp(40px, 8vw, 128px); line-height: 1; margin: 0 0 26px; max-width: 12ch; letter-spacing: 0; }
h1 sup { font-size: 0.42em; line-height: 0; vertical-align: 0.95em; cursor: default; }
h1 a, h1 a:visited { text-decoration: none; color: inherit; } /* the headline never goes purple: Joel, 11/5, it upsets the page's color composition */
.deck { font-size: 1.06em; max-width: 50ch; margin: 0 0 0.6em; }
.fn { font-size: 13px; color: #333; max-width: 60ch; margin: 0 0 1em; }
.label { font: 13px/1.35 Georgia, "Times New Roman", Times, serif; color: #333; margin: 56px 0 14px; padding-top: 14px; border-top: 1px solid #000; }
.label small { font-size: 13px; color: #555; margin-left: 10px; }
.eyebrow { font-size: 13px; color: #333; margin: 0 0 12px; }
.eyebrow a { color: #333; }

/* work: listings, like listings */
.work { list-style: none; padding: 0; margin: 0; }
.work li { position: relative; padding: 8px 0; border-bottom: 1px dotted #999; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.work li a.t { font-size: 1.08em; }
.work li small { color: #555; font-size: 13px; }
.work li .num { margin-left: auto; font-size: 13px; color: #000; }
.work li .num sup { font-size: 0.75em; }
.work li .text { flex: 0 0 100%; box-sizing: border-box; padding-right: max(0px, calc(100% - 62ch)); margin: 6px 0 4px; font-size: 15px; color: #333; } /* a flex item clamps its basis to max-width, so the measure is set with padding instead */
.peek { position: absolute; left: 50%; top: -8px; width: min(38vw, 420px); margin: 0; opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 3; background: #fff; border: 1px solid #000; }
.peek img, .peek video { display: block; width: 100%; height: auto; }
.peek video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.work li:hover .peek { opacity: 1; }
.work li:hover .peek video.ready { opacity: 1; }
.peek figcaption { font-size: 11px; color: #333; padding: 5px 7px; border-top: 1px solid #000; }
@media (hover: none), (max-width: 760px) {
  .peek { position: static; opacity: 1; width: 100%; max-width: 420px; margin-top: 8px; pointer-events: auto; flex-basis: 100%; }
  .peek video { display: none; }
}

/* the sandbox, redacted: two real screens behind black bars (PORT-8, A) */
.redacted { position: relative; background: #fff; padding: 36px 12px 10px; }
.redacted .stamp { position: absolute; left: 10px; top: 10px; font-size: 11px; line-height: 1; letter-spacing: 0.12em; color: #000; border: 1px solid #000; padding: 5px 7px; transform: rotate(-6deg); background: #fff; z-index: 1; }
.redacted .shots { display: flex; gap: 12px; justify-content: center; align-items: flex-start; }
.peek .redacted .shots > img { width: 42%; max-width: 168px; height: auto; border: 1px solid #000; border-radius: 16px; box-sizing: border-box; }
.redacted .note { display: block; font-size: 11px; line-height: 1.4; color: #333; margin: 10px 2px 0; max-width: 46ch; }

/* the scale: four cells, each with its method note */
.scale { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.scale li { padding: 12px 0; border-bottom: 1px dotted #999; }
.scale li:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 820px) { .scale { grid-template-columns: repeat(4, minmax(0, 1fr)); } .scale li { border-bottom: 0; } }
.scale .v { display: block; font-size: 22px; letter-spacing: -0.01em; }
.scale .v sup { font-size: 0.6em; vertical-align: 0.5em; }
.scale .l { display: block; font-size: 14px; color: #333; margin-top: 6px; max-width: 28ch; }
.scale .m { display: block; font-size: 12px; color: #555; margin-top: 6px; max-width: 30ch; }

.about { max-width: 54ch; margin: 0 0 1em; }
.foot { font-size: 13px; color: #333; margin: 56px 0 0; }
.foot a { margin-right: 10px; }

/* piece page */
#head { position: relative; overflow: hidden; margin: 0 -20px 26px; padding: 0 20px 10px; }
.piece h1 { max-width: 14ch; }
.video { margin: 0 0 22px; max-width: 1120px; }
.video.still { max-width: 760px; }
.video.still.phone { max-width: 300px; }
.frame { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; max-width: 100%; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame video.teaser { opacity: 0; transition: opacity .25s; pointer-events: none; }
.frame video.teaser.ready { opacity: 1; }
.frame video.player { object-fit: contain; }
.frame button.play { position: absolute; left: 12px; bottom: 12px; font-size: 13px; line-height: 1; color: #000; background: #fff; border: 1px solid #000; padding: 8px 12px; cursor: pointer; z-index: 2; }
.frame button.play:hover { background: #000; color: #fff; }
.video-frame { cursor: pointer; }
.is-playing .video-frame { cursor: default; }
.is-playing .frame button.play, .is-playing .frame video.teaser { display: none; }
.video figcaption { font-size: 12px; color: #333; margin-top: 7px; }
.still img { width: 100%; height: auto; display: block; border: 1px solid #000; box-sizing: border-box; }
.still.phone img { aspect-ratio: 600 / 786; border-radius: 16px 16px 0 0; }
.fallback { font-size: 13px; color: #333; margin: 6px 0 0; }

.stats { list-style: none; padding: 0; margin: 0 0 26px; max-width: 760px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.stats li { display: grid; grid-template-columns: max-content 1fr auto; gap: 0 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dotted #999; }
.stats li:last-child { border-bottom: 0; }
.stats .v { font-size: 22px; letter-spacing: -0.01em; }
.stats .l { font-size: 14px; color: #333; }
.stats .m { font-size: 12px; color: #333; }
@media (max-width: 600px) { .stats li { grid-template-columns: 1fr auto; } .stats .l { grid-column: 1 / -1; } }

.credit { max-width: 60ch; margin: 0 0 26px; font-size: 15px; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.prose h2 { font: 13px/1 Georgia, "Times New Roman", Times, serif; color: #333; margin: 2em 0 0.9em; padding-top: 14px; border-top: 1px solid #000; }
.prose h3 { font-size: 1em; font-weight: normal; margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin: 0 0 0.5em; }
.prose hr { border: 0; border-top: 1px solid #000; margin: 2em 0; }
details { max-width: 62ch; margin: 0 0 32px; }
summary { cursor: pointer; color: #0000ee; text-decoration: underline; text-underline-offset: 0.14em; list-style: none; display: inline; }
summary::-webkit-details-marker { display: none; }
details[open] summary { color: #551a8b; }
details .prose { margin-top: 1em; }

.cuts { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 32px; }
.cut { margin: 0; max-width: 100%; }
.cut figcaption { font-size: 12px; color: #333; margin-top: 6px; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 32px; max-width: 1120px; }
.stills figure { margin: 0; }
.stills img { width: 100%; height: auto; display: block; border: 1px solid #000; box-sizing: border-box; }
.stills figcaption { font-size: 12px; color: #333; margin-top: 6px; }
.nav { font-size: 14px; margin: 40px 0 0; padding-top: 12px; border-top: 1px solid #000; display: flex; flex-wrap: wrap; gap: 18px; }
.nav .r { margin-left: auto; }

/* the other pages (about, work, a collection, 404): the same vocabulary, the headline a size down */
.page h1, .for h1 { font-size: clamp(32px, 5vw, 64px); max-width: 18ch; margin-bottom: 18px; }
.page .deck, .for .deck { margin-bottom: 1em; }
.for-intro { margin: 0 0 8px; }
.for-foot { font-size: 13px; color: #333; max-width: 60ch; margin: 32px 0 0; }

/* the writing pieces (status: writing): poems, plates, the closer */
.video.square { max-width: 560px; }
.video.still.portrait { max-width: 460px; }
.prose:has(.plate) h2 { width: min(760px, calc(100vw - 40px)); }
.plate { margin: 0 0 26px; width: min(760px, calc(100vw - 40px)); }
.plate.small { max-width: 420px; }
.plate.mid { max-width: 560px; }
.plate img { display: block; width: 100%; height: auto; border: 1px solid #000; box-sizing: border-box; }
.plate figcaption { font-size: 12px; color: #333; margin-top: 7px; }
.prose:has(.pages) h2 { width: min(760px, calc(100vw - 40px)); }
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 26px; width: min(760px, calc(100vw - 40px)); }
.pages a { display: block; }
.pages img { display: block; width: 100%; height: auto; border: 1px solid #000; box-sizing: border-box; }
.top { position: relative; z-index: 1; }
main:has(.ambient) { isolation: isolate; }
.ambient { position: absolute; z-index: -1; top: 0; left: 12vw; width: min(78vw, 900px); max-width: none; height: auto; aspect-ratio: 1 / 1; pointer-events: none; }
.amb-spacer { float: right; width: 1px; height: calc(min(78vw, 900px) * 0.97 - 94px); }
#head.over { overflow: visible; margin-bottom: 14px; }
#head.over .deck { max-width: 38ch; }
/* the Personals sequence: one centered column, Joel's order. Dotted outlines on the poem pages, no outlines on anything else. */
.prose:has(.seq) { max-width: none; }
.kicker { clear: both; text-align: center; font-size: 14px; color: #333; margin: 0 0 18px; }
.seq { clear: both; margin: 0 auto 64px; max-width: 980px; text-align: center; }
.seq figure { margin: 0; }
.seq a { display: block; }
.seq img { display: block; width: 100%; height: auto; margin: 0 auto; }
.seq figcaption { font-size: 13px; color: #333; margin-top: 10px; }
.seq.sheet { max-width: 640px; }
.seq.sheet img { border: 1px dotted #ccc; box-sizing: border-box; }
.seq img.cover-shot { width: min(300px, 70%); margin-top: 22px; }
.piece .coda { justify-content: center; margin: 0 auto 64px; }
.piece .coda .peace { justify-self: center; }
@media (max-width: 900px) {
  .ambient { top: 30px; left: calc(50% - min(62vw, 380px)); width: min(124vw, 760px); }
  .amb-spacer { display: none; }
  #head.over { padding-top: calc(min(124vw, 760px) * 0.67); }
  #head.over .deck { max-width: 46ch; }
}
.coda { display: grid; grid-template-columns: minmax(0, 33.9em) auto; column-gap: 32px; align-items: center; justify-content: start; width: min(1120px, calc(100vw - 40px)); margin: 56px 0 0; font-size: 14px; }
.coda .kw { overflow: hidden; font: 14px/1.17 "Times New Roman", Times, serif; white-space: nowrap; }
.coda .kw span { display: block; margin-left: -3.75em; }
.coda .eliot { font-size: 15px; line-height: 1.45; margin: 0; color: #333; white-space: nowrap; }
.coda .eliot .sh { display: inline-block; padding-left: 4.5em; }
.coda .fn { grid-column: 1 / -1; margin: 14px 0 0; }
.coda .peace { grid-column: 1 / -1; justify-self: start; width: 44px; height: 44px; margin-top: 44px; fill: none; stroke: #551a8b; stroke-width: 9; }
@media (max-width: 860px) {
  .coda { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .coda .kw { font-size: 12.5px; }
  .coda .eliot { font-size: 14px; white-space: normal; }
  .coda .eliot .sh { padding-left: 2.5em; }
}

/* The chumbox: Arial on purpose. The plain site around it is the setup (PORT-5). */
.chum { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; margin: 56px 0 8px; padding-top: 12px; border-top: 1px solid #000; }
.chum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.chum-head b { font-size: 21px; font-weight: 700; color: #111; }
.chum-head span { font-size: 11px; color: #888; }
.chum .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.chum .tile { display: block; color: #111; text-decoration: none; }
.chum .tile:first-child { grid-column: 1 / -1; }
.chum .th { position: relative; aspect-ratio: 16 / 9; background: #eee; overflow: hidden; }
.chum .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chum .th .none { position: absolute; inset: 0; display: grid; place-items: center; font: 700 42px Arial, sans-serif; color: #111; background: #f2f2f2; }
.chum .tile h3 { font: 700 16px/1.22 Arial, "Helvetica Neue", Helvetica, sans-serif; letter-spacing: -0.01em; margin: 7px 0 3px; }
.chum .tile:first-child h3 { font-size: 21px; }
.chum .tile:hover h3 { text-decoration: underline; }
.chum .tile small { font-size: 11px; color: #888; }
.chum-fn { font: 11px/1.4 Arial, sans-serif; color: #888; margin: 16px 0 0; }
@media (min-width: 900px) {
  .chum .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chum .tile:first-child { grid-column: span 2; grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) { .peek, .peek video, .frame video.teaser { transition: none; } }
@media print { .top, .play, .nav, .chum, .peek video, .skip, canvas { display: none !important; } a { color: #000; } .peek { position: static; opacity: 1; } }
