/* individuate.com: The Permanent Collection
   Painted walls, wall-vinyl lettering, works hung on one centerline,
   tombstone labels. Each room is painted in its app's colour. */

@font-face {
  font-family: "Franklin";
  src: url("/assets/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Franklin";
  src: url("/assets/fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- rooms ---------- */

:root {
  /* the corridor: bottle-green gallery wall */
  --wall: #27392f;
  --wall-lit: #36503f;
  --wall-floor: #1d2b23;
  --ink: #eceee7;
  --ink-soft: #b9c6b8;
  --ink-faint: #9fb3a2;
  --brass: #d7b56d;
  --light: 255 247 226;          /* track-light colour, rgb triplet */
  --light-strength: .13;
  --shadow: 8 14 10;
  --plaque: #eceee7;
  --plaque-ink: #1e2a23;


  --gutter: clamp(16px, 4vw, 56px);
  --work: clamp(140px, 11.5vw, 196px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

[data-room="foodplan"] {
  --wall: #8f3c27;
  --wall-lit: #a54a32;
  --wall-floor: #74301f;
  --ink: #fff3ec;
  --ink-soft: #f7d6c8;
  --ink-faint: #efc3b0;
  --brass: #f6d39a;
  --light: 255 236 214;
  --light-strength: .16;
  --shadow: 52 14 6;
  --plaque: #fff3ec;
  --plaque-ink: #7a3120;
}

[data-room="musicprism"] {
  --wall: #f4efe4;
  --wall-lit: #fbf8f1;
  --wall-floor: #e9e2d3;
  --ink: #22201c;
  --ink-soft: #5e584d;
  --ink-faint: #6f685b;
  --brass: #8a5a00;
  --light: 255 255 250;
  --light-strength: .7;
  --shadow: 70 58 36;
  --plaque: #22201c;
  --plaque-ink: #f4efe4;
  --note-r: #b03a2e;
  --note-3: #2f5f95;
  --note-5: #4f6d34;
  --note-7: #6b3f72;
  color-scheme: light;
}

[data-room="proseprimer"] {
  --wall: #1c1b19;
  --wall-lit: #2a2825;
  --wall-floor: #141311;
  --ink: #ece7dd;
  --ink-soft: #b3ac9e;
  --ink-faint: #a39c8e;
  --brass: #db8c21;
  --light: 255 240 214;
  --light-strength: .17;
  --shadow: 0 0 0;
  --plaque: #ece7dd;
  --plaque-ink: #1c1b19;
}

[data-room="steadytending"] {
  --wall: #252f4c;
  --wall-lit: #323e62;
  --wall-floor: #1c2439;
  --ink: #fdf9f5;
  --ink-soft: #c8cee0;
  --ink-faint: #aab3cc;
  --brass: #e2b660;
  --light: 255 244 228;
  --light-strength: .15;
  --shadow: 8 10 24;
  --plaque: #fdf9f5;
  --plaque-ink: #252f4c;
}

[data-room="affirmable"] {
  --wall: #d2ae52;
  --wall-lit: #e0c06b;
  --wall-floor: #bf9940;
  --ink: #14301d;
  --ink-soft: #2a4527;
  --ink-faint: #33502f;
  --brass: #5e3300;
  --light: 255 251 230;
  --light-strength: .45;
  --shadow: 74 52 6;
  --plaque: #14301d;
  --plaque-ink: #f3e3b4;
  color-scheme: light;
}

/* ---------- site appearance ----------
   Auto is the collection as painted: some rooms dark, some light. Light and
   Dark repaint every room in a light or dark version of its own colour; a room
   already painted that way keeps its paint. Set on <html> by the head script. */

:root[data-theme="light"] {
  --wall: #e4eae1;
  --wall-lit: #f1f5ee;
  --wall-floor: #d3dccf;
  --ink: #1b2a21;
  --ink-soft: #3f5446;
  --ink-faint: #4d6354;
  --brass: #7a5200;
  --light: 255 255 250;
  --light-strength: .6;
  --shadow: 30 44 34;
  --plaque: #1e2a23;
  --plaque-ink: #e4eae1;
  color-scheme: light;
}

:root[data-theme="light"] [data-room="foodplan"] {
  --wall: #f5e3d9;
  --wall-lit: #fbefe8;
  --wall-floor: #ead0c2;
  --ink: #5a2214;
  --ink-soft: #7a3a26;
  --ink-faint: #844432;
  --brass: #6e4400;
  --light: 255 250 244;
  --light-strength: .55;
  --shadow: 96 40 20;
  --plaque: #8f3c27;
  --plaque-ink: #fff3ec;
  color-scheme: light;
}

:root[data-theme="light"] [data-room="proseprimer"] {
  --wall: #f1eee8;
  --wall-lit: #f9f7f3;
  --wall-floor: #e2ddd3;
  --ink: #1c1b19;
  --ink-soft: #55504a;
  --ink-faint: #625c55;
  --brass: #8a4f00;
  --light: 255 255 250;
  --light-strength: .65;
  --shadow: 40 36 30;
  --plaque: #1c1b19;
  --plaque-ink: #f1eee8;
  color-scheme: light;
}

:root[data-theme="light"] [data-room="steadytending"] {
  --wall: #e2e6f0;
  --wall-lit: #eff1f7;
  --wall-floor: #d1d7e6;
  --ink: #1d2540;
  --ink-soft: #434d6b;
  --ink-faint: #4f5977;
  --brass: #704a00;
  --light: 255 253 248;
  --light-strength: .6;
  --shadow: 30 38 70;
  --plaque: #252f4c;
  --plaque-ink: #fdf9f5;
  color-scheme: light;
}

/* Music Prism's own dark paper and note colours */
:root[data-theme="dark"] [data-room="musicprism"] {
  --wall: #211d16;
  --wall-lit: #2e2920;
  --wall-floor: #18150f;
  --ink: #eae2d4;
  --ink-soft: #a79a85;
  --ink-faint: #998d79;
  --brass: #d9a648;
  --light: 255 240 214;
  --light-strength: .15;
  --shadow: 0 0 0;
  --plaque: #eae2d4;
  --plaque-ink: #211d16;
  --note-r: #e0755c;
  --note-3: #7fa6d4;
  --note-5: #96b472;
  --note-7: #c69bc4;
  color-scheme: dark;
}

/* Affirmable inverted: its green ink becomes the wall, its gold the lettering */
:root[data-theme="dark"] [data-room="affirmable"] {
  --wall: #14301d;
  --wall-lit: #1d4029;
  --wall-floor: #0e2415;
  --ink: #f3e3b4;
  --ink-soft: #d6bf7c;
  --ink-faint: #c4ad6c;
  --brass: #f0c869;
  --light: 255 238 196;
  --light-strength: .14;
  --shadow: 0 6 2;
  --plaque: #f3e3b4;
  --plaque-ink: #14301d;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--wall);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in oklab, var(--ink) 35%, var(--wall)) var(--wall);
}

body {
  font-family: "Franklin", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(130% 60% at 50% -8%, var(--wall-lit) 0%, transparent 62%),
    linear-gradient(to bottom, var(--wall) 0%, var(--wall) 72%, var(--wall-floor) 100%);
  background-color: var(--wall);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}

::selection { background: var(--ink); color: var(--wall); }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--plaque); color: var(--plaque-ink);
  padding: 10px 14px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

main { flex: 1; }

/* ---------- signage: the only chrome ---------- */

.signage {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px var(--gutter);
  font-size: 14px;
}
.signage .rooms { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.signage .house {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  text-decoration: none;
}
.signage .here { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signage .crumb { color: var(--ink-faint); }
.signage nav { display: flex; gap: 26px; }
.signage nav a { color: var(--ink-soft); text-decoration: none; }
.signage nav a:hover, .signage nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- wall text ---------- */

.wall-text {
  padding: clamp(28px, 7vh, 84px) var(--gutter) 0;
  max-width: 1040px;
}
.wall-text h1 {
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.wall-text h1 b { font-weight: 700; }
.wall-text .lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-soft);
}

/* ---------- the hang ---------- */

.hang {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(64px, 11vh, 128px) var(--gutter) clamp(72px, 10vh, 120px);
  align-items: start;
}

.piece {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  --i: 0;
}
.piece:hover { text-decoration: none; }

/* the track light: a pool on the wall above each work */
.light {
  position: absolute;
  left: calc(var(--work) / 2);
  top: calc(var(--work) * -.95);
  width: calc(var(--work) * 2.5);
  height: calc(var(--work) * 2.8);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--light) / var(--light-strength)), transparent 78%);
  pointer-events: none;
  transition: opacity .7s var(--ease), filter .7s var(--ease);
  z-index: 0;
}

.frame {
  position: relative;
  z-index: 1;
  width: var(--work);
  height: var(--work);
  display: grid;
  place-items: center;
}
.work {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgb(var(--shadow) / .35))
    drop-shadow(0 22px 26px rgb(var(--shadow) / .45));
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
/* iOS icons ship full-bleed; macOS icons carry Apple's grid margin. Match them. */
.work.ios { width: 80.5%; height: 80.5%; border-radius: 22.4%; }

.piece:hover .work, .piece:focus-visible .work { transform: translateY(-3px); }

/* attention: the attended work's light comes up, the rest of the room dims */
.hang:has(.piece:hover, .piece:focus-visible) .piece:not(:hover, :focus-visible) .light { opacity: .25; }
.hang:has(.piece:hover, .piece:focus-visible) .piece:not(:hover, :focus-visible) .work { filter: drop-shadow(0 2px 2px rgb(var(--shadow) / .3)) drop-shadow(0 22px 26px rgb(var(--shadow) / .4)) brightness(.82) saturate(.85); }
.piece:hover .light, .piece:focus-visible .light { filter: brightness(1.35); }

/* the lights warm, left to right, once */
@media (prefers-reduced-motion: no-preference) {
  .hang .light { animation: warm 1.6s var(--ease) both; animation-delay: calc(var(--i) * 160ms + 250ms); }
  @keyframes warm {
    from { opacity: 0; transform: translateX(-50%) scale(.82); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
  }
}

/* ---------- tombstone label ---------- */

.label {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.45;
}
.label .title { font-size: 18px; font-weight: 600; font-style: italic; letter-spacing: -.01em; line-height: 1.2; }
.label .date { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.label .medium { margin-top: 6px; color: var(--ink-soft); }
.label .desc { margin-top: 10px; }
.state {
  margin-top: 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.state.wip { color: var(--brass); }
.credit { margin-top: 12px; font-size: 12px; color: var(--ink-faint); }

/* ---------- visitor information on the home wall ---------- */

.info-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding: 56px var(--gutter) 96px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  margin: 0 var(--gutter);
  padding-inline: 0;
}
.info-wall h2 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.info-wall p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; max-width: 40ch; }
.info-wall a { color: var(--ink); }

/* ---------- plaque: the primary action ---------- */

.plaque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 18px;
  background: var(--plaque);
  color: var(--plaque-ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.003em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgb(var(--shadow) / .2), 0 8px 18px -6px rgb(var(--shadow) / .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plaque:hover { transform: translateY(-1px); box-shadow: 0 1px 1px rgb(var(--shadow) / .2), 0 12px 24px -8px rgb(var(--shadow) / .55); text-decoration: none; }
.plaque:active { transform: translateY(0); }
.plaque svg { width: 16px; height: 16px; flex: none; }

/* ---------- room ---------- */

.room-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  padding: clamp(28px, 6vh, 72px) var(--gutter) clamp(56px, 9vh, 104px);
  --work: clamp(180px, 22vw, 320px);
}
.room-head .piece { --i: 0; }
.room-head .light { top: calc(var(--work) * -.75); }
.room-head h1 {
  font-weight: 300;
  font-size: clamp(42px, 6vw, 92px);
  line-height: .95;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.room-head .label { margin-top: 0; max-width: 56ch; font-size: 15px; }
.room-head .label .title { font-size: 16px; }
.room-head .label .lede { margin-top: 20px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--ink); max-width: 48ch; }
.room-head .label .tomb { margin-top: 22px; font-size: 14px; }
.room-head .label .tomb .title { display: block; font-size: 16px; }
.room-head .label .tomb .medium { margin-top: 2px; }
.room-head .actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.room-head .actions .note { font-size: 14px; color: var(--ink-soft); }
.room-head .state { margin-top: 24px; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .room-head .light { animation: warm 1.6s var(--ease) both; animation-delay: .15s; }
}

/* exhibits: what hangs in the room */
.exhibits { padding: 0 var(--gutter) clamp(72px, 10vh, 128px); }

.exhibit { margin: 0; }
/* window captures carry macOS's own shadow; add nothing */
.exhibit img { box-shadow: none; }
.exhibit figcaption { margin-top: 18px; font-size: 13px; line-height: 1.45; max-width: 44ch; color: var(--ink-soft); }
.exhibit figcaption b { display: block; font-size: 15px; font-weight: 600; font-style: italic; color: var(--ink); letter-spacing: -.008em; }

.caption { margin-top: 24px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); max-width: 52ch; }
.caption b { font-style: italic; font-weight: 600; color: var(--ink); }

.wall-copy { max-width: 36ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.42; letter-spacing: -.012em; font-weight: 400; }
.wall-copy + .wall-copy { margin-top: 1em; }
.wall-copy em { font-style: italic; }
.wall-copy.soft { color: var(--ink-soft); }

/* salon hang for Food Plan */
.salon {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(48px, 7vh, 88px);
  align-items: start;
}
.salon .a { grid-column: 1 / span 8; }
.salon .copy { grid-column: 9 / span 4; align-self: center; }
.salon .b { grid-column: 1 / span 6; }
.salon .c { grid-column: 7 / span 6; margin-top: clamp(32px, 7vh, 80px); }

/* print room for Music Prism: one matted print, two proofs */
.print-room {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(56px, 8vh, 96px);
  align-items: end;
}
.print-room .mat {
  grid-column: 1 / span 5;
  background: #fffdf8;
  padding: clamp(18px, 2.4vw, 36px);
  box-shadow: 0 1px 2px rgb(var(--shadow) / .25), 0 28px 56px -20px rgb(var(--shadow) / .5);
  outline: 1px solid #ded6c4;
  outline-offset: -1px;
}
.print-room .mat img { box-shadow: none; outline: 1px solid #e6dfcf; }
.print-room .copy { grid-column: 7 / span 6; align-self: center; }
.print-room .p2 { grid-column: 1 / span 6; }
.print-room .p3 { grid-column: 7 / span 6; }
.instruments { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-soft); }
.instruments span { display: inline-flex; align-items: center; gap: 8px; }
.instruments i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Prose Primer: a sentence across the wall, marked in coloured pencil */
.sentence-wall { padding-block: clamp(8px, 2vh, 24px) clamp(48px, 7vh, 88px); }
.sentence {
  font-size: clamp(30px, 4.4vw, 66px);
  line-height: 1.28;
  letter-spacing: -.025em;
  font-weight: 400;
  max-width: 22ch;
  text-wrap: pretty;
}
.sentence .w { border-radius: 3px; padding: 0 .02em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .5s var(--ease), color .5s var(--ease); }
.pos-noun { --pos: #619bfd; }
.pos-verb { --pos: #fd6a5e; }
.pos-adj { --pos: #52ae61; }
.pos-adv { --pos: #b682fa; }
.pos-prep { --pos: #db8c21; }
.pos-pron { --pos: #2daab7; }
.pos-ger { --pos: #ee6e9b; }
.pos-art { --pos: #b3b9c1; }
.pos-det { --pos: #8c9db5; }
.sentence .w[class*="pos-"] { --mark: color-mix(in oklab, var(--pos) 30%, transparent); background: linear-gradient(to bottom, transparent 30%, var(--mark) 30%, var(--mark) 88%, transparent 88%); }
.sentence .w.pos-art { --mark: color-mix(in oklab, var(--pos) 16%, transparent); }
.sentence .w.pos-det { --mark: color-mix(in oklab, var(--pos) 30%, transparent); }
.sentence[data-lens] .w[class*="pos-"] { background: transparent; color: var(--ink-faint); }
.sentence[data-lens="noun"] .w.pos-noun,
.sentence[data-lens="verb"] .w.pos-verb,
.sentence[data-lens="adj"] .w.pos-adj,
.sentence[data-lens="adv"] .w.pos-adv,
.sentence[data-lens="prep"] .w.pos-prep,
.sentence[data-lens="art"] .w.pos-art,
.sentence[data-lens="det"] .w.pos-det,
.sentence[data-lens="ger"] .w.pos-ger { --mark: color-mix(in oklab, var(--pos) 42%, transparent); background: linear-gradient(to bottom, transparent 30%, var(--mark) 30%, var(--mark) 88%, transparent 88%); color: var(--ink); }
.key { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; }
.key button {
  font: inherit; color: var(--ink-soft); background: transparent; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 999px; padding: 6px 14px 6px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.key button::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--pos); }
.key button:hover { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
.key button[aria-pressed="true"] { color: var(--ink); background: color-mix(in oklab, var(--pos) 18%, transparent); border-color: var(--pos); }
.prose-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); max-width: 1100px; }

/* SteadyTending: one line of its own, set at wall scale */
.arc-wall { padding-block: clamp(8px, 2vh, 24px) clamp(48px, 8vh, 96px); }
.arc-line {
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 300;
  max-width: 16ch;
  text-wrap: balance;
}
.arc-line b { font-weight: 700; }
.honest { margin-top: clamp(32px, 6vh, 64px); max-width: 52ch; font-size: 15px; color: var(--ink-soft); }

/* Affirmable: one affirmation, lettered big on the wall */
.affirmation-wall {
  min-height: clamp(280px, 40vh, 440px);
  display: grid;
  align-content: center;
  padding-block: 24px clamp(48px, 8vh, 96px);
}
.affirmation {
  font-size: clamp(36px, 6.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 300;
  max-width: 17ch;
  text-wrap: balance;
  min-height: 2.1em;
}
.affirmation.swap { animation: settle .9s var(--ease); }
@keyframes settle { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
.another {
  margin-top: 36px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: transparent; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
}
.another:hover { text-decoration-thickness: 2px; }
.another svg { width: 18px; height: 18px; }
.affirm-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); max-width: 1100px; margin-top: clamp(32px, 6vh, 72px); }

/* ---------- visitor information desk, in every room ---------- */

.desk {
  margin: 0 var(--gutter);
  padding: 48px 0 88px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
}
.desk h2 { font-size: 15px; font-weight: 700; }
.desk p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); max-width: 38ch; }
.desk .go { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.desk .go svg { width: 14px; height: 14px; }
.spec { margin-top: 10px; font-size: 15px; font-variant-numeric: tabular-nums; border-collapse: collapse; width: 100%; max-width: 420px; }
.spec th, .spec td { text-align: left; padding: 7px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-soft); width: 42%; padding-right: 16px; }

/* ---------- also in the collection ---------- */

.also { padding: 0 var(--gutter) 88px; --work: 92px; }
.also h2 { font-size: 15px; font-weight: 700; margin-bottom: 28px; }
.also .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.also .piece { display: grid; grid-template-columns: var(--work) minmax(0, 1fr); gap: 18px; align-items: center; }
.also .label { margin-top: 0; font-size: 13px; }
.also .label .title { font-size: 16px; }
.also .light { display: none; }

/* ---------- visitor information pages (Read) ---------- */

.info {
  padding: clamp(20px, 5vh, 56px) var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr);
}
.info > * { grid-column: 2; }
.info-head h1 {
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;
}
.info-head .sub { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }
.info-head .sub a { color: var(--ink); }

/* visitor information is lettered straight onto the wall, like the labels */
.panel {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.6;
}
.panel > :first-child { margin-top: 0; }
.panel h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 2.2em;
}
.panel h3 { font-size: 17px; font-weight: 650; letter-spacing: -.005em; margin-top: 2em; }
.panel p, .panel ul, .panel ol { margin-top: .8em; max-width: 68ch; }
.panel h2 + p, .panel h2 + ul, .panel h3 + p { margin-top: .55em; }
.panel ul, .panel ol { padding-left: 1.2em; }
.panel li + li { margin-top: .35em; }
.panel strong { font-weight: 650; }
.panel code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: color-mix(in oklab, var(--ink) 10%, transparent); padding: .1em .35em; border-radius: 3px; }
.panel .meta { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.panel hr { border: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); margin: 2em 0; }

.panel .contact { display: block; padding-bottom: 8px; }
.panel .contact .addr {
  display: block;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.panel .contact .addr a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.panel .contact p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); max-width: 56ch; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--plaque-ink);
  background: var(--brass);
  border-radius: 2px;
}
[data-room="musicprism"] .stamp, [data-room="affirmable"] .stamp { color: var(--wall); }

/* one section per app on the shared pages; #<slug> is a durable address */
.jump { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 1.6em; font-size: 15px; }
.jump a { color: var(--ink-soft); }
.jump a:hover { color: var(--ink); }
.panel .app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2.6em;
  padding-top: 1.1em;
  border-top: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  scroll-margin-top: 16px;
}
.panel .app-head img { width: 40px; height: 40px; flex: none; }
.panel .app-head img.ios { width: 33px; height: 33px; margin: 3.5px; border-radius: 22.4%; }
.panel .app-meta { margin-top: .5em; font-size: 15px; color: var(--ink-soft); }
.panel .app-meta a { color: var(--ink); }
.panel .app-meta + p, .panel .app-meta + h3 { margin-top: 1.1em; }


/* ---------- colophon ---------- */

.colophon {
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--ink-faint);
}
.colophon nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--ink); text-decoration: underline; }

/* site settings: words that act, after Music Prism's appearance control.
   Hidden until script runs, since without it the buttons could set nothing. */
.settings { display: none; }
:root.js .settings { display: flex; flex-wrap: wrap; gap: 8px 36px; flex-basis: 100%; }
.setting { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.setting .set { display: flex; gap: 14px; }
.setting button {
  font: inherit;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 8px 0;
  margin: -8px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.setting button:hover { color: var(--ink); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.setting button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

/* ---------- walking between rooms ---------- */

@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* the site's own Reduce motion setting; the head script skips the view transition */
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .hang { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 88px; }
}

@media (max-width: 1080px) {
  .hang { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 88px; }
  .desk { grid-template-columns: 1fr 1fr; }
  .desk > :last-child { grid-column: 1 / -1; }
  .also .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

@media (max-width: 820px) {
  .room-head { grid-template-columns: 1fr; align-items: start; gap: 36px; --work: 200px; }
  .salon, .print-room { grid-template-columns: minmax(0, 1fr); }
  .salon > *, .print-room > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .print-room .mat { max-width: 440px; }
  .prose-copy, .affirm-copy { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .signage { padding-block: 20px; }
  .signage nav { gap: 18px; }
  .signage .crumb, .signage .here { display: none; }
  .hang { grid-template-columns: 1fr; row-gap: 56px; --work: 124px; padding-top: 56px; }
  .hang .piece { display: grid; grid-template-columns: var(--work) minmax(0, 1fr); gap: 20px; align-items: center; }
  .hang .label { margin-top: 0; }
  .hang .light { top: calc(var(--work) * -.6); }
  .info-wall, .desk { grid-template-columns: 1fr; }
  .also .row { grid-template-columns: 1fr; gap: 20px; }
  .room-head { --work: 168px; }
}
