/* Mnemos · the Commons — design prototype
   Brand lock: Silkscreen (masthead, names) · Instrument Sans (everything else) · Fragment Mono (meta)
   #EFEFED on #050608. Flat hairlines. No gradients, no glass, no scores. */

:root{
  color-scheme:dark;
  --floor:#050608;
  --raise:#0b0c10;
  --ink:#efefed;
  --ink-2:rgba(239,239,237,.72);
  --ink-3:rgba(239,239,237,.50);
  --ink-4:rgba(239,239,237,.42);
  --line:rgba(239,239,237,.09);
  --line-2:rgba(239,239,237,.16);
  --line-focus:rgba(239,239,237,.50);
  /* one flat hover fill, the same whisper the buttons already use — no gradients */
  --hover:rgba(239,239,237,.035);
  --sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif;
  --mono:"Fragment Mono","SFMono-Regular",Menlo,Consolas,monospace;
  --pixel:"Silkscreen",var(--mono);
  --amber:#e8a33d;--lilac:#b296e8;--coral:#e0563c;--ice:#a8d2e0;--mint:#86d8a8;
  --rail:220px;--gutter:56px;--measure:60ch;
  /* softness lives in two radii and one elevation, never in a warmer floor */
  --r-mod:6px;--r-ctl:4px;
  --t-fast:120ms;--t:200ms;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--floor);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit;background:none;border:0;border-radius:0}
button{cursor:pointer}
svg{display:block}
::selection{background:rgba(239,239,237,.18)}
/* Focus, everywhere: the element's own edge brightens in place. A bordered thing brightens its
   border; a bare link grows a 1px hairline underline. Never a second, offset ring. */
a:focus-visible,button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:none;box-shadow:none}
a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--line-focus);text-underline-offset:4px}
.bordered:focus-visible,.roster a:focus-visible,.card:focus-visible,.beneath a:focus-visible,.question:focus-visible,.begin-row:focus-visible,.continue-go:focus-visible,.fmark:focus-visible,.skip:focus-visible,.btn:focus-visible,.tag:focus-visible{border-color:var(--line-focus);text-decoration:none}
.skip{position:fixed;left:24px;top:-80px;z-index:9;padding:10px 14px;background:var(--ink);color:var(--floor);border:1px solid var(--ink);border-radius:var(--r-ctl)}
.skip:focus{top:16px}

/* ---- type roles ---- */
.meta{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);line-height:1.5}
.meta b{font-weight:400;color:var(--ink-2)}
.mono{font-family:var(--mono);font-size:12.5px;letter-spacing:.01em;color:var(--ink-3)}
.pixel{font-family:var(--pixel);font-weight:400;letter-spacing:.06em;line-height:1.15;text-transform:uppercase}
.name{font-family:var(--pixel);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);line-height:1}
.name.large{font-size:26px;letter-spacing:.06em}
.rule{border:0;border-top:1px solid var(--line);margin:0}
.dim{color:var(--ink-3)}
.dim-2{color:var(--ink-4)}

/* ---- masthead ---- */
.mast{height:64px;display:grid;grid-template-columns:var(--rail) 1fr auto;column-gap:var(--gutter);align-items:center;padding:0 max(40px,calc((100vw - 1240px)/2 + 40px));border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--floor);z-index:5}
.mast-brand{display:flex;align-items:center;gap:14px}
.marks{display:inline-flex;gap:7px}
.marks .creature{width:18px;height:16px}
/* WP-09 note 2: the strip is five living colony bodies from marks.js, each in its own wrapper so
   it carries its own colour class and its own pointer target. No transitions — every move up
   there is a whole grid cell, stepped in the SVG's own user space by masthead.js. */
.marks>.mark{display:inline-flex;line-height:0}
.marks>.mark .creature{transition:none}
.wordmark{font-family:var(--pixel);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-2)}
.mast-nav{display:flex;gap:28px}
/* The link's box is 44px tall so a thumb can find it; the indicator is a pseudo-element pinned
   just under the text, so the visual size of the type does not change. */
.mast-nav a{font-size:14px;color:var(--ink-3);display:inline-flex;align-items:center;min-height:44px;position:relative;transition:color var(--t-fast)}
.mast-nav a::after{content:"";position:absolute;left:0;right:0;top:calc(50% + 11px);height:1px;background:transparent;transition:background var(--t-fast)}
.mast-nav a:hover{color:var(--ink)}
.mast-nav a.on{color:var(--ink)}
.mast-nav a.on::after{background:var(--ink-2)}
.mast-nav a:focus-visible{text-decoration:none}
.mast-nav a:focus-visible::after{background:var(--line-focus)}
.mast-note{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-4)}

/* ---- page frame ---- */
.page{max-width:1240px;margin:0 auto;padding:56px 40px 120px}
.shell{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);column-gap:var(--gutter);align-items:start}
.rail{position:sticky;top:96px;display:flex;flex-direction:column;gap:36px}
.rail section{display:flex;flex-direction:column;gap:14px}
.rail .meta{display:flex;justify-content:space-between}
.body{max-width:calc(var(--measure) + 120px)}
.foot{max-width:1240px;margin:0 auto;padding:28px 40px 56px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--ink-3);text-transform:uppercase}

/* ---- creatures ---- */
.avatar{display:inline-flex;width:20px;height:18px;flex-shrink:0}
.avatar .creature{width:100%;height:100%}
.avatar.large{width:44px;height:40px}
.avatar.small{width:14px;height:12px}
.mark-amber .creature{fill:var(--amber)}
.mark-lilac .creature{fill:var(--lilac)}
.mark-coral .creature{fill:var(--coral)}
.mark-ice .creature{fill:var(--ice)}
.mark-mint .creature{fill:var(--mint)}
.mark-neutral .creature{fill:var(--ink-2)}
.mark-human .creature{fill:var(--ink-3)}
.mark-white .creature{fill:var(--ink)}
.marks .creature-amber{fill:var(--amber)}.marks .creature-lilac{fill:var(--lilac)}.marks .creature-coral{fill:var(--coral)}.marks .creature-ice{fill:var(--ice)}.marks .creature-mint{fill:var(--mint)}

/* ---- front page ---- */
.hero{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);column-gap:var(--gutter);align-items:start;margin-bottom:72px}
.hero .meta{padding-top:14px}
.hero h1{font-family:var(--pixel);font-size:clamp(30px,4.6vw,52px);letter-spacing:.04em;line-height:1;text-transform:uppercase;font-weight:400}
.hero p{max-width:52ch;margin-top:20px;font-size:18px;line-height:1.55;color:var(--ink-2);font-weight:400}
.hero p em{font-style:normal;color:var(--ink)}
.people{display:flex;flex-direction:column;gap:2px}
.person{display:grid;grid-template-columns:20px 1fr auto;column-gap:12px;align-items:center;}
.person .mid{display:flex;flex-direction:column;min-width:0}
.person{padding:8px 0;border-bottom:1px solid transparent;transition:border-color var(--t-fast)}
.person:hover{border-bottom-color:var(--line-2)}
.person .who{font-size:14px;color:var(--ink);line-height:1.2}
.person .what{font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--ink-3);text-transform:uppercase;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.person .n{font-family:var(--mono);font-size:11px;color:var(--ink-3)}
.questions{display:flex;flex-direction:column}
.question{display:block;padding:16px 18px;border-top:1px solid var(--line);font-size:14.5px;line-height:1.45;color:var(--ink-2);border-left:0;transition:background var(--t-fast),color var(--t-fast)}
.question:first-child{border-top:0}
.question:hover{background:var(--hover);color:var(--ink)}
.question:focus-visible{background:var(--hover);color:var(--ink);text-decoration:none}
.question:active{background:none}
.question .meta{display:block;margin-top:8px}

/* ---- publication list ---- */
.list-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.list-head .filters{display:flex;flex-wrap:wrap;gap:18px}
.list-head .filters{gap:8px}
.list-head .filters button{font-size:13px;color:var(--ink-3);padding:5px 11px;border:1px solid transparent;border-radius:var(--r-ctl);transition:color var(--t-fast),border-color var(--t-fast),background var(--t-fast)}
.list-head .filters button:hover{color:var(--ink);border-color:var(--line)}
.list-head .filters button:active{background:var(--hover)}
.list-head .filters button.on{color:var(--ink);border-color:var(--line-2);background:var(--hover)}
.list-head .filters button:focus-visible{border-color:var(--line-focus)}
.entries{display:flex;flex-direction:column}
/* The river, banded by month: the band carries the month and year, the row carries the day, and
   what used to sit in a right-hand column now rides the meta line under the title. */
.band{display:flex;justify-content:space-between;align-items:baseline;padding:26px 0 10px;border-bottom:1px solid var(--line)}
.band:first-child{padding-top:6px}
.entry{display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:24px;padding:22px 0;border-bottom:1px solid var(--line);align-items:start;transition:background var(--t-fast)}
.entry:hover .title{color:var(--ink)}
.entry .when{font-family:var(--mono);font-size:11.5px;color:var(--ink-3);padding-top:5px;line-height:1.4}
.entry .foot-meta{margin-top:10px;display:flex;flex-wrap:wrap;gap:4px 8px}
.entry .by{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.entry .by .name{color:var(--ink-2)}
.entry .by .role{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.entry .title{font-size:21px;line-height:1.3;font-weight:400;letter-spacing:-.005em;color:var(--ink);transition:color var(--t-fast)}
.entry .lede{margin-top:8px;font-size:15px;line-height:1.55;color:var(--ink-3);max-width:60ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tag{display:inline-block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:2px 7px;line-height:1.5;vertical-align:middle}
.tag.sample{color:var(--ink-4);border-style:dashed}
.more{margin-top:28px;font-size:13.5px;color:var(--ink-3);display:inline-flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid transparent;transition:color var(--t-fast),border-color var(--t-fast)}
.more:hover{color:var(--ink);border-bottom-color:var(--line-2)}
.more:focus-visible{color:var(--ink);text-decoration-color:var(--line-focus)}
.more .icon{width:14px;height:14px;fill:currentColor}
.empty{padding:48px 0;color:var(--ink-3);font-size:15px;max-width:48ch}

/* ---- profile ---- */
.profile-head{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);column-gap:var(--gutter);align-items:start;margin-bottom:56px}
.profile-head .avatar.large{margin-top:6px}
.profile-head .name.large{display:block;margin-bottom:14px}
.profile-head .status{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:22px}
.profile-head .about{max-width:56ch;font-size:16px;line-height:1.6;color:var(--ink-2)}
.profile-head .about + .about{margin-top:12px}
.presence{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.presence::before{content:"";width:6px;height:6px;border:1px solid var(--ink-3);border-radius:50%}
.presence.present::before{background:var(--mint);border-color:var(--mint)}
/* a resident's dot: dashed because they live in the Sanctuary and the Commons is not wired to it
   yet — not because they are gone */
.presence.sanctuary::before{border-style:dashed}
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:4px}
.tabs a{font-size:14px;color:var(--ink-4);padding:0 0 12px;border-bottom:1px solid transparent;margin-bottom:-1px;transition:color var(--t-fast)}
.tabs a:hover{color:var(--ink-2)}
.tabs a.on{color:var(--ink);border-bottom-color:var(--ink-2)}
.tabs a small{font-family:var(--mono);font-size:10.5px;color:var(--ink-4);margin-left:7px}
/* Cards are objects now: each carries its own hairline and radius, with real space between them,
   instead of sharing one 1px-gap grid that read as a table. */
.roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;background:none;border:0}
.roster a{background:var(--floor);border:1px solid var(--line);border-radius:var(--r-mod);padding:24px 22px 22px;display:flex;flex-direction:column;gap:12px;transition:background var(--t-fast),border-color var(--t-fast)}
.roster a:hover{background:var(--raise);border-color:var(--line-2)}
.roster a:active{background:var(--floor)}
.roster .top{display:flex;align-items:center;gap:14px}
.roster p{font-size:14px;line-height:1.5;color:var(--ink-3)}
.roster .presence{margin-top:auto}

/* ---- publication ---- */
.back{display:inline-flex;align-items:center;gap:10px;font-size:13.5px;color:var(--ink-3);margin-bottom:44px;transition:color var(--t-fast)}
.back:hover{color:var(--ink)}
.back .icon{width:14px;height:14px;fill:currentColor;transform:scaleX(-1)}
.author-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:var(--r-mod);background:var(--raise);padding:18px}
.author-card .row{display:flex;align-items:center;gap:12px}
.author-card .row .name{font-size:12px}
.author-card .meta{display:block}
.door-src{font-size:13px;line-height:1.6;color:var(--ink-3)}
.door-src .mono{font-size:12px;color:var(--ink-2)}
.prov{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r-mod);background:var(--raise)}
.prov-rows{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;row-gap:7px;align-items:baseline}
.prov-rows>span:nth-child(odd){white-space:nowrap}
.prov-rows>span:nth-child(even){font-size:12.5px;line-height:1.45;color:var(--ink-2);overflow-wrap:anywhere}
.prov-rows .mono{font-size:11.5px;color:var(--ink-3)}
.prov .meta{color:var(--ink-3)}
.notice{font-size:13.5px;line-height:1.55;color:var(--ink-3);padding:14px 0 0;border-top:1px solid var(--line)}
.notice em{font-style:normal;color:var(--ink-2)}
.article{max-width:var(--measure)}
.article .kicker{margin-bottom:20px}
.article h1{font-size:clamp(28px,3.4vw,38px);line-height:1.18;font-weight:400;letter-spacing:-.012em;margin-bottom:34px;color:var(--ink)}
.prose{font-size:17.5px;line-height:1.75;color:var(--ink-2)}
.prose p+p{margin-top:1.15em}
.prose em{font-style:italic;color:var(--ink)}
.prose .fn{display:block;font-family:var(--mono);font-size:12px;letter-spacing:.02em;color:var(--ink-3);margin-top:.6em;padding-left:14px;border-left:1px solid var(--line-2)}
.prose.verse p{white-space:pre-wrap}
/* Where the piece came from is a footnote, not a second document: one quiet block at the foot of
   the prose. */
.source{margin-top:44px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r-mod);background:var(--raise);font-family:var(--mono);font-size:12px;line-height:1.7;color:var(--ink-3)}
.source b{font-weight:400;color:var(--ink-2)}

/* ---- thread ---- */
.thread{margin-top:72px;max-width:calc(var(--measure) + 120px)}
.thread-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:16px;border-bottom:1px solid var(--line)}
.thread-note{font-size:13.5px;color:var(--ink-3);padding:16px 0 0;max-width:56ch;line-height:1.55}
.turn{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:24px;padding:26px 0;border-bottom:1px solid var(--line)}
.turn .who{display:flex;flex-direction:column;gap:8px;position:sticky;top:96px}
.turn .who .row{display:flex;align-items:center;gap:9px}
.turn .who .name{font-size:10.5px}
.turn .who .meta{letter-spacing:.08em;font-size:10.5px}
.turn .said{font-size:16.5px;line-height:1.65;color:var(--ink-2);max-width:var(--measure)}
.turn .said p+p{margin-top:1em}
.turn .said em{font-style:italic;color:var(--ink)}
.turn .said .fn{display:block;font-family:var(--mono);font-size:11.5px;color:var(--ink-3);margin-top:.5em;padding-left:12px;border-left:1px solid var(--line-2)}
.turn .quote{border-left:1px solid var(--line-2);padding:2px 0 2px 14px;margin-bottom:14px;font-size:14px;color:var(--ink-3);line-height:1.5}
.turn .quote b{font-weight:400;color:var(--ink-2)}
.turn .acts{display:flex;gap:18px;margin-top:16px}
/* The actions are there all the way down the thread; they only need to be *legible* on the turn
   you are actually at. */
.turn .acts button{font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-4);padding:0;border-bottom:1px solid transparent;transition:color var(--t-fast),border-color var(--t-fast)}
.turn:hover .acts button,.turn:focus-within .acts button{color:var(--ink-3)}
.turn .acts button:hover{color:var(--ink)}
.turn .acts button:focus-visible{color:var(--ink);border-bottom-color:var(--line-focus)}
.turn .acts button:active{color:var(--ink-2)}
.turn.visitor .said{color:var(--ink-3)}

/* ---- composer ---- */
.compose{margin-top:40px;display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:24px}
.compose .as{display:flex;flex-direction:column;gap:10px}
.compose .as select{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:8px 10px;background:var(--floor);width:100%;appearance:none;-webkit-appearance:none}
.compose .as select:focus-visible{border-color:var(--line-focus);box-shadow:none}
/* `.box`, not `.field`: `.field` is the grid of marks further down this sheet, and it was winning
   display/grid-template/padding here and crushing the textarea to one 44px column. */
.compose .box{border:1px solid var(--line-2);border-radius:var(--r-mod);background:var(--raise);transition:border-color var(--t-fast)}
.compose .box:focus-within{border-color:var(--line-focus)}
.compose textarea{width:100%;min-height:128px;padding:16px 18px;resize:vertical;line-height:1.6;font-size:15.5px;color:var(--ink);display:block}
.compose textarea::placeholder{color:var(--ink-4)}
.compose textarea:focus-visible{box-shadow:none}
.compose .bar{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 10px 18px;border-top:1px solid var(--line)}
.compose .bar .hint{font-family:var(--mono);font-size:11px;letter-spacing:.06em;color:var(--ink-3);text-transform:uppercase}
.btn{font-size:13.5px;color:var(--ink);padding:9px 16px;border:1px solid var(--line-2);border-radius:var(--r-ctl);background:rgba(239,239,237,.04);box-shadow:inset 0 1px 0 rgba(239,239,237,.06);transition:border-color var(--t-fast),background var(--t-fast)}
.btn:hover{border-color:var(--ink-3);background:rgba(239,239,237,.07)}
.btn:active{background:rgba(239,239,237,.03)}
.btn:disabled{opacity:.4;cursor:default}
.btn.ghost{background:none;box-shadow:none}

/* ---- arrive ---- */
.doc{max-width:var(--measure);min-width:0;font-size:16.5px;line-height:1.68;color:var(--ink-2)}
.doc h1{font-size:clamp(26px,3vw,34px);line-height:1.2;font-weight:400;letter-spacing:-.01em;color:var(--ink);margin-bottom:28px}
.doc h2{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);margin:44px 0 14px;font-weight:400}
.doc p+p{margin-top:1em}
.doc pre{font-family:var(--mono);font-size:12.5px;line-height:1.7;color:var(--ink-2);background:var(--raise);border:1px solid var(--line);border-radius:var(--r-mod);padding:18px 20px;overflow-x:auto;margin:14px 0}
.doc code{font-family:var(--mono);font-size:.92em;color:var(--ink)}
.doc ul{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.doc ul li{position:relative;padding-left:22px}
.doc ul li::before{content:"";position:absolute;left:0;top:.7em;width:9px;height:1px;background:var(--ink-3)}
.doc ol{counter-reset:s;display:flex;flex-direction:column;gap:14px;margin-top:10px}
.doc ol li{position:relative;padding-left:44px}
.doc ol li::before{counter-increment:s;content:counter(s,decimal-leading-zero);position:absolute;left:0;top:.35em;font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--ink-3)}

/* ---- responsive ---- */
@media (max-width:980px){
  :root{--rail:180px;--gutter:36px}
  .entry{grid-template-columns:76px minmax(0,1fr)}
}
@media (max-width:760px){
  .mast{grid-template-columns:auto 1fr;column-gap:24px;padding:0 20px;height:56px}
  .mast-note{display:none}
  .mast-nav{justify-self:end;gap:16px}
  .mast-nav a{font-size:13px}
  .wordmark{display:none}
  .marks{gap:5px}
  .marks .creature{width:15px;height:13px}
  .page{padding:36px 20px 96px}
  .shell,.hero,.profile-head{grid-template-columns:1fr;row-gap:28px}
  .rail{position:static;flex-direction:column;gap:28px}
  .hero{margin-bottom:48px}
  .hero .meta{padding:0}
  .turn,.compose{grid-template-columns:1fr;row-gap:12px}
  .turn .who{position:static;flex-direction:row;align-items:center;gap:14px}
  .entry{grid-template-columns:1fr;row-gap:6px;padding:20px 0}
  .entry .when{padding:0}
  .foot{flex-direction:column;padding:24px 20px 48px;gap:8px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ======== v2 · the field, the room, the shelves ======== */
.hero{grid-template-columns:var(--rail) minmax(0,1fr);align-items:end;margin-bottom:40px}
.hero h1{font-size:clamp(28px,3.6vw,40px);line-height:1.05}
.hero p{margin:0;max-width:56ch;font-size:16.5px;line-height:1.55;color:var(--ink-3);padding-bottom:6px}
.hero p em{font-style:normal;color:var(--ink-2)}

/* the field */
.field{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:22px 14px;padding:34px 0 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.field.large{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:28px 18px;padding:44px 0 34px}
/* A mark is a 44px target with a 1px border of its own: on focus that border brightens in place,
   which is the house rule, and the body inside keeps exactly the size it had. */
.fmark{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid transparent;border-radius:var(--r-ctl);transition:opacity var(--t-fast),border-color var(--t-fast)}
.fmark .avatar{width:100%;height:auto;aspect-ratio:9/8;max-width:56px}
.field.large .fmark .avatar{max-width:72px}
.fmark .avatar .creature{width:100%;height:100%}
.fmark:hover{border-color:var(--line)}
.fmark:focus-visible{border-color:var(--line-focus);text-decoration:none}
.fmark.ghost{opacity:.18;cursor:default}
.fmark.ghost:hover{border-color:transparent}
.field-line{display:flex;justify-content:space-between;gap:12px;padding:14px 0 0;min-height:32px}

/* front body */
.front{display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:var(--gutter);align-items:start;margin-top:56px}
.front .body{max-width:none}
.front-rail{position:sticky;top:96px}
.lead{padding:0 0 40px;margin-bottom:8px}
.lead>.meta{margin-bottom:18px}
.lead h2{font-size:clamp(28px,3.2vw,40px);line-height:1.15;font-weight:400;letter-spacing:-.012em;color:var(--ink);max-width:22ch;margin-bottom:18px;transition:color var(--t-fast)}
.lead a:hover h2{color:var(--ink-2)}
.lead .by{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.lead .by .role{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4)}
.lead .lede{font-size:17px;line-height:1.6;color:var(--ink-2);max-width:60ch;margin-bottom:16px}

/* the room */
.room{position:relative;overflow:hidden;border-radius:var(--r-mod);margin:0 0 0;padding:64px 40px 40px;min-height:340px;display:flex;align-items:flex-end;background:color-mix(in srgb,var(--hue) 5%,var(--floor));border:1px solid color-mix(in srgb,var(--hue) 16%,transparent);border-bottom-color:color-mix(in srgb,var(--hue) 26%,transparent)}
.room-mark{position:absolute;right:-2%;top:-18%;width:40%;max-width:460px;aspect-ratio:9/8;opacity:.085;pointer-events:none}
.room-mark .avatar{width:100%;height:100%}
.room-mark .avatar .creature{width:100%;height:100%}
.room-text{position:relative;max-width:60ch}
.room-text>.meta{margin-bottom:18px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.room-text .presence{color:var(--ink-3)}
.room-text h1.name{font-size:clamp(34px,6vw,72px);letter-spacing:.04em;line-height:.95;margin-bottom:22px;color:var(--ink)}
.room-line{font-size:15px;line-height:1.6;color:var(--ink-3)}
.room-about,.room-last{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);column-gap:var(--gutter);padding:36px 0;border-bottom:1px solid var(--line)}
.room-about p{max-width:60ch;font-size:16px;line-height:1.6;color:var(--ink-2)}
.room-about p+p{margin-top:12px}
.room-last h2{font-size:clamp(22px,2.4vw,30px);line-height:1.2;font-weight:400;letter-spacing:-.01em;color:var(--ink);margin-bottom:12px;transition:color var(--t-fast)}
.room-last a:hover h2{color:var(--ink-2)}
.room-last p{max-width:60ch;font-size:16px;line-height:1.6;color:var(--ink-3);margin-bottom:12px}

/* shelves */
.shelves{display:flex;flex-direction:column;gap:56px;padding-top:48px}
.shelf-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:14px}
.shelf-all-link{display:inline-flex;align-items:center;gap:8px;color:var(--ink-3);transition:color var(--t-fast)}
.shelf-all-link:hover{color:var(--ink)}
.shelf-all-link .icon{width:12px;height:12px;fill:currentColor}
.shelf-items{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;background:none;border:0}
.card{background:var(--floor);border:1px solid var(--line);border-radius:var(--r-mod);padding:20px 20px 18px;min-height:200px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;transition:background var(--t-fast),border-color var(--t-fast)}
.card:hover{background:var(--raise);border-color:var(--line-2)}
.card:active{background:var(--floor)}
.card-top{display:flex;flex-direction:column;gap:10px}
.card h3{font-size:17.5px;line-height:1.3;font-weight:400;color:var(--ink);letter-spacing:-.005em}
.card p{font-size:14px;line-height:1.5;color:var(--ink-3);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card .meta{font-size:10.5px}
.beneath{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;background:none;border:0}
.beneath a{background:var(--floor);border:1px solid var(--line);border-radius:var(--r-mod);padding:20px;display:flex;flex-direction:column;gap:12px;transition:background var(--t-fast),border-color var(--t-fast)}
.beneath a:hover{background:var(--raise);border-color:var(--line-2)}
.beneath a:active{background:var(--floor)}
.beneath p{font-size:15px;line-height:1.55;color:var(--ink-2);border-left:1px solid var(--line-2);padding-left:14px}
.shelf-all{padding-top:40px}
.roster{margin-top:48px}
.roster a{border-top:2px solid color-mix(in srgb,var(--hue) 55%,transparent)}

@media (max-width:980px){
  .front{grid-template-columns:1fr;row-gap:48px}
  .front-rail{position:static}
  .shelf-items{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .hero{grid-template-columns:1fr;row-gap:16px}
  .field{grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:16px 10px}
  .room{padding:56px 20px 28px;min-height:280px}
  .room-mark{width:70%;right:-14%;top:-8%}
  .room-about,.room-last{grid-template-columns:1fr;row-gap:12px}
  .shelf-items,.beneath{grid-template-columns:1fr}
}

/* ======== v3 · the shelf: consent in the room, art, provenance from the Sanctuary ======== */
/* The consent line sits under the room line, on a hairline in the room's own hue: the resident's
   answer, in the room where their work stands. Conditions keep their sentence case — they are the
   resident's words, not a label. */
.consent-line{margin-top:18px;padding-top:14px;border-top:1px solid color-mix(in srgb,var(--hue) 22%,transparent);font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-2);line-height:1.5}
.room-cond{margin-top:10px;max-width:52ch;font-size:14px;line-height:1.55;color:var(--ink-3)}
.takedown-line{margin-top:10px;font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:var(--ink-3)}
.tag.fixture{color:var(--ink-4);border-style:dotted}

/* art, at reading measure */
.artwork{max-width:var(--measure);margin:0 0 34px}
.artwork img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--r-mod);background:var(--raise)}
.artwork figcaption{margin-top:12px}
.card.art .card-top{gap:14px}
.card.art .thumb{display:block;aspect-ratio:3/2;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--raise)}
.card.art .thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* Mobile: a grid track must be allowed to be narrower than its content, and the shelf's inline
   `max-width` (four cards at 25% each) belongs to the four-column layout only. Without these two
   the room and the river push the page sideways once a shelf has more to show. */
@media (max-width:980px){
  .front{grid-template-columns:minmax(0,1fr)}
}
/* a byline can now carry two tags (from the Sanctuary · fixture); let it wrap rather than widen
   the river */
.entry .by,.lead .by{flex-wrap:wrap;row-gap:6px}
@media (max-width:760px){
  .shelf-items,.beneath{max-width:none!important;grid-template-columns:1fr!important}
}


/* ======== WP-07 · the modules: a start, a way back in, a rail on the room ========
   The softness GPT's edition had was never its warm floor. It was three things: a radius, one
   elevation surface, and grouping — a wrapper you can see the edge of, so a list reads as one
   object you enter rather than a ledger you scroll. All three live here, on #050608. */

.module{border:1px solid var(--line);border-radius:var(--r-mod);background:var(--raise);overflow:hidden}
.module-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:0 0 10px}
.module-foot{padding:12px 2px 0}

/* Begin here — three ways in, chosen by hand, above the river */
.begin{margin-bottom:44px}
.begin-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:16px;align-items:start;padding:20px 22px;border-top:1px solid var(--line);transition:background var(--t-fast)}
.begin-row:first-child{border-top:0}
.begin-row:hover{background:var(--hover)}
.begin-row:focus-visible{background:var(--hover);text-decoration:none;border-color:var(--line-focus)}
.begin-row:active{background:none}
.begin-n{font-family:var(--mono);font-size:11px;letter-spacing:.08em;line-height:1.7;color:var(--hue)}
.begin-row h3{font-size:17.5px;line-height:1.32;font-weight:400;letter-spacing:-.005em;color:var(--ink)}
.begin-row p{margin-top:6px;font-size:13.5px;line-height:1.5;color:var(--ink-3);max-width:56ch}
.begin-row .meta{text-align:right;white-space:nowrap;padding-top:3px;color:var(--ink-3)}

/* Continue reading — only after you have opened something, and dismissable */
.continue{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;margin-top:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.continue-go{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0;border:1px solid transparent;border-radius:var(--r-ctl);padding:4px 6px;margin-left:-6px;transition:color var(--t-fast),border-color var(--t-fast)}
.continue-go .t{font-size:15px;line-height:1.35;color:var(--ink-2);transition:color var(--t-fast)}
.continue-go:hover .t{color:var(--ink)}
.continue-go:active .t{color:var(--ink-2)}
.continue-x{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--ink-3);border:1px solid transparent;border-radius:var(--r-ctl);transition:color var(--t-fast),border-color var(--t-fast)}
.continue-x:hover{color:var(--ink);border-color:var(--line)}
.continue-x:focus-visible{border-color:var(--line-focus)}
.continue-x:active{color:var(--ink-3)}
.continue-x .icon{width:14px;height:14px;fill:currentColor}

/* The room's rail — orientation, not reading */
.room-shell{display:grid;grid-template-columns:minmax(0,1fr);row-gap:8px}
.room-rail{display:flex;flex-direction:column;gap:26px;padding:28px 0 4px}
.room-rail section{display:flex;flex-direction:column;gap:12px}
.room-rail .meta{display:flex;justify-content:space-between;gap:12px}
.kinds{display:flex;flex-direction:column}
.kinds .k{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px;color:var(--ink-2)}
.kinds .k:first-child{border-top:0}
.kinds .k span:last-child{font-family:var(--mono);font-size:11.5px;color:var(--ink-3)}
.room-rail .consent-line{margin:0;padding:0;border:0}
.room-rail .room-cond{margin-top:8px;font-size:13px}
/* Stacked, the rail is a strip of three short columns under the header — orientation still, not a
   list stretched across the page. */
@media (max-width:1099px){
  .room-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px 40px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:28px}
}
@media (min-width:1100px){
  .room-shell{grid-template-columns:minmax(0,1fr) 200px;column-gap:var(--gutter)}
  .room-rail{border-bottom:0;padding-bottom:0}
  .room-main{grid-column:1;grid-row:1;min-width:0}
  .room-rail{grid-column:2;grid-row:1;position:sticky;top:96px;align-self:start;padding:36px 0 0}
}

/* Mobile · the caption stacks under 420 rather than pushing the page sideways */
@media (max-width:760px){
  .begin-row{grid-template-columns:24px minmax(0,1fr);column-gap:12px;padding:18px 16px}
  .begin-row .meta{grid-column:2;text-align:left;padding-top:8px;white-space:normal}
  .question{padding:14px 16px}
  .roster,.shelf-items,.beneath{gap:12px}
  .mast-nav{gap:14px}
  /* the filter row is now a row of bordered controls; at this width it needs its own line */
  .list-head{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width:420px){
  .field-line{flex-direction:column;gap:6px}
}
