/* v4, the home: v3's stone (Studies 33, 37, 39, 41 b, 42 a, 43 c, with 35's line, 34's chain and the year facet) and, beneath it, the working
   (Study 47: 44 d's six steps). The first part of this file is v3's stone.css whole; the last part, from "the stone and the page beneath",
   is what joins the two and the working's own styles, each kept under #working so they and the stone's never meet.
   Numbers that are dials come from /v4/defaults.json as CSS variables, each with its value as the fallback. */
:root {
  --ink-seam: #0d0c0b; --ink-on: #f3efe6; --ink-on2: #c9c3b6;
  --sans: 'Space Grotesk', -apple-system, sans-serif; --serif: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink-seam); color: var(--ink-on); }
a { color: inherit; }
#app { position: fixed; inset: 0; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
#stone { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the poem as read and tapped: the words are drawn on the stone, this layer holds their places */
#read { position: absolute; inset: 0; pointer-events: none; }
.verse { position: absolute; font: 300 18px/1.5 var(--serif); color: transparent; overflow: hidden; pointer-events: auto; touch-action: pan-y; user-select: text; -webkit-user-select: text; }
.verse.gone { pointer-events: none !important; }
.verse.scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.verse.scroll::-webkit-scrollbar { display: none; }
.verse h2 { margin: 0 0 .7em; font: italic 400 1.22em/1.25 var(--serif); }
.verse h2 a { text-decoration: none; }
.verse .l { display: block; text-indent: -1em; padding-left: 1em; }
.verse .gap { display: block; height: .7em; }
.verse .door { text-decoration: none; pointer-events: none; outline: none; border-radius: 2px; }
.verse .tag { font: 400 .62em/1 var(--sans); letter-spacing: .1em; margin-left: .7em; white-space: nowrap; }
body[data-at="world"] .verse .l.shown .door { pointer-events: auto; cursor: pointer; }
.verse .door:focus-visible { outline: 1px solid rgba(243,239,230,.7); outline-offset: 3px; }
.verse h2:not(.shown) a { pointer-events: none; }
body[data-at="world"] #app.over, body[data-at="stone"] #app.over { cursor: pointer; }
body[data-at="world"] #app.over .verse .l:not([data-door]) { cursor: pointer; }
#back { position: absolute; z-index: 4; margin: 0; transform: translate(-50%, -50%); text-align: center; opacity: 0; pointer-events: none;
  font: italic 300 1.0625rem/1.3 var(--serif); color: var(--ink-on); text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 18px rgba(0,0,0,.9); }
#back.on { pointer-events: auto; }
#back a { text-decoration: none; border-bottom: 1px solid rgba(243,239,230,.45); }
#back small { display: block; margin-top: .45em; font: 400 max(.62em, calc(var(--text-min-px, 11) * 1px))/1.3 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-on2); }
#back.tight { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; pointer-events: auto; }
#back small.basis { margin-top: .35em; letter-spacing: .06em; text-transform: none; opacity: .72; }
#back small.src a { text-decoration: none; border-bottom: 1px solid rgba(201,195,182,.5); pointer-events: auto; }
#back .say { font-style: normal; }
#back .lines span { display: block; }
#back .lines span + span { margin-top: .15em; }
#idea { position: absolute; z-index: 5; margin: 0; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  font: italic 300 clamp(22px, 2.6vw, 36px)/1.2 var(--serif); color: var(--ink-on); text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 26px rgba(0,0,0,.85); }

/* the mat: name, where he is, the way out */
header { position: fixed; z-index: 9; left: clamp(16px, 3.4vw, 56px); bottom: clamp(18px, 5vh, 56px); max-width: 34ch; pointer-events: none; color: #ede7d9; }
header h1 { margin: 0; font: 500 1.15rem/1 var(--sans); letter-spacing: .01em; }
header h1 a { text-decoration: none; pointer-events: auto; }
header p { margin: 10px 0 14px; font: italic 300 1.0625rem/1.4 var(--serif); opacity: .86; }
header p:empty { display: none; }
header nav { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 18px; font: 400 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
header nav a { color: var(--ink-on2); text-decoration: none; transition: color .2s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
header nav a:hover, header nav a:focus-visible { color: #fff; }
.cap { position: fixed; z-index: 9; right: clamp(16px, 3.4vw, 56px); bottom: clamp(18px, 5vh, 56px); margin: 0; font: 400 .7rem/1.5 var(--sans); letter-spacing: .012em; color: var(--ink-on2); text-align: right; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
/* the version tab: the study switch's corner, the same three entries as /v2/ and /v1/ */
.vs { position: fixed; top: 10px; right: 10px; z-index: 20; display: flex; align-items: center; gap: .45rem; font: 400 .72rem/1 var(--sans); color: var(--ink-on2); text-shadow: 0 1px 6px rgba(0,0,0,.6); padding: 5px 7px; }
.vs a { text-decoration: none; color: var(--ink-on2); }
.vs a:hover, .vs a:focus-visible { color: #fff; }
.vs [aria-current] { color: #ede7d9; font-weight: 500; }
.vs > * + *::before { content: '\00b7'; margin-right: .45rem; color: rgba(201,195,182,.5); }
/* an idea, opened from the facet that holds it (41 b, 42 a): its name, this world first, why this facet, then its sentence, tools and boundary */
#tools button:focus-visible { outline: 1px solid rgba(243,239,230,.7); outline-offset: 3px; }
/* the way in without a pointer: one button per idea, named for it, never shown (focus rings its facet on the stone) */
#keys button { position: fixed; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#tools { position: fixed; z-index: 8; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  padding: 14px 16px; border-radius: 6px; background: rgba(13,12,11,var(--tools-ground, .82)); color: var(--ink-on); }
#tools::-webkit-scrollbar { display: none; }
#tools.on { opacity: 1; pointer-events: auto; }
#tools h2 { margin: 4px 0 8px; font: italic 400 1.3rem/1.25 var(--serif); }
#tools h2 a { text-decoration: none; border-bottom: 1px solid rgba(243,239,230,.45); }
#tools p { margin: 0 0 10px; font: 300 .95rem/1.5 var(--serif); }
#tools ul { list-style: none; margin: 0 0 10px; padding: 0; }
#tools li { border-top: 1px solid rgba(243,239,230,.14); }
#tools li button { all: unset; cursor: pointer; display: block; width: 100%; padding: 7px 0; font: 500 .78rem/1.35 var(--sans); letter-spacing: .02em; color: var(--ink-on); }
#tools li button[aria-expanded="false"] { color: var(--ink-on2); }
#tools li p { margin: 0 0 9px; font-size: .9rem; }
#tools li p[hidden] { display: none; }
#tools { border-left: 2px solid var(--hue, var(--ink-on2)); }
#tools .basis { display: block; margin: -2px 0 10px; font: 400 .7rem/1.4 var(--sans); letter-spacing: .04em; color: var(--ink-on2); opacity: var(--basis-alpha, 0.9); }
#tools .boundary { margin: 6px 0 0; font-style: italic; color: var(--ink-on2); }
#tools p.here { margin: 0 0 10px; font: 300 calc(var(--here-rem, 1.06) * 1rem)/1.5 var(--serif); color: var(--ink-on); }
#tools .gen { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(243,239,230,.14); }
#tools .gen p, #tools .gen li p { font-size: calc(var(--general-rem, 0.84) * 1rem); color: var(--ink-on2); }
#tools .gen li button { font-size: .74rem; }
body.tools-open .cap { opacity: 0; }
@media (max-height: 560px) and (orientation: landscape) {
  header { left: 16px; bottom: 14px; max-width: 42vw; }
  header p { margin: 6px 0 8px; font-size: .9rem; }
  .cap { left: 16px; right: auto; top: 40px; bottom: auto; text-align: left; max-width: 44vw; }
  .vs { top: 4px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  header { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  header p { margin: 6px 0 10px; font-size: .95rem; }
  .cap { left: 16px; right: auto; top: 74px; bottom: auto; text-align: left; max-width: 70%; }
}

/* 35 line: the readings the pick read, resolving into the sentence */
#where { display: grid; }
#where > span { grid-area: 1 / 1; }
#where .rd { font: 400 .74rem/1.9 var(--sans); font-style: normal; letter-spacing: .04em; color: var(--ink-on2); font-variant-numeric: tabular-nums; }
#where .rd i { font-style: normal; white-space: nowrap; transition: opacity calc(var(--line-out-ms, 900) * 1ms) var(--ease), filter calc(var(--line-out-ms, 900) * 1ms) var(--ease); }
#where .rd i.out { opacity: 0; filter: blur(3px); }
#where .sent { opacity: 0; transition: opacity calc(var(--line-out-ms, 900) * 1ms) var(--ease); }
#where .sent.on { opacity: 1; }
body[data-a="line"]:not([data-line]) #where { visibility: hidden; }
/* the line opens the decision */
#where { pointer-events: auto; cursor: pointer; text-decoration: underline dotted rgba(237,231,217,.42) 1px; text-underline-offset: .28em; border-radius: 3px; transition: opacity .2s var(--ease); }
#where:hover, #where:focus-visible { opacity: 1; text-decoration-color: rgba(237,231,217,.8); outline: none; }
#where[aria-expanded="true"] { opacity: 1; text-decoration-style: solid; }
#why-scrim { position: fixed; inset: 0; z-index: 7; background: rgba(13,12,11,var(--why-scrim, 0.46)); opacity: 0; pointer-events: none; transition: opacity calc(var(--why-ms, 380) * 1ms) var(--ease); }
#why { --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; position: fixed; z-index: 10; left: clamp(16px, 3.4vw, 56px); bottom: calc(clamp(18px, 5vh, 56px) + var(--mat-h, 110px) + 12px);
  width: min(calc(var(--why-width-px, 660) * 1px), calc(100vw - 32px)); max-height: min(var(--why-max-h, 68vh), calc(100vh - var(--mat-h, 110px) - 110px)); overflow: auto; overscroll-behavior: contain;
  padding: 20px 22px 20px; border-radius: 6px; background: rgba(16,15,14,var(--why-glass, 0.84)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0,0,0,.45);
  font: 400 .78rem/1.45 var(--sans); color: var(--ink-on); opacity: 0; transform: translateY(10px); pointer-events: none; scrollbar-width: none; user-select: text; -webkit-user-select: text; font-variant-numeric: tabular-nums;
  transition: opacity calc(var(--why-ms, 380) * 1ms) var(--ease), transform calc(var(--why-ms, 380) * 1ms) var(--ease); }
#why::-webkit-scrollbar { display: none; }
body.why #why { opacity: 1; transform: none; pointer-events: auto; }
body.why #why-scrim { opacity: 1; pointer-events: auto; }
body.why .cap { opacity: 0; } .cap { transition: opacity .3s var(--ease); }
#why .why-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-on2); font: 300 20px/1 var(--sans); cursor: pointer; }
#why .why-x:hover, #why .why-x:focus-visible { color: #fff; background: rgba(127,127,127,.2); outline: none; }
#why p { margin: 0; }
.n { font-family: var(--mono); font-size: .96em; letter-spacing: -.01em; }
.k-head { margin: 0 0 14px !important; font: 400 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-on2); padding-right: 30px; }
.k-lab { margin: 0 0 8px; font: 400 .64rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-on2); }
.k-say { font: italic 300 1rem/1.45 var(--serif); margin: 0 0 14px !important; }
.k-tot { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 14px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid rgba(243,239,230,.12); }
.k-tot div { display: flex; flex-direction: column-reverse; gap: 4px; }
.k-tot dt { font: 400 .6rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-on2); }
.k-tot dd { margin: 0; font: 300 1.45rem/1 var(--sans); }
.k-tot dd .n { font: inherit; letter-spacing: -.02em; }
.k-st { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 0 14px; padding: 12px 0; border-top: 1px solid rgba(243,239,230,.12); }
.k-st:first-of-type { border-top: 0; padding-top: 0; }
.k-st .k-lab { margin: 3px 0 0; }
.k-body { display: grid; gap: 5px; min-width: 0; }
/* b: chain */
.b-big { font: italic 300 1.2rem/1.3 var(--serif); }
.b-ev { color: var(--ink-on); }
.b-q { font: italic 300 .92rem/1.45 var(--serif); color: var(--ink-on2); }
.b-src { margin: -3px 0 3px 7.2em !important; font: 400 .66rem/1.3 var(--mono); color: var(--ink-on2); }
.b-g { display: grid; grid-template-columns: 6.6em 3.6em minmax(0, 1fr) 7.6em; gap: 10px; align-items: center; }
.b-a { color: var(--ink-on2); }
.b-w { font: italic 300 .9rem/1 var(--serif); }
.b-tr { position: relative; height: 12px; }
.b-tr::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(243,239,230,.24); }
.b-tr i { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.b-day { width: 11px; height: 11px; border: 1.5px solid #f3efe6; background: rgba(16,15,14,.9); z-index: 2; }
.b-ph { width: 6px; height: 6px; background: rgba(243,239,230,.55); }
.b-po { width: 6px; height: 6px; border: 1px solid rgba(243,239,230,.55); }
.b-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 2px 0 8px; }
.b-pick:last-child { margin-bottom: 0; }
.b-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; display: block; }
.b-pt { display: grid; gap: 3px; grid-column: 2; }
.b-pick:not(:has(.b-thumb)) .b-pt { grid-column: 1 / -1; }
.b-name { font: italic 400 1.02rem/1.3 var(--serif); }
.b-read { color: var(--ink-on2); font: italic 300 .88rem/1.35 var(--serif); }
.b-m { font: 400 .68rem/1.4 var(--mono); color: var(--ink-on); }
.b-key { display: flex; gap: 6px; align-items: center; color: var(--ink-on2); font-size: .66rem; margin-bottom: 2px !important; }
.b-key i { position: static; display: inline-block; transform: none; border-radius: 50%; margin-left: 8px; }
.b-key i:first-child { margin-left: 0; }
.b-sig { display: grid; grid-template-columns: 6.6em 9.5em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.b-v { font-family: var(--mono); font-size: .68rem; }
.b-e { color: var(--ink-on2); font: italic 300 .9rem/1.3 var(--serif); }
.b-e.b-moves { color: var(--ink-on); }
.b-door { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.b-dp { font: italic 300 .95rem/1.3 var(--serif); }
.b-dw { font: 400 .66rem/1.3 var(--mono); color: var(--ink-on2); text-align: right; }
/* the pieces */
.y { display: grid; gap: 2px; padding: 5px 0 6px; border-top: 1px solid rgba(243,239,230,.07); min-width: 0; }
.y-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.y-lab { color: var(--ink-on); }
.y-n, .y-v { font: 400 .7rem/1.3 var(--mono); color: var(--ink-on); text-align: right; }
.y-v { text-align: left; font-family: var(--sans); font-size: .78rem; }
.y-st { grid-column: 1 / -1; font: italic 300 .86rem/1.3 var(--serif); color: var(--ink-on2); }
.y-st[data-status="moved"], .y-pg[data-status="moved"] .y-st { color: #e0b56a; }
.y-st[data-status="stone"], .y-pg[data-status="stone"] .y-st { color: var(--ink-on); }
.y[data-status="unused"] .y-lab, .y[data-status="unused"] .y-n { color: var(--ink-on2); }
.y-parts { display: grid; gap: 1px; }
.y-pg .y-st { display: inline; }
.y-part { font: 400 .74rem/1.3 var(--sans); }
.y-pl { display: block; font: 400 .74rem/1.4 var(--sans); }
.y-pl .y-part .n { color: var(--ink-on2); }
.t-w .y-top > .y-lab { white-space: nowrap; }
.y-d { font: 400 .66rem/1.35 var(--mono); color: var(--ink-on2); }
.a-sec { margin: 0 0 16px; }
.a-h { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(243,239,230,.18); padding-bottom: 5px; }
.a-sec[data-status="moved"] .a-h { color: #e0b56a; }
.a-hn .n { font-size: 1rem; letter-spacing: 0; }
.a-sec .y-st { display: none; }
.a-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 16px; }
.v-sec { margin: 0 0 16px; }
.v-sec[data-status="moved"] .a-h { color: #e0b56a; }
.v-cv { display: block; margin: 0 0 6px; }
.v-leg { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 400 .64rem/1.4 var(--sans); color: var(--ink-on2); }
.t-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 16px; }
.t-w { min-width: 0; }
.t-thumb { width: 72px; height: 72px; }
.t-m { display: grid; grid-template-columns: 6.2em 2.6em minmax(0, 1fr); gap: 2px 8px; align-items: center; }
.t-m .y-st { font-size: .76rem; margin: -2px 0 3px; }
.t-q { font: italic 300 .9rem/1.35 var(--serif); quotes: '“' '”'; }
.t-kin { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; width: 132px; margin-top: 3px; }
.t-kin i { aspect-ratio: 1; background: rgba(243,239,230, calc(.04 + var(--l) * .9)); }
.t-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; color: var(--ink-on2); }
.t-line.t-on { color: var(--ink-on); }
.t-line .b-dw { text-align: right; }
@media (prefers-reduced-motion: reduce) { #why, #why-scrim { transition: none; } }
@media (max-height: 560px) and (orientation: landscape) {
  #why { left: auto; right: 10px; top: 34px; bottom: 10px; width: calc(100vw - 42vw - 40px); max-height: none; padding: 14px 16px; font-size: .72rem; }
  .k-tot dd { font-size: 1.15rem; }
  .k-st { grid-template-columns: 1fr; gap: 6px; }
  .b-src { margin-left: 0 !important; }
  .b-g { grid-template-columns: 6em 3.4em minmax(0, 1fr); } .b-w { display: none; }
  .b-sig { grid-template-columns: 6em minmax(0, 1fr); }
  .b-sig .b-e { grid-column: 1 / -1; margin-top: -4px; }
  .t-two { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  #why { left: 10px; right: 10px; width: auto; top: 60px; max-height: none; bottom: calc(var(--mat-h, 110px) + 24px); padding: 16px 16px 16px; }
  .k-st { grid-template-columns: 1fr; gap: 6px; }
  .b-g { grid-template-columns: 6em 3.4em minmax(0, 1fr); }
  .b-w { display: none; }
  .b-sig { grid-template-columns: 6em minmax(0, 1fr); }
  .b-sig .b-e { grid-column: 1 / -1; margin-top: -4px; }
  .b-door { grid-template-columns: 1fr; gap: 0; }
  .b-dw { text-align: left; }
  .b-src { margin-left: 0 !important; }
  .t-two { grid-template-columns: 1fr; gap: 14px; }
  .k-tot { grid-template-columns: repeat(3, 1fr); }
}
/* 36 c: where the line meets the chain */
#where { text-decoration: none; } /* 34's dotted underline moves onto the line's own words, so the spaces between faded readings carry none */
#where:not(:has(> span)), #where .sent, #where .rd i { text-decoration: underline dotted rgba(237,231,217,.42) 1px; text-underline-offset: .28em; }
#where:is(:hover, :focus-visible):not(:has(> span)), #where:is(:hover, :focus-visible) :is(.sent, .rd i) { text-decoration-color: rgba(237,231,217,.8); }
#where[aria-expanded="true"]:not(:has(> span)), #where[aria-expanded="true"] :is(.sent, .rd i) { text-decoration-style: solid; }
#why .lit { border-radius: 2px; transition: background-color calc(var(--echo-ms, 1400) * 1ms) var(--ease), box-shadow calc(var(--echo-ms, 1400) * 1ms) var(--ease), color calc(var(--echo-ms, 1400) * 1ms) var(--ease); }
#why .lit.echo { background-color: rgba(243,239,230,.2); box-shadow: 0 0 0 3px rgba(243,239,230,.2); color: #fff; transition-duration: .18s; }

/* 38 c: the photograph's own facet carries its month and year; the facet is the way to the years (27 a) */
#year { position: fixed; z-index: 6; margin: 0; transform: translate(-50%, -50%); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  font: italic 300 1.0625rem/1.2 var(--serif); color: var(--ink-on); text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.7); }
#year.on { opacity: 1; pointer-events: auto; }
#year a { position: relative; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: rgba(243,239,230,var(--door-alpha, 0.3)); }
#year a::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100% + 12px, calc(var(--hit-px, 44) * 1px)); height: calc(var(--hit-px, 44) * 1px); transform: translate(-50%, -50%); }
#year a:hover, #year a:focus-visible { text-decoration-color: rgba(243,239,230,.85); outline: none; }
body.why #year, body.tools-open #year, body[data-at="entering"] #year { opacity: 0; pointer-events: none; }
#about { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 30; background: #fafaf8; opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); }
body[data-at="about"] #about { opacity: 1; pointer-events: auto; }
#ph { position: fixed; z-index: 31; left: 0; top: 0; width: 100vw; height: 100vh; object-fit: cover; display: block; will-change: left, top, width, height; }
#ph[hidden] { display: none; }
body[data-at="about"] .vs { display: none; }
@media (prefers-reduced-motion: reduce) { #year, #about { transition: none; } }
/* without script: the photograph, the poem and the six ideas, plain */
.plain { position: relative; z-index: 1; height: 100%; overflow: auto; padding: clamp(16px, 4vw, 56px); background: var(--ink-seam); color: var(--ink-on); }
.plain img { display: block; width: 100%; max-width: 960px; height: auto; margin: 0 0 24px; }
.plain h1 { margin: 0 0 18px; font: 500 1.15rem/1 var(--sans); }
.plain h1 a { text-decoration: none; }
.plain .poem { margin: 0 0 28px; max-width: 34em; font: 300 1.0625rem/1.5 var(--serif); }
.plain .poem h2 { margin: 0 0 .6em; font: italic 400 1.3rem/1.25 var(--serif); }
.plain .poem p { margin: 0 0 .7em; }
.plain .wall-plain { list-style: none; margin: 0 0 24px; padding: 0; font: 400 .9rem/1.6 var(--sans); }
.plain .wall-plain b { font-weight: 500; margin-right: .5em; }
.plain nav { display: flex; gap: 18px; font: 400 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.plain nav a { color: var(--ink-on2); text-decoration: none; }
/* ---------- 43 c: the opened facet. On a phone a piece, an idea and the chain each open as one card cut like a facet of this stone (made by stone.js) ---------- */
#piece { display: none; }
#card { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 12; visibility: hidden; pointer-events: none; transform-origin: 0 0; color: var(--ink-on);
  background: rgb(19,17,15); backface-visibility: visible; }
#card.on { visibility: visible; pointer-events: auto; }
#card.measure { visibility: hidden; pointer-events: none; }

#card .face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; }
#card svg.cut { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
#card .card-slot { position: absolute; inset: 0; z-index: 1; }
#card .card-x { position: absolute; z-index: 3; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-on); font: 300 24px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#card .card-x:focus-visible { outline: 1px solid rgba(243,239,230,.7); outline-offset: -6px; }
.card-slot > #tools, .card-slot > #why, .card-slot > #piece { position: absolute !important; left: var(--ci-l) !important; top: var(--ci-t) !important; right: var(--ci-r) !important; bottom: var(--ci-b) !important;
  width: auto !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 6px 6px 0 !important; display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  opacity: 1 !important; transform: none !important; pointer-events: auto !important; transition: none !important; scrollbar-width: none; outline: none; user-select: text; -webkit-user-select: text; }
.card-slot > *::-webkit-scrollbar { display: none; }
.card-slot > *::before { content: ''; float: right; width: var(--cx-w, 40px); height: var(--cx-h, 40px); shape-outside: polygon(0 0, 100% 0, 100% 100%); } /* the words keep clear of the close mark's facet */
/* the piece: his words, where they are from, why here */
.card-slot > #piece { font: italic 300 calc(var(--card-piece-px, 19) * 1px)/1.45 var(--serif); color: var(--ink-on); }
#piece .say { font-style: normal; }
#piece .lines span { display: block; }
#piece .lines span + span { margin-top: .2em; }
#piece small { display: block; margin-top: .9em; font: 400 calc(var(--card-small-px, 13) * 1px)/1.4 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-on2); }
#piece small.basis { margin-top: .5em; letter-spacing: .03em; text-transform: none; opacity: var(--basis-alpha, 0.9); }
#piece small.src a { text-decoration: none; border-bottom: 1px solid rgba(201,195,182,.5); }
/* the idea: this world first and largest, the basis, the general beneath; read at a phone's size */
.card-slot > #tools h2 { margin: 0 0 10px; font-size: calc(var(--card-title-px, 24) * 1px); }
.card-slot > #tools p.here { font-size: calc(var(--card-here-px, 18) * 1px); }
.card-slot > #tools .basis { font-size: calc(var(--card-small-px, 13) * 1px); }
.card-slot > #tools .gen p, .card-slot > #tools .gen li p { font-size: calc(var(--card-body-px, 16) * 1px); }
.card-slot > #tools li button, .card-slot > #tools .gen li button { font-size: calc(var(--card-label-px, 14) * 1px); padding: 11px 0; }
/* the chain: its own layout, at a size a phone reads */
.card-slot > #why .why-body { zoom: var(--card-chain-zoom, 1.336); }
.card-slot > #why .why-x { display: none; }
.card-slot > #why { font-size: .78rem; } /* on its side the chain keeps the size it has upright */
body.card-open #year { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #card { transition: none; } }
body.card-open #why-scrim { opacity: 0; pointer-events: none; } /* the card is its own ground: no scrim behind the chain */
#card.closing, #card.closing .card-slot > *, #card.closing .card-x { pointer-events: none !important; } /* a touch while it closes goes to the stone */

/* v4: the stone's nav is the site's one list of sections (nine words, where v3's held three), without the name's block growing taller,
   since the stone lays the poem, the ideas and the title's facet out against that block. On a wide screen the words run on past the block in
   one row (two where the window is narrow), short of the poem; on a phone, upright or on its side, they are one row that moves sideways
   under a finger. Each word answers a touch well beyond its letters (::after: the gap between two words is half each one's, and on a touch
   screen 40px of height), without the word's own box growing, which the stone measures. */
header nav { gap: 9px 18px; width: max-content; max-width: min(58vw, 860px); }
header nav a { position: relative; }
header nav a::after { content: ''; position: absolute; inset: -3px -9px; }
@media (pointer: coarse) { header nav a::after { inset: -14px -9px; } }
@media (max-width: 640px) and (orientation: portrait), (max-height: 560px) and (orientation: landscape) {
  header nav { width: auto; max-width: none; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: -14px -16px -14px 0; padding: 14px 16px 14px 0; }
  header nav::-webkit-scrollbar { display: none; }
}

/* ---------- the stone and the page beneath (Study 47) ----------
   The stone stays fixed to the window and ends where the strip begins; the page beneath it begins with that strip and the working follows,
   coming up over the stone as the page moves. */
html, body { height: auto; overflow: visible; overflow-x: clip; }
/* a finger dragged up or down on the stone moves the page (v3's stone took every touch for itself: its page did not scroll). A poem longer
   than its room still moves within itself first, and at its last line the next drag is the page's. stone.js withdraws the press a drag began. */
#app { touch-action: pan-y; }
.verse.scroll { overscroll-behavior: auto; }
.verse.coming { pointer-events: none !important; } /* the poem a press is bringing in: no touch is its own until it has landed */
/* the stone's stage ends where the strip begins. Everything of the stone's that is fixed to the window (the stone, its name, caption and
   chain, an open idea's panel, the date, the six keys) is inside it and takes its place from the stage's box, as it took it from the window's:
   the stone's own arithmetic, done against its height, stays right. A transform is what makes a box hold its fixed descendants in every browser. */
#stage { position: fixed; inset: 0 0 calc(var(--foot-px, 64) * 1px) 0; transform: translate(0, 0); contain: layout; }
body[data-at="about"] { overflow: hidden; } body[data-at="about"] .under, body[data-at="about"] #working { visibility: hidden; }
.room { height: calc(100vh - var(--foot-px, 64) * 1px); height: calc(100svh - var(--foot-px, 64) * 1px); pointer-events: none; }
.under { position: relative; z-index: 25; height: calc(var(--foot-px, 64) * 1px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 clamp(16px, 3.4vw, 56px); background: var(--paper, #fafaf8); color: var(--ink, #1a1a1a); text-decoration: none; border-bottom: 1px solid var(--ink, #1a1a1a); }
.under b { font: 400 1.25rem/1.2 var(--serif); white-space: nowrap; }
.under span { font: 400 .875rem/1.3 var(--sans); color: var(--quiet, #6e6e6e); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.under i { font-style: normal; color: var(--ink, #1a1a1a); margin-left: .6rem; }
.under:focus-visible { outline: 2px solid var(--ink, #1a1a1a); outline-offset: -4px; }
#working { position: relative; z-index: 25; background: var(--paper, #fafaf8); color: var(--ink, #1a1a1a); font: 400 1rem/1.5 var(--sans); min-height: 100vh; }
#working * { margin: 0; padding: 0; }
#working a { color: inherit; } #working img { display: block; max-width: 100%; height: auto; } #working ul, #working ol { list-style: none; }
#working summary { cursor: pointer; list-style: none; } #working summary::-webkit-details-marker { display: none; }
#working :focus-visible { outline: 2px solid var(--ink, #1a1a1a); outline-offset: 3px; }
#working .lab { font: 500 .8125rem/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet, #6e6e6e); }
#working figure figcaption { font: 400 .8125rem/1.4 var(--sans); color: var(--quiet, #6e6e6e); margin-top: .6rem; }
/* the poem, the same in all four */
#working .poem h4 { font: italic 400 1.75rem/1.2 'Fraunces', Georgia, serif; margin-bottom: 1.1rem; }
#working .poem h4 a { text-decoration: none; }
#working .poem p { font: 400 calc(var(--poem-rem, 1.375) * 1rem)/var(--lead, 1.6) 'Fraunces', Georgia, serif; margin-bottom: 1.05em; }
#working .poem .l { display: block; padding-left: 1.2em; text-indent: -1.2em; }
#working .poem a.door { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: #a8a297; }
#working .poem a.door:hover { text-decoration-color: currentColor; }
#working figure figcaption { font: 400 .8125rem/1.4 'Space Grotesk', sans-serif; color: var(--quiet, #6e6e6e); margin-top: .6rem; }

/* six ideas, the same list in a, b and d */
#working .ideas { border-top: 1px solid var(--rule, #e0ddd8); }
#working .ideas details { border-bottom: 1px solid var(--rule, #e0ddd8); }
#working .ideas summary { display: grid; grid-template-columns: 11.5rem 1fr 1rem; gap: 1rem; align-items: baseline; padding: .7rem 0; }
#working .ideas summary b { font: 500 1rem/1.3 'Space Grotesk', sans-serif; }
#working .ideas summary span { font: 400 .875rem/1.4 'Space Grotesk', sans-serif; color: var(--quiet, #6e6e6e); }
#working .ideas summary i { font-style: normal; color: var(--quiet, #6e6e6e); text-align: right; } #working .ideas summary i::before { content: '+'; } #working .ideas details[open] summary i::before { content: '\2212'; }
#working .ideas details p { font: 400 1.0625rem/1.55 'Fraunces', Georgia, serif; padding: 0 0 1rem; max-width: 34rem; }
#working .ideas details p a { font: 400 .875rem 'Space Grotesk', sans-serif; margin-left: .4rem; }

/* ---------- d · the working, shown ---------- */
#working .d { max-width: 62rem; margin: 0 auto; padding: 2.6rem 32px 8rem; }
#working .d .top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 4rem; }
#working .d .name { font: 500 1.0625rem 'Space Grotesk', sans-serif; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
#working .d .top nav { display: flex; gap: 1.4rem; font-size: .9375rem; } #working .d .top nav a { text-decoration: none; color: var(--quiet, #6e6e6e); } #working .d .top nav a:hover { color: var(--ink, #1a1a1a); }
#working .d .said { font: 400 clamp(1.6rem, 3.1vw, 2.35rem)/1.25 'Fraunces', Georgia, serif; max-width: 46rem; margin-bottom: .8rem; letter-spacing: -.005em; }
#working .d .said + p { font: 400 1.1875rem/1.5 'Fraunces', Georgia, serif; color: #4a4a4a; max-width: 40rem; margin-bottom: 3.4rem; }
#working .d .step { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; padding: 1.8rem 0 2.2rem; border-top: 1px solid var(--ink, #1a1a1a); }
#working .d .step > .hd b { display: block; font: 300 2.4rem/1 'Fraunces', Georgia, serif; margin-bottom: .5rem; }
#working .d .step .big { font: 400 2.1rem/1.15 'Fraunces', Georgia, serif; margin-bottom: .6rem; }
#working .d .step .note { font: 400 .9375rem/1.55 'Space Grotesk', sans-serif; color: var(--quiet, #6e6e6e); max-width: 36rem; }
#working .d .step .note + .note { margin-top: .5rem; } #working .d .step .note b { display: block; font-weight: 500; color: var(--ink, #1a1a1a); }
#working .d .sky { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin-bottom: .7rem; } #working .d .sky div { font: 400 1.75rem/1.2 'Fraunces', Georgia, serif; } #working .d .sky small { display: block; font: 400 .8125rem 'Space Grotesk', sans-serif; color: var(--quiet, #6e6e6e); letter-spacing: .04em; }
#working .d .axes { display: grid; gap: .55rem; max-width: 40rem; margin-bottom: 1rem; }
#working .d .axis { display: grid; grid-template-columns: 6.6rem 5.4rem minmax(0, 1fr) 6rem; gap: .8rem; align-items: center; font-size: .875rem; }
#working .d .axis b { font-weight: 500; } #working .d .axis span { color: var(--quiet, #6e6e6e); } #working .d .axis span:nth-child(2) { text-align: right; }
#working .d .track { position: relative; height: 18px; } #working .d .track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #b9b4aa; }
#working .d .track i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
#working .d .track .day { background: var(--ink, #1a1a1a); border-radius: 50%; z-index: 2; }
#working .d .track .ph { border: 1.5px solid var(--ink, #1a1a1a); background: var(--paper, #fafaf8); }
#working .d .track .po { border: 1.5px solid var(--ink, #1a1a1a); background: var(--paper, #fafaf8); transform: rotate(45deg); }
#working .d .key { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-size: .875rem; color: var(--quiet, #6e6e6e); } #working .d .key i { display: inline-block; width: 10px; height: 10px; margin-right: .45rem; vertical-align: -1px; } #working .d .key .day { background: var(--ink, #1a1a1a); border-radius: 50%; } #working .d .key .ph, #working .d .key .po { border: 1.5px solid var(--ink, #1a1a1a); } #working .d .key .po { transform: rotate(45deg); }
#working .d .near { max-width: 40rem; margin: 1rem 0 2rem; }
#working .d .near li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) 8rem 3.2rem; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--rule, #e0ddd8); font-size: .9375rem; }
#working .d .near li span:first-child { color: var(--quiet, #6e6e6e); } #working .d .near li small { display: block; font-weight: 400; font-size: .8125rem; color: var(--quiet, #6e6e6e); } #working .d .near li em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
#working .d .near .bar { height: 5px; background: var(--rule, #e0ddd8); } #working .d .near .bar i { display: block; height: 100%; background: #8f897d; }
#working .d .near li.is { font-weight: 500; } #working .d .near li.is .bar i { background: var(--ink, #1a1a1a); }
#working .d .step figure { max-width: 46rem; }
#working .rest { margin-top: 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--ink, #1a1a1a); }
#working .rest h2 { margin-bottom: .9rem; }
#working .rest ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0 2.4rem; }
#working .rest a { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--rule, #e0ddd8); font: 400 1.375rem/1.25 'Fraunces', Georgia, serif; text-decoration: none; }
#working .rest a:hover, #working .rest a:focus-visible { border-bottom-color: var(--ink, #1a1a1a); }
#working .rest small { font: 400 .8125rem/1.3 var(--sans); color: var(--quiet, #6e6e6e); white-space: nowrap; }



#working .d { padding-top: 3.6rem; }
@media (max-width: 900px) {
  #working .d { padding: 2.4rem 20px 7rem; }
  #working .d .step { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0 1.8rem; } #working .d .step > .hd { display: flex; align-items: baseline; gap: .8rem; } #working .d .step > .hd b { font-size: 1.6rem; margin: 0; }
}
@media (max-width: 640px) {
  .under b { font-size: 1.0625rem; white-space: normal; } .under span { display: none; } .under::after { content: '\2193'; font: 400 1.125rem var(--sans); }
  #working .poem p { font-size: calc(var(--poem-rem, 1.375) * .875rem); }
  #working .ideas summary { grid-template-columns: 1fr 1rem; } #working .ideas summary span { grid-column: 1; grid-row: 2; margin-top: -.75rem; }
  #working .d .axis { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .2rem .8rem; } #working .d .axis span { display: none; } #working .d .axis b { font-size: .8125rem; }
  #working .d .near li { grid-template-columns: 1.2rem minmax(0, 1fr) 3.2rem; } #working .d .near .bar { display: none; }
  #working .d .sky div { font-size: 1.4rem; } #working .d .step .big { font-size: 1.8rem; }
}
