/* style.css: the whole look. Ink, bone, gold. Pixel edges everywhere.
   Radius is 0 everywhere. Corners are stepped, never rounded.
   Shadows are hard offsets, never blurred. */

:root {
  /* color */
  --ink: #101014;       /* page */
  --ink2: #15151b;      /* card fill */
  --surface: #1b1b23;   /* raised fill: text tiles, pressed states */
  --line: #232329;      /* quiet edge, dividers */
  --line-2: #34343f;    /* card edge, resting shadow */
  --bone: #ece5d3;      /* text */
  --dim: #8f887a;       /* secondary text */
  --gold: #c8a24a;      /* accent, hover, active */
  --shadow: #0a0a0d;    /* hard drop under big cards, darker than the page */

  /* stone: bone-toned marble for the few things that deserve it */
  --marble: #e6dfcc;      /* slab */
  --marble-hi: #f4efe2;   /* bevel light, clouding */
  --vein: #c9bfa6;        /* main vein; ink on it is 10.4:1 */
  --vein-2: #d7cfbb;      /* hairline vein */
  --vein-gold: #cfb77a;   /* one thin gold vein */
  --marble-edge: #a89c80; /* cut edge */
  --marble-ink: #4d483d;  /* secondary text on marble: 6.8:1 on slab, 5.0:1 on a vein */
  --bronze: #5e4610;      /* links on marble: 6.7:1 on slab, 4.9:1 on a vein */
  --key: #7a6434;         /* the meander: tarnished gold, decoration only */

  /* type: system stacks only, nothing is fetched */
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* spacing: 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* shape */
  --radius: 0;          /* pixel. never round anything. */
  --bw: 2px;            /* edge width: one screen pixel of the pixel grid */
  --u: 4px;             /* corner step: stepped corners are two steps of --u */

  /* layout */
  --maxw: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
:focus-visible { outline: var(--bw) solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--gold); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--bar-h) + var(--s-6)); }
img { max-width: 100%; }

/* ---------- .px: stepped-corner box ----------
   Two layers painted behind the content. ::before is the edge shape,
   ::after is the fill, inset by --bw. Both are clipped to the same stair.
   Set --edge, --fill, --u, --bw on the element. The element itself stays
   unclipped, so filter: drop-shadow() gives a hard, stepped offset shadow.
   .tile uses the same pattern (its markup is fixed, so it gets no class). */
.px, .tile {
  --edge: var(--line-2);
  --fill: var(--ink2);
  position: relative;
  isolation: isolate;
}
.px::before, .px::after,
.tile::before, .tile::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: background-color 0.16s ease;
  clip-path: polygon(
    0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u), calc(var(--u) * 2) 0,
    calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2),
    100% calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u) * 2) calc(100% - var(--u)), calc(100% - var(--u) * 2) 100%,
    calc(var(--u) * 2) 100%, calc(var(--u) * 2) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - var(--u) * 2), 0 calc(100% - var(--u) * 2)
  );
}
.px::before, .tile::before { inset: 0; background-color: var(--edge); }
.px::after, .tile::after { inset: var(--bw); background-color: var(--fill); }

/* ---------- .chip: small stepped button or link ---------- */
.chip {
  --u: 2px;
  --edge: var(--line-2);
  --fill: var(--ink2);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 36px;
  padding: 0 var(--s-4);
  border: 0;
  background: none;
  color: var(--dim);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chip:hover { --edge: var(--dim); color: var(--bone); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"], .chip.on { --edge: var(--gold); --fill: var(--gold); color: var(--ink); }
.chip .n { font-size: 11px; opacity: 0.6; }

/* ---------- .marble: stone fill for a .px box ----------
   Paints on the ::after fill layer, so it keeps the stepped corners. Hard
   1-2px veins cut across the top-left and bottom-right corners, away from
   the text; one soft band clouds the middle. Gradients only, no images. */
/* NOTE: .frame (piece pages) is marble by default, so pieces made from any
   template get it without a class. */
.marble, .frame { --edge: var(--marble-edge); --fill: var(--marble); color: var(--ink); }
.marble::after, .frame::after {
  background-image:
    linear-gradient(132deg, transparent 9%, var(--vein) 0, var(--vein) calc(9% + 2px), transparent 0),
    linear-gradient(139deg, transparent 12%, var(--vein-2) 0, var(--vein-2) calc(12% + 1px), transparent 0),
    linear-gradient(127deg, transparent 91%, var(--vein-gold) 0, var(--vein-gold) calc(91% + 1px), transparent 0),
    linear-gradient(135deg, transparent 93.5%, var(--vein) 0, var(--vein) calc(93.5% + 2px), transparent 0),
    linear-gradient(121deg, transparent 38%, rgba(201, 191, 166, 0.22) 50%, transparent 63%),
    radial-gradient(70% 90% at 80% 12%, rgba(244, 239, 226, 0.7), transparent 70%),
    radial-gradient(60% 80% at 8% 96%, rgba(168, 156, 128, 0.18), transparent 70%);
  box-shadow: inset 2px 2px 0 var(--marble-hi), inset -2px -2px 0 rgba(168, 156, 128, 0.45);
}
.marble a { color: var(--bronze); }
.marble a:hover { color: var(--ink); }
.marble :focus-visible { outline-color: var(--ink); }
.marble ::selection { background: var(--ink); color: var(--marble); }

/* ---------- the meander: a pixel Greek key, 2px grid, 12 x 10 per unit ----------
   Five gradient layers: top, post, right, hook, base rule. Solid color so
   overlaps do not darken. Used three times only: under the scrolled top bar,
   above the collection, above the footer. */
.bar .links::after, .board::after, footer::before {
  background:
    linear-gradient(90deg, var(--key) 10px, transparent 0) 0 0 / 12px 2px repeat-x,
    linear-gradient(90deg, var(--key) 2px, transparent 0) 0 0 / 12px 10px repeat-x,
    linear-gradient(90deg, transparent 8px, var(--key) 0, var(--key) 10px, transparent 0) 0 0 / 12px 6px repeat-x,
    linear-gradient(90deg, transparent 4px, var(--key) 0, var(--key) 10px, transparent 0) 0 4px / 12px 2px repeat-x,
    linear-gradient(var(--key), var(--key)) 0 8px / 100% 2px no-repeat;
}

/* ---------- top bar ---------- */
.bar {
  --u: 3px;
  --fill: rgba(21, 21, 27, 0.8);
  position: fixed;
  z-index: 50;
  top: var(--s-3);
  left: 0;
  right: 0;
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  height: var(--bar-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0 var(--s-2) 0 var(--s-4);
}
.bar::after { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar.is-clear { --edge: transparent; --fill: transparent; }
.bar.is-clear::after { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* NOTE: the bar's own ::before/::after are its stepped edge and fill, so the
   meander hangs off .links (absolute, so it positions against the fixed bar). */
.bar .links::after {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  left: calc(var(--u) * 2);
  right: calc(var(--u) * 2);
  height: 10px;
  pointer-events: none;
}
.bar.is-clear .links::after { visibility: hidden; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--bone);
  text-decoration: none;
  font: 600 15px/1 var(--mono);
  letter-spacing: 0.2em;
}
.brand:hover { color: var(--gold); }
.mark { display: block; width: 32px; height: 18px; shape-rendering: crispEdges; }
.links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.links a:not(.chip) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--s-3);
  color: var(--dim);
  font: 500 13px/1 var(--mono);
  text-decoration: none;
}
.links a:not(.chip):hover { color: var(--bone); }
.links .chip { color: var(--bone); }
.links .chip:hover { --edge: var(--gold); color: var(--gold); }
@media (max-width: 420px) {
  .bar { padding: 0 var(--s-1) 0 var(--s-3); }
  .links a:not(.chip) { padding: 0 var(--s-2); }
  .links .chip { padding: 0 var(--s-3); }
}
@media (max-width: 359px) {
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--mono);
  line-height: 1.7;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to bottom, rgba(16, 16, 20, 0), var(--ink));
  pointer-events: none;
}
#dust {
  position: absolute;
  inset: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.25rem;
}
.hero-cloud {
  width: min(300px, 64vw);
  height: auto;
  shape-rendering: crispEdges;
  animation: hover 6s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  margin: 1.5rem 0 0.5rem;
}
.hero .tag {
  color: var(--dim);
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}
.scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  text-decoration: none;
  font-size: 1.5rem;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll:hover { color: var(--gold); }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- section headings: serif, tight. Meta stays mono. ---------- */
.about h2, .board h2, .view-head h1, .view-missing .say {
  margin: 0;
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

/* ---------- about: the author ----------
   One marble slab. The author stands beside the text at an integer scale,
   feet over the slab's bottom edge, with a pixel outline so cream reads
   on bone. */
.about {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto;
  padding: clamp(var(--s-8), 9vw, var(--s-10)) 0 clamp(var(--s-8), 9vw, var(--s-10));
}
.gate {
  --u: 4px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
  padding: clamp(var(--s-6), 5vw, var(--s-8)) clamp(var(--s-6), 5vw, var(--s-9));
  filter: drop-shadow(8px 8px 0 var(--shadow));
}
.seal {
  display: block;
  width: 270px;   /* 5x the native 54px grid */
  height: 280px;
  image-rendering: pixelated;
  filter:
    drop-shadow(5px 0 0 var(--ink)) drop-shadow(-5px 0 0 var(--ink))
    drop-shadow(0 5px 0 var(--ink)) drop-shadow(0 -5px 0 var(--ink))
    drop-shadow(10px 10px 0 rgba(16, 16, 20, 0.22));
}
.gate-text { min-width: 0; }
.about .gate h2 {
  color: var(--ink);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.gate p {
  margin: var(--s-5) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
}
.gate p.maxim { font-style: italic; color: var(--marble-ink); }
@media (max-width: 820px) {
  .gate {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--s-6);
    padding: clamp(var(--s-6), 6vw, var(--s-8)) clamp(var(--s-5), 5vw, var(--s-7));
  }
  .seal {
    width: 216px;   /* 4x */
    height: 224px;
    filter:
      drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink))
      drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink))
      drop-shadow(8px 8px 0 rgba(16, 16, 20, 0.22));
  }
}

/* the author's mark: footer sign-off and the missing state in the frame */
.sig {
  display: block;
  width: 54px;
  height: 56px;
  margin: 0 auto var(--s-3);
  image-rendering: pixelated;
  opacity: 0.9;
}

/* ---------- collection ---------- */
.board {
  position: relative;
  isolation: isolate;
  padding: clamp(var(--s-8), 8vw, 112px) var(--gutter) clamp(var(--s-9), 10vw, var(--s-10));
}
.board::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--maxw);
  height: 10px;
  margin: 0 auto;
  pointer-events: none;
}
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: conic-gradient(at 2px 2px, transparent 75%, var(--line-2) 0);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 160px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 160px, #000 calc(100% - 160px), transparent);
}
.board > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.board-head .sub {
  margin-top: var(--s-4);
  margin-bottom: 0;
  color: var(--dim);
  font-size: 1.0625rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  margin-bottom: var(--s-7);
}
.search {
  --u: 2px;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: 0 1 20rem;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s-1) 0 14px;
  color: var(--dim);
}
.search:focus-within { --edge: var(--gold); color: var(--gold); }
.search .icon { flex: none; width: 14px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }
#q {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: 15px var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#q::placeholder { color: var(--dim); }
#q::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search .clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  cursor: pointer;
}
.search .clear:hover { color: var(--gold); }
.search .clear svg { width: 10px; height: 10px; fill: currentColor; shape-rendering: crispEdges; }
#chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.count {
  margin: 0 0 0 auto;
  color: var(--dim);
  font: 13px/1 var(--mono);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .search { flex: 1 1 100%; }
  .count { margin-left: 0; width: 100%; }
}

/* tiles. Markup is a fixed contract (AGENTS.md); style it, never change it. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(var(--s-5), 2.6vw, 36px);
}
.tile {
  display: flex;
  flex-direction: column;
  padding: var(--bw);
  color: var(--bone);
  text-decoration: none;
  filter: drop-shadow(4px 4px 0 var(--line));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
a.tile:hover, a.tile:focus-visible {
  --edge: var(--gold);
  transform: translate(-4px, -4px);
  filter: drop-shadow(8px 8px 0 var(--gold));
}
a.tile:active {
  transform: translate(0, 0);
  filter: drop-shadow(2px 2px 0 var(--gold));
  transition-duration: 0.06s;
}
a.tile:focus-visible { outline: none; }
.tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
  background: var(--ink);
  border-bottom: var(--bw) solid var(--line-2);
  clip-path: polygon(
    0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u), calc(var(--u) * 2) 0,
    calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2),
    100% 100%, 0 100%
  );
}
.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-4) 18px 18px;
}
.tile-meta .t {
  color: var(--gold);
  font: 600 12px/1.3 var(--mono);
  letter-spacing: 0.08em;
}
.tile-meta .s {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.tile-meta .d {
  color: var(--dim);
  font: 12px/1.3 var(--mono);
}
.tile.text { --fill: var(--surface); }
.tile.text .tile-text {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--s-6) var(--s-5) var(--s-2);
}
.tile.text .tile-text { flex-direction: column; justify-content: center; align-items: stretch; gap: 0.6em; }
.tile.text .tile-text p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
#empty {
  padding: var(--s-8) 0;
  color: var(--dim);
  font: 14px/1.6 var(--mono);
  text-align: center;
}
#empty .chip { margin-left: var(--s-2); }

/* ---------- footer (colophon) ---------- */
footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto;
  padding: calc(10px + var(--s-6)) 0 var(--s-7);
  position: relative;
  color: var(--dim);
  font: 13px/1.7 var(--mono);
  text-align: center;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
}
footer p { margin: 0; }

/* ---------- piece page (pieces/week-NN.html) ---------- */
.piece-page {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(var(--s-7), 7vw, var(--s-9))) 0 clamp(var(--s-8), 8vw, var(--s-9));
}
.weeklabel {
  margin: 0 0 var(--s-5);
  color: var(--gold);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
}
.piece-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}
.frame {
  --u: 4px;
  margin: 0;
  padding: clamp(10px, 1.4vw, 16px);
  filter: drop-shadow(8px 8px 0 var(--shadow));
}
.frame img, .piece img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.frame img {
  clip-path: polygon(
    0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u), calc(var(--u) * 2) 0,
    calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2),
    100% calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u) * 2) calc(100% - var(--u)), calc(100% - var(--u) * 2) 100%,
    calc(var(--u) * 2) 100%, calc(var(--u) * 2) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - var(--u) * 2), 0 calc(100% - var(--u) * 2)
  );
}
.piece-text { container-type: inline-size; }
.haiku {
  margin: 0;
  padding-left: var(--s-5);
  border-left: var(--bw) solid var(--gold);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  font-size: clamp(1.25rem, 7cqi, 2.25rem);  /* one haiku line, one visual line */
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.haiku p { margin: 0 0 0.3em; }
.haiku p:last-child { margin-bottom: 0; }
.newsline {
  margin: var(--s-6) 0 0;
  max-width: 44ch;
  color: var(--dim);
  font-size: 0.9375rem;
}
.more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-6) 0 0;
}
.more .chip { color: var(--bone); }
.more .chip:hover { --edge: var(--gold); color: var(--gold); }
@media (max-width: 900px) {
  .piece-body { grid-template-columns: minmax(0, 1fr); }
}
/* older piece pages without .piece-page still get a sane column */
main:not(.piece-page) > .piece, main:not(.piece-page) > .more {
  width: min(calc(100% - 2 * var(--gutter)), 56rem);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- view.html: one experiment, framed ----------
   Exactly one viewport tall. The iframe scrolls itself; the page never does. */
body.view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.view-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--s-3) + var(--bar-h) + 10px + var(--s-4));
}
.view-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto var(--s-3);
}
.view-head h1 {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view-links { display: flex; gap: var(--s-2); margin: 0; }
.view-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  border-top: var(--bw) solid var(--line);
}
#view-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ink);
}
.view-missing {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin: 0 auto;
  padding: var(--s-8) 0;
}
.view-missing .say { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; }
.view-missing p { margin: var(--s-5) 0 0; }
.view-missing ul { margin: var(--s-4) 0 0; padding: 0; list-style: none; font: 15px/2 var(--mono); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cloud, .scroll { animation: none; }
  .tile, .chip, .px::before, .px::after, .tile::before, .tile::after { transition: none; }
}
