/* ============================================================
   THE FRONT DOOR — shared stylesheet
   Dark-first. Light theme is a full, deliberate swap.
   ============================================================ */

:root {
  /* --- dark (default) --- */
  --ground:      #0B1020;
  --ground-2:    #101731;
  --ground-3:    #18213F;
  --hair:        #26304F;
  --hair-soft:   #1B2440;
  --text:        #E8EBF4;
  --text-2:      #A6B0C8;
  --text-3:      #6E7A96;
  --scrim:       rgba(6, 9, 20, 0.72);
  --scrim-hard:  rgba(6, 9, 20, 0.90);
  --glow-a:      0.42;
  --glow-b:      0.16;
  --plate:       rgba(255, 255, 255, 0.035);
  --plate-2:     rgba(255, 255, 255, 0.06);
  --focus:       #FFD37A;

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* scale */
  --s-1: 0.78rem;
  --s0:  0.95rem;
  --s1:  1.08rem;
  --s2:  1.35rem;
  --s3:  1.9rem;
  --s4:  2.8rem;
  --s5:  4.2rem;
  --s6:  6.5rem;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --rule: 1px solid var(--hair);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:     #ECEEF1;
    --ground-2:   #F5F6F8;
    --ground-3:   #FFFFFF;
    --hair:       #C9CFDA;
    --hair-soft:  #DDE2EA;
    --text:       #131A2B;
    --text-2:     #46516B;
    --text-3:     #7C869C;
    --scrim:      rgba(236, 238, 241, 0.78);
    --scrim-hard: rgba(236, 238, 241, 0.94);
    --glow-a:     0.30;
    --glow-b:     0.10;
    --plate:      rgba(19, 26, 43, 0.035);
    --plate-2:    rgba(19, 26, 43, 0.07);
    --focus:      #9A5A00;
  }
}

:root[data-theme="light"] {
  --ground:     #ECEEF1;
  --ground-2:   #F5F6F8;
  --ground-3:   #FFFFFF;
  --hair:       #C9CFDA;
  --hair-soft:  #DDE2EA;
  --text:       #131A2B;
  --text-2:     #46516B;
  --text-3:     #7C869C;
  --scrim:      rgba(236, 238, 241, 0.78);
  --scrim-hard: rgba(236, 238, 241, 0.94);
  --glow-a:     0.30;
  --glow-b:     0.10;
  --plate:      rgba(19, 26, 43, 0.035);
  --plate-2:    rgba(19, 26, 43, 0.07);
  --focus:      #9A5A00;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--s1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 96;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.prose { max-width: 62ch; }

/* ------------------------------------------------------------ masthead */

.masthead {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem var(--gut) 1.1rem;
  border-bottom: var(--rule);
  background: var(--ground);
  flex-wrap: wrap;
}

.masthead__mark {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
  font-size: var(--s2);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.masthead__mark span {
  font-family: var(--mono);
  font-size: var(--s-1);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tool {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: transparent;
  border: var(--rule);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.tool:hover { color: var(--text); border-color: var(--text-3); background: var(--plate); }

.tool[aria-pressed="true"] {
  color: var(--ground);
  background: var(--text);
  border-color: var(--text);
}

.tool__dot {
  width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: currentColor; opacity: 0.55;
}

/* ------------------------------------------------------------ overture */

.overture {
  position: relative;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(2rem, 5vh, 3.5rem);
  border-bottom: var(--rule);
  overflow: hidden;
}

/* <canvas> is a replaced element — inset:0 with width:auto resolves to its
   intrinsic 300x150 instead of stretching. Every atmosphere canvas needs an
   explicit size or it paints a small rectangle in the corner. */
.overture__sky,
.door__canvas,
.view__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.overture__sky { opacity: 0.85; }

.overture .wrap { position: relative; z-index: 1; }

.overture h1 {
  font-size: clamp(2.6rem, 8vw, var(--s6));
  font-variation-settings: "SOFT" 12, "WONK" 1, "opsz" 144;
  font-weight: 400;
  margin-block: 0.7rem 1.1rem;
  max-width: 18ch;
}

.overture h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}

.overture__lede {
  font-size: clamp(var(--s1), 2.1vw, var(--s2));
  color: var(--text-2);
  max-width: 46ch;
}

.overture__meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: var(--rule);
}

.overture__meta div { display: flex; flex-direction: column; gap: 0.15rem; }

.overture__meta b {
  font-family: var(--display);
  font-size: var(--s3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ------------------------------------------------------------ THE DOORS */

.doors {
  display: flex;
  min-height: min(78vh, 46rem);
  border-bottom: var(--rule);
}

.door {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-right: var(--rule);
  background: var(--ground-2);
  cursor: pointer;
  overflow: hidden;
  transition: flex-grow 0.62s cubic-bezier(0.22, 0.8, 0.24, 1);
  display: flex;
  align-items: flex-end;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  appearance: none;
}

.door:last-child { border-right: 0; }

.doors:hover .door { flex-grow: 0.82; }
.door:hover, .door:focus-visible, .door[data-open="true"] { flex-grow: 1.9; }

.door__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--scrim-hard) 0%, var(--scrim) 34%, transparent 72%),
    radial-gradient(140% 90% at 50% 118%, color-mix(in oklab, var(--p-hue) 55%, transparent) 0%, transparent 62%);
  transition: opacity 0.5s;
  opacity: 0.9;
}

.door:hover .door__veil,
.door[data-open="true"] .door__veil { opacity: 1; }

.door__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.door__num {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--p-hue) 76%, var(--text));
}

.door__name {
  font-size: clamp(var(--s3), 3.4vw, var(--s4));
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 120;
  font-weight: 500;
}

.door__tag {
  color: var(--text-2);
  font-size: var(--s0);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

.door:hover .door__tag,
.door:focus-visible .door__tag,
.door[data-open="true"] .door__tag { opacity: 1; transform: none; }

.door__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-hue);
  margin-top: 0.3rem;
}

.door__lamp {
  position: absolute;
  top: clamp(1.4rem, 2.6vw, 2.4rem);
  left: clamp(1.4rem, 2.6vw, 2.4rem);
  z-index: 2;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--p-hue);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-hue) 60%, transparent);
  animation: lamp 3.4s ease-out infinite;
}

@keyframes lamp {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-hue) 55%, transparent); }
  70%  { box-shadow: 0 0 0 1.5rem color-mix(in oklab, var(--p-hue) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-hue) 0%, transparent); }
}

@media (max-width: 60rem) {
  .doors { flex-direction: column; min-height: 0; }
  .door { border-right: 0; border-bottom: var(--rule); min-height: 17rem; }
  .doors:hover .door, .door:hover, .door[data-open="true"] { flex-grow: 1; }
  .door__tag { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ the rail (secondary rooms) */

.rail {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: var(--rule);
}

.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.rail__head h2 { font-size: var(--s3); }

.rooms {
  display: grid;
  /* Six rooms. Three across leaves two full rows — auto-fit gives four and
     the empty seventh cell renders as a lit gap. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: var(--rule);
}

@media (max-width: 62rem) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .rooms { grid-template-columns: 1fr; } }

.room {
  position: relative;
  background: var(--ground);
  padding: 1.5rem 1.4rem 1.6rem;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 12rem;
  overflow: hidden;
  transition: background 0.25s;
}

.room::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--p-hue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.room:hover, .room:focus-visible { background: var(--ground-2); }
.room:hover::before, .room:focus-visible::before { transform: scaleX(1); }

.room__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 90%;
  background: radial-gradient(60% 60% at 50% 100%, color-mix(in oklab, var(--p-hue) 26%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.room:hover .room__glow, .room:focus-visible .room__glow { opacity: 1; }

.room__name {
  position: relative;
  font-family: var(--display);
  font-size: var(--s2);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 60;
  font-weight: 500;
}

.room__tag { position: relative; color: var(--text-2); font-size: var(--s0); }

.room__foot {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-top: 0.8rem;
}

/* ------------------------------------------------------------ badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge--open   { color: color-mix(in oklab, #35B396 78%, var(--text)); }
.badge--keyed  { color: color-mix(in oklab, #E0A83B 78%, var(--text)); }
.badge--incoming { color: color-mix(in oklab, #6E86C8 78%, var(--text)); }
.badge--internal { color: color-mix(in oklab, #DC5638 78%, var(--text)); }

/* ------------------------------------------------------------ THE KEY (legend) */

.key { padding: clamp(2.5rem, 6vh, 4rem) 0; border-bottom: var(--rule); }

.key__head { margin-bottom: 1.6rem; }
.key__head h2 { font-size: var(--s3); }
.key__head p { color: var(--text-2); margin-top: 0.5rem; }

.key__scroll { overflow-x: auto; border: var(--rule); }

table.legend {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: var(--s0);
}

table.legend th {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--s-1);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.9rem 1rem;
  border-bottom: var(--rule);
  background: var(--ground-2);
  white-space: nowrap;
}

table.legend td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hair-soft);
  vertical-align: top;
}

table.legend tr:last-child td { border-bottom: 0; }

.legend__swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: var(--s1);
  font-weight: 500;
  white-space: nowrap;
}

.legend__chip {
  width: 0.9rem; height: 0.9rem;
  border-radius: 2px;
  background: var(--p-hue);
  flex: none;
}

.legend__host {
  font-family: var(--mono);
  font-size: var(--s-1);
  color: var(--text-2);
  white-space: nowrap;
}

.legend__count { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ------------------------------------------------------------ ROOM VIEW (overlay) */

.view {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ground);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}

.view[data-open="true"] { display: block; animation: viewIn 0.42s cubic-bezier(0.22, 0.8, 0.24, 1); }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}

.view__hero {
  position: relative;
  min-height: min(42vh, 23rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: var(--rule);
}


.view__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--scrim-hard) 2%, var(--scrim) 40%, transparent 78%),
    radial-gradient(120% 80% at 22% 115%, color-mix(in oklab, var(--p-hue) 48%, transparent), transparent 60%);
}

.view__heroBody {
  position: relative; z-index: 2;
  padding: var(--gut);
  padding-block-end: clamp(1.6rem, 4vh, 2.8rem);
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
}

.view__heroBody h2 {
  font-size: clamp(2.2rem, 6.5vw, var(--s5));
  font-variation-settings: "SOFT" 16, "WONK" 1, "opsz" 144;
  font-weight: 400;
  margin-block: 0.6rem 0.8rem;
}

.view__heroBody .door__tag { opacity: 1; transform: none; max-width: 48ch; font-size: var(--s1); }

.view__close {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 5;
  background: var(--scrim-hard);
  backdrop-filter: blur(8px);
}

.view__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1rem var(--gut);
  border-bottom: var(--rule);
  background: var(--ground-2);
  font-family: var(--mono);
  font-size: var(--s-1);
  color: var(--text-2);
}

.view__bar a { color: var(--p-hue); text-underline-offset: 3px; }

.view__section { padding: clamp(2rem, 5vh, 3.2rem) 0; border-bottom: var(--rule); }
.view__section h3 { font-size: var(--s2); margin-bottom: 1.1rem; }

/* explainer video slot */

.explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 52rem) { .explainer { grid-template-columns: 1fr; } }

.explainer__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--rule);
  background: var(--ground-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.explainer__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.explainer__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.explainer__play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem;
}

.explainer__disc {
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  border: 1px solid var(--p-hue);
  color: var(--p-hue);
  display: grid; place-items: center;
  background: var(--scrim-hard);
}

.explainer__meta { display: flex; flex-direction: column; gap: 0.8rem; }
.explainer__meta p { color: var(--text-2); }

/* catalog grid */

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--hair);
  border: var(--rule);
}

.card {
  background: var(--ground);
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 9.5rem;
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}

.card:hover { background: var(--ground-2); }

.card__title {
  font-family: var(--display);
  font-size: var(--s1);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 30;
  line-height: 1.2;
}

.card__blurb { color: var(--text-2); font-size: var(--s0); line-height: 1.45; }

.card__foot {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card--unverified .card__title { color: var(--text-2); }
.card--unverified::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--text-3) 0 3px, transparent 3px 7px);
  opacity: 0.5;
}

/* key gate */

.gate {
  border: var(--rule);
  background: var(--ground-2);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 34rem;
}

.gate__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.gate input {
  flex: 1 1 12rem;
  font-family: var(--mono);
  font-size: var(--s0);
  letter-spacing: 0.08em;
  padding: 0.7rem 0.85rem;
  background: var(--ground);
  border: var(--rule);
  color: var(--text);
  border-radius: 3px;
}

.gate button {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--p-hue);
  background: transparent;
  color: var(--p-hue);
  border-radius: 3px;
  cursor: pointer;
}

.gate button:hover { background: color-mix(in oklab, var(--p-hue) 14%, transparent); }
.gate__msg { font-family: var(--mono); font-size: var(--s-1); color: var(--text-3); min-height: 1.2em; }


/* ---------------------------------------------------------- warm rooms
   The house is nocturnal; the children's room and the classroom are lit.
   These two deliberately hold one warm look in both themes — a lamp does
   not go dark because the hallway did. */

.view[data-mood="warm"] {
  --ground:     #FFF4E2;
  --ground-2:   #FBE8CB;
  --ground-3:   #FFFBF3;
  --hair:       #E4CDA6;
  --hair-soft:  #F0DDBF;
  --text:       #2B1C0A;
  --text-2:     #6A5028;
  --text-3:     #93764A;
  --scrim:      rgba(255, 244, 226, 0.70);
  --scrim-hard: rgba(255, 244, 226, 0.93);
  --plate:      rgba(43, 28, 10, 0.05);
  --plate-2:    rgba(43, 28, 10, 0.09);
  --focus:      #7A4A00;
  background: var(--ground);
  color: var(--text);
}

/* the accent has to survive on cream, so lean on the deep tone for anything
   that carries meaning rather than atmosphere */
.view[data-mood="warm"] .view__bar a,
.view[data-mood="warm"] .door__num,
.view[data-mood="warm"] .explainer__disc,
.view[data-mood="warm"] .gate button { color: var(--p-deep); }
.view[data-mood="warm"] .explainer__disc { border-color: var(--p-deep); }
.view[data-mood="warm"] .gate button { border-color: var(--p-deep); }
.view[data-mood="warm"] .room::before { background: var(--p-deep); }

/* The nocturnal veil exists to lift text off a dark photo. On a lit room it
   just erases the lanterns, so pull it back to a hairline fade. */
.view[data-mood="warm"] .view__veil {
  background: linear-gradient(to top, var(--scrim) 0%, transparent 52%);
}

/* ---------------------------------------------------------- the shelf */

.shelf {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.shelf__tab {
  font-family: var(--body);
  font-size: var(--s0);
  font-weight: 600;
  padding: 0.62rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--p-hue);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.shelf__tab[data-on="true"] {
  background: var(--p-hue);
  color: #1B1204;
}

.shelf__tab:hover { background: color-mix(in oklab, var(--p-hue) 30%, transparent); }

.shelf__stage { display: block; }

/* ------------------------------------------------------------ footer */

.colophon {
  padding: clamp(2rem, 5vh, 3rem) 0 3.5rem;
  color: var(--text-3);
  font-size: var(--s0);
}

.colophon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.6rem;
}

.colophon h4 {
  font-family: var(--mono);
  font-size: var(--s-1);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}

.colophon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }

.note {
  border-left: 2px solid color-mix(in oklab, #E0A83B 70%, var(--hair));
  padding: 0.9rem 1.1rem;
  background: var(--plate);
  color: var(--text-2);
  font-size: var(--s0);
  margin-top: 1.2rem;
}

.note b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .door__tag { opacity: 1; transform: none; }
}

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
