/* daslogma: the mutableworlds garden grid (rail · copy · margin notes), at night,
   continuing the spring above it. */
* { box-sizing: border-box; }
:root {
  --night: #03060c; --ink: #e6e0d2; --muted: #8494a8; --faint: #4f5d70;
  --sodium: #ffb54d; --sky: #8fb5e6; --line: #1a2433;
  --mono: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --tibetan: 'Noto Serif Tibetan', 'Kailasa', serif;
}
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink); font: 19px/1.62 var(--serif); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #4a5a70; }
a:hover { color: var(--sodium); }
::selection { background: #3a2a10; color: #fff2da; }

#hero { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 520px; background: #000; overflow: hidden; }
#glass { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--night)); pointer-events: none; }
.fallback { position: absolute; left: 7%; bottom: 20%; max-width: 32em; }

.garden { max-width: 1120px; margin: 0 auto; padding: 96px 34px 90px; display: grid; grid-template-columns: 140px minmax(0, 520px) 200px; column-gap: 60px; align-items: start; }
.rail { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 42px; font: 13px/1.8 var(--mono); }
.rail .name { display: inline-block; margin-bottom: 30px; text-decoration: none; color: var(--sodium); letter-spacing: .04em; }
.rail nav { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.rail nav a { color: var(--muted); text-decoration: none; }
.rail nav a:hover { color: var(--ink); }
.rail .small-print { margin-top: 60px; color: var(--faint); font-size: 11px; line-height: 1.8; }
.content { grid-column: 2 / 4; min-width: 0; }
.block { display: grid; grid-template-columns: minmax(0, 520px) 200px; gap: 0 60px; margin-bottom: 56px; align-items: start; }
.copy { grid-column: 1; min-width: 0; }
.note { grid-column: 2; font: 13px/1.65 var(--mono); color: var(--muted); padding-top: 42px; }
.note p { margin: 0 0 10px; }
.note .mark { display: block; color: var(--sodium); margin-bottom: 8px; text-decoration: none; }
.note .bo { font: 17px/1.9 var(--tibetan); color: var(--sodium); }
.note:target { color: var(--ink); }
h1, h2, p { margin: 0; }
p + p { margin-top: 16px; }
.kicker { font: 12px var(--mono); color: var(--faint); letter-spacing: .06em; margin-bottom: 14px; }
h1 { font-weight: 400; font-size: 34px; line-height: 1.3; margin-bottom: 10px; }
h1 .bo { display: block; font: 30px/1.8 var(--tibetan); color: var(--sodium); }
.byline { font: 13px var(--mono); color: var(--sky); }
h2 { font: 13px/1.6 var(--mono); color: var(--sky); margin-bottom: 16px; font-weight: normal; letter-spacing: .03em; }
sup { font: 11px var(--mono); vertical-align: super; margin-left: 3px; }
sup a { text-decoration: none; color: var(--sodium); }
em { color: #fff3dc; }
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { margin-bottom: 18px; }
.entries a { color: var(--sodium); text-decoration: none; }
.entries a:hover { text-decoration: underline; }
.entries .sub { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
.foot { margin-top: 80px; font: 12px/1.8 var(--mono); color: var(--faint); max-width: 520px; }
.foot .bo.big { font: 26px/1.8 var(--tibetan); color: var(--sodium); margin-bottom: 12px; }

@media (max-width: 1000px) and (min-width: 761px) {
  .garden { grid-template-columns: 110px minmax(0, 1fr) 160px; column-gap: 32px; padding-left: 28px; padding-right: 28px; }
  .block { grid-template-columns: minmax(0, 1fr) 160px; column-gap: 32px; }
}
@media (max-width: 760px) {
  .garden { display: block; padding: 40px 22px 60px; }
  .rail { position: static; display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 44px; }
  .rail nav { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .rail .small-print { display: none; }
  .block { display: block; margin-bottom: 44px; }
  .note { padding: 0 0 0 14px; border-left: 1px solid var(--line); margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ───────────────────────── Texture studies (2026-09-29): ?v=a | b | c ─────────────────────────
   Baraduc's plates (public/baraduc/, from the Public Domain Image Archive) as the page's material.
   Shared: warm silver-dark instead of night blue; ink like old silver; sodium only for her Tibetan. */
body.v-a, body.v-b, body.v-c {
  --night: #0d0c0a; --ink: #d9d3c4; --muted: #8d877a; --faint: #5c574e; --sky: #a9a292; --line: #2a2722;
  background: var(--night); color: var(--ink);
}
body.v-a .rail .name, body.v-b .rail .name, body.v-c .rail .name { color: var(--ink); }
body.v-a .note .mark, body.v-b .note .mark, body.v-c .note .mark, body.v-a sup a, body.v-b sup a, body.v-c sup a { color: var(--muted); }
body.v-a .entries a, body.v-b .entries a, body.v-c .entries a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.grain { position: fixed; inset: -10vh 0; pointer-events: none; z-index: 1; display: none; }
.content, .rail { position: relative; z-index: 2; }

/* A · Xerox, lightly: typewriter, crushed blacks, halftone speckle, uneven tone, glyph edges a hair rough */
body.v-a { font: 17px/1.62 'Courier Prime', 'Courier New', monospace; }
body.v-a h1 { font: 700 30px/1.25 'Courier Prime', monospace; letter-spacing: -.01em; }
body.v-a h2, body.v-a .note, body.v-a .rail, body.v-a .byline, body.v-a .kicker, body.v-a .foot { font-family: 'Courier Prime', monospace; }
body.v-a .content, body.v-a .rail { filter: url(#xerox); }
body.v-a .grain { display: block; background: url(public/baraduc/grain-tile.jpg) repeat; background-size: 520px;
  opacity: .5; mix-blend-mode: soft-light; filter: contrast(1.9) grayscale(1); }
body.v-a .garden { background:
  radial-gradient(60% 40% at 18% 22%, rgba(255,248,230,.035), transparent 70%),
  radial-gradient(50% 35% at 82% 64%, rgba(0,0,0,.35), transparent 70%),
  radial-gradient(40% 30% at 40% 90%, rgba(255,248,230,.03), transparent 70%); }

/* B · The paper itself: a grotesque with character over his speckle, the emulsion drifting as you scroll */
body.v-b { font: 18px/1.62 'Instrument Sans', system-ui, sans-serif; }
body.v-b h1 { font: 500 34px/1.2 'Instrument Sans', sans-serif; letter-spacing: -.02em; }
body.v-b h2, body.v-b .note, body.v-b .rail, body.v-b .byline, body.v-b .kicker, body.v-b .foot { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 12px; }
body.v-b .note { font-size: 12px; }
body.v-b .grain { display: block; background: url(public/baraduc/grain-tile.jpg) repeat; background-size: 700px;
  opacity: .42; mix-blend-mode: soft-light; filter: grayscale(1) contrast(1.2); will-change: transform; }

/* C · The seam: mono voice; the spring's night dissolves into his plate; the globes plate as a figure */
body.v-c { font: 15px/1.75 'Space Mono', ui-monospace, monospace; }
body.v-c h1 { font: 500 36px/1.15 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
body.v-c h2 { font: 500 13px/1.6 'Space Grotesk', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* the seam straddles the hero's bottom: the spring's night thins into his plate, and the plate into the page */
.seam { display: none; position: relative; z-index: 3; height: 90vh; margin: -45vh 0 -45vh; pointer-events: none;
  background: url(public/baraduc/plate-grain.jpg) center 35% / cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 55%, transparent 100%);
  mix-blend-mode: screen; opacity: .22; filter: grayscale(1) sepia(.3) contrast(1.25) brightness(.8); }
body.v-c .seam { display: block; }
body.v-c .grain { display: block; background: url(public/baraduc/grain-tile.jpg) repeat; background-size: 600px; opacity: .3; mix-blend-mode: soft-light; filter: grayscale(1); }
.plate { display: none; margin: 34px 0 6px; }
body.v-c .plate { display: block; }
.plate img { width: 100%; display: block; filter: grayscale(1) sepia(.2) contrast(1.05) brightness(.92); }

.study-switch { position: fixed; right: 16px; bottom: 16px; z-index: 10; font: 12px var(--mono); display: flex; gap: 6px; }
.study-switch a { padding: 4px 9px; border: 1px solid #3a372f; color: #a9a292; text-decoration: none; background: rgba(13,12,10,.8); }
.study-switch a.on { color: #0d0c0a; background: #d9d3c4; }

/* M · the mix: C's seam and plate, B's paper and reading face, C's headings */
body.v-m { --night: #0d0c0a; --ink: #d9d3c4; --muted: #8d877a; --faint: #5c574e; --sky: #a9a292; --line: #2a2722;
  background: var(--night); color: var(--ink); font: 18px/1.64 'Instrument Sans', system-ui, sans-serif; }
body.v-m .rail .name { color: var(--ink); }
body.v-m .note .mark, body.v-m sup a { color: var(--muted); }
body.v-m .entries a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
body.v-m h1 { font: 500 36px/1.15 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
body.v-m h2 { font: 500 12.5px/1.6 'Space Grotesk', sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
body.v-m .note, body.v-m .rail, body.v-m .byline, body.v-m .kicker, body.v-m .foot { font-family: 'Space Mono', ui-monospace, monospace; font-size: 12px; }
body.v-m .grain { display: block; background: url(public/baraduc/grain-tile.jpg) repeat; background-size: 700px;
  opacity: .42; mix-blend-mode: soft-light; filter: grayscale(1) contrast(1.2); will-change: transform; }
body.v-m .seam, body.v-m .plate { display: block; }
