:root {
  --ivory: #f6efe4;
  --sand: #e4d2b0;
  --espresso: #1a1410;
  --rosewood: #6a3326;
  --brass: #b8925a;
  --mute: #6a5848;
  --paper: #fffaf2;
  --display: "Italiana", "Palatino Linotype", Palatino, serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --ink: #1a1410;
  --s-kicker: 0.68rem;
  --s-fine: 0.92rem;
  --s-body: 1.0625rem;
  --s-lede: clamp(1.12rem, 1.45vw, 1.28rem);
  --s-h3: clamp(1.4rem, 2.2vw, 1.85rem);
  --s-h2: clamp(1.8rem, 3.4vw, 2.75rem);
  --s-h1: clamp(2.7rem, 6.2vw, 5.15rem);
  --s-mark: clamp(1.45rem, 1.7vw, 1.72rem);
  --pad: clamp(1.25rem, 3.6vw, 3.1rem);
  --max: 70rem;
  --ease: cubic-bezier(.19,.8,.22,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--rosewood); color: var(--ivory); }
body {
  margin: 0;
  background:
    radial-gradient(980px 420px at 100% -8%, rgba(26,20,16,.055), transparent 58%),
    linear-gradient(180deg, rgba(184,146,90,.11), transparent 26%),
    url("/assets/textures/paper.jpg"),
    var(--ivory);
  background-size: auto, auto, 380px, auto;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s-body);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100svh;
}
body.menu-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: clamp(0.85rem, 3vw, 2.3rem);
  width: 1px;
  background: linear-gradient(var(--brass), rgba(184,146,90,.15));
  transform-origin: top;
  animation: draw 1.4s var(--ease) both;
  pointer-events: none;
  z-index: 50;
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
img { max-width: 100%; display: block; }
a { color: var(--rosewood); }
a:hover { color: var(--espresso); }
:focus-visible { outline: 3px solid var(--rosewood); outline-offset: 3px; }
.live, .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.skip { position: absolute; left: -999px; z-index: 90; }
.skip:focus { left: 1rem; top: 1rem; background: var(--espresso); color: var(--ivory); padding: 0.5rem 0.75rem; }
#main:focus { outline: none; }
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 70; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem var(--pad) 1.05rem calc(var(--pad) + 0.7rem);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--display);
  text-decoration: none;
  color: var(--espresso);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
.mark .seal {
  width: 44px;
  height: 44px;
  flex: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent);
}
.lock-name {
  display: block;
  font-family: var(--display);
  font-size: var(--s-mark);
  letter-spacing: 0.14em;
  line-height: 0.82;
  color: var(--ink);
}
.lock-sub {
  display: block;
  width: fit-content;
  margin-top: 0.32rem;
  padding-bottom: 0.22rem;
  border-bottom: 1px solid var(--brass);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rosewood);
}
.bar nav { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.bar nav a {
  text-decoration: none; color: var(--espresso);
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 0.7rem;
}
.bar nav a[aria-current="page"] { color: var(--rosewood); }
.nav-toggle {
  display: none; min-height: 44px;
  background: none; border: 1px solid var(--sand); color: var(--espresso);
}
.nav-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(26,20,16,.28); }

.wrap { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; padding-left: 0.5rem; }
.page { padding: 2.8rem 0 5.5rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--s-h1); margin: 0 0 0.7rem; letter-spacing: 0.01em; }
h2 { font-size: var(--s-h2); margin: 0 0 0.7rem; }
h3 { font-size: var(--s-h3); margin: 0 0 0.45rem; }
.lede { font-size: var(--s-lede); max-width: 38rem; color: var(--mute); font-weight: 400; }
.fine { color: var(--mute); font-size: var(--s-fine); }
.kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--s-kicker);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rosewood);
}

.mast {
  padding: 5vh var(--pad) 0 calc(var(--pad) + 0.7rem);
  border-bottom: 1px solid var(--sand);
  position: relative;
}
.mast::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 80% 0%, rgba(184,146,90,.16), transparent 55%);
  pointer-events: none;
}
.mast > * { position: relative; animation: rise 0.9s var(--ease) both; }
.mast > *:nth-child(2) { animation-delay: 0.1s; }
.mast > *:nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.split { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 2.8rem; }
.stack { display: grid; gap: 1.15rem; }
.rule { height: 1px; background: var(--sand); border: 0; margin: 2.6rem 0; }

.list a {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--sand);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}
.list a:hover { transform: translateX(6px); }
.list a span { color: var(--rosewood); font-size: 0.88rem; }
.list a strong { font-family: var(--display); font-size: 1.75rem; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  margin-top: 1.1rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--espresso);
  background: transparent;
  text-decoration: none;
  color: var(--espresso);
  cursor: pointer;
  font: inherit;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--espresso); color: var(--ivory); }

form { display: grid; gap: 0.8rem; max-width: 32rem; }
.field { display: grid; gap: 0.3rem; }
label { display: grid; gap: 0.3rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--sand);
  background: var(--paper);
  padding: 0.75rem;
  font: inherit;
  min-height: 48px;
  color: var(--espresso);
}
[aria-invalid="true"] { border-color: var(--rosewood); }
.field-err { color: var(--rosewood); font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; }
.note { background: var(--sand); padding: 1.05rem 1.15rem; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.tile {
  background: var(--ivory);
  min-height: 13rem;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.3s;
}
.tile:hover { background: var(--paper); }
.tile strong { font-family: var(--display); font-size: 1.85rem; font-weight: 400; }

.chapter {
  columns: 1;
  max-width: 40rem;
}
.chapter p { margin: 0 0 1.1rem; }

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

footer {
  padding: 2.2rem var(--pad) 3.2rem calc(var(--pad) + 0.7rem);
  border-top: 1px solid var(--sand);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--mute);
}
footer a { color: inherit; }
footer nav { display: flex; flex-wrap: wrap; }
footer nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.55rem; }

@media (max-width: 860px) {
  .split, .list a { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .bar nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    background: var(--ivory); flex-direction: column;
    padding: 0.8rem var(--pad) 1.2rem;
    border-bottom: 1px solid var(--sand);
  }
  .bar nav.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::before { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  body { background: #fff; color: #111; }
  a { color: #6a1f12; }
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1.5px solid var(--rosewood);
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.22s var(--ease), height 0.22s var(--ease), margin 0.22s var(--ease);
}
.cursor.is-hot { width: 32px; height: 32px; margin: -16px 0 0 -16px; background: rgba(184,146,90,.16); }
html.has-cursor, html.has-cursor * { cursor: none !important; }

.crumbs { font-size: 0.88rem; color: var(--mute); margin: 0 0 1.3rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; }
.crumbs [aria-current="page"] { color: var(--espresso); }

.folio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sand); border: 1px solid var(--sand); }
.folio a {
  background: var(--ivory); min-height: 15rem; padding: 1.5rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.3s;
}
.folio a:hover { background: var(--paper); }
.folio em { font-style: normal; color: var(--rosewood); font-size: 0.86rem; }
.folio strong { font-family: var(--display); font-size: 2rem; font-weight: 400; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.facts b { display: block; color: var(--rosewood); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.chapter p + p { margin-top: 0; }
.pull {
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12; margin: 0; color: var(--espresso);
}
.poster {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 1.6rem 1.7rem;
}
.clipping { min-height: 14rem; }
.stamp { color: var(--rosewood); font-size: 0.82rem; letter-spacing: 0.06em; }
.rule-note {
  border-top: 1px solid var(--sand);
  padding-top: 1.4rem;
  color: var(--mute);
}
.quote {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.16;
  margin: 0 0 0.75rem;
}
.shelf { display: grid; gap: 3.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.actions .btn { margin-top: 0; }
.btn.ghost { border-color: var(--sand); }
.folio.trio { grid-template-columns: repeat(3, 1fr); }
.ledger, .spine { display: grid; gap: 0; }
.ledger > *, .spine article {
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--sand);
}
.ledger b, .spine b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--rosewood);
}
.hold {
  background: color-mix(in srgb, var(--rosewood) 7%, var(--paper));
  border: 1px solid var(--sand);
  padding: 1.7rem 1.8rem;
}
.hold h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin-bottom: 0.7rem; }
.hold p:last-child { margin-bottom: 0; }

.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto 1.4rem;
  padding-left: 0.5rem;
}
.foot-grid strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.35rem; }
.foot-grid a { display: flex; align-items: center; min-height: 40px; color: var(--mute); text-decoration: none; }
.foot-grid a:hover { color: var(--rosewood); }
.colophon { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding-left: 0.5rem; }
footer.rich { display: block; }

@media (max-width: 860px) {
  .folio, .folio.trio, .facts, .foot-grid { grid-template-columns: 1fr 1fr; }
  .ledger > *, .spine article { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 560px) {
  .folio, .folio.trio, .facts, .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .progress { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}

.opener { padding-bottom: 0.4rem; }
.rooms { display: grid; gap: clamp(3.2rem, 7vw, 5.8rem); padding: 0.4rem 0 4.5rem; }
.room {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}
.room.flip .plate { order: 2; }
.plate {
  margin: 0;
  background: var(--espresso);
  color: var(--sand);
}
.plate img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--espresso);
}
.plate figcaption {
  padding: 0.85rem 1rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--sand);
}
.room-copy h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.room-copy p { margin: 0 0 0.95rem; }
.slot-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin: 0.3rem 0 1.1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.slot-meta b {
  display: block;
  color: var(--rosewood);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slot-meta span { display: block; margin-top: 0.2rem; font-size: 0.98rem; }
.room-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; align-items: center; }
.room-actions a:not(.btn) { min-height: 48px; display: inline-flex; align-items: center; }
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 20, 16, 0.94);
  display: grid; place-items: center;
  padding: 4.5rem 1.2rem 3rem;
}
.lb[hidden] { display: none; }
.lb img { max-width: min(1100px, 94vw); max-height: 74vh; background: var(--espresso); }
.lb-cap { color: var(--sand); max-width: 40rem; text-align: center; margin: 0.8rem 0 0; }
.lb-close {
  position: absolute; top: 1rem; right: 1rem;
  min-height: 44px; min-width: 44px;
  background: transparent; color: var(--ivory);
  border: 1px solid var(--brass);
  font: inherit; cursor: pointer;
  padding: 0 0.9rem;
}
body.lb-open { overflow: hidden; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
}
.ledger time {
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--brass);
}
.ledger strong { display: block; font-family: var(--display); font-size: 1.55rem; margin-bottom: 0.35rem; }
.ledger p { margin: 0 0 0.7rem; }
@media (max-width: 860px) {
  .room, .room.flip { grid-template-columns: 1fr; }
  .room.flip .plate { order: 0; }
  .slot-meta { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; }
}

/* Practice interiors. Does not restyle .room / .plate / the folio chrome. */
.beats {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  counter-reset: beat;
}
.beats li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.35rem 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--sand);
  margin: 0;
}
.beats li::before {
  counter-increment: beat;
  content: counter(beat, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--rosewood);
  padding-top: 0.15rem;
}
.beats h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
  margin: 0 0 0.35rem;
}
.beats p { margin: 0; max-width: 40rem; }
.week {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.week li {
  background: var(--paper);
  margin: 0;
  padding: 1.2rem 1.1rem 1.4rem;
  min-height: 13rem;
}
.week b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  margin-bottom: 0.45rem;
}
.week span { display: block; color: var(--mute); }
.holds {
  background: var(--espresso);
  color: var(--ivory);
  padding: 1.5rem 1.4rem 1.65rem;
}
.holds h2 { color: var(--sand); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.7rem; }
.holds ul { margin: 0; padding-left: 1.15rem; }
.holds li { margin: 0.35rem 0; }
.holds a { color: var(--sand); }
.band {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.band li {
  background: var(--ivory);
  margin: 0;
  min-height: 7rem;
  padding: 1rem 0.8rem;
  font-family: var(--display);
  font-size: 1.35rem;
}
@media (max-width: 860px) {
  .week, .band { grid-template-columns: 1fr 1fr; }
  .beats li { grid-template-columns: 2.5rem 1fr; }
}
@media (max-width: 560px) {
  .week, .band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .folio.trio { grid-template-columns: 1fr; }
}

/* Careers board. Does not restyle folio rooms, plates, or the rich footer. */
.stage {
  background: var(--espresso);
  color: var(--ivory);
  padding: 11vh var(--pad) 8vh calc(var(--pad) + 0.7rem);
}
.stage .kicker, .stage .lbl { color: var(--brass); }
.stage h1, .stage p { color: var(--ivory); }
.stage .lede, .stage .fine { color: var(--sand); }
.stage .crumbs, .stage .crumbs a { color: var(--sand); }
.stage .crumbs [aria-current="page"] { color: var(--ivory); }
.stage .roles { margin-top: 2.2rem; background: rgba(246,239,228,.16); border-color: rgba(246,239,228,.22); }
.stage .roles article { background: transparent; }
.stage .roles strong { color: var(--ivory); }
.stage::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 2.4rem;
  background: linear-gradient(90deg, var(--brass), transparent 72%);
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
.roles article {
  min-height: 11.5rem;
  padding: 1.25rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.roles em { font-style: normal; }
.roles strong { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 400; }
@media (max-width: 860px) {
  .roles, .stage .roles { grid-template-columns: 1fr; }
}
#return { scroll-margin-top: 5.5rem; }

.lockup { display: block; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.4rem, 4vw, 3.6rem);
  align-items: end;
  padding-bottom: 7vh;
}
.entry h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 12ch; }
.lock-hero {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(4.6rem, 12vw, 9.2rem);
  line-height: 0.8;
  letter-spacing: 0.015em;
  color: var(--espresso);
}
.lock-hero small {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.12em;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--rosewood);
}
.entry-plate { margin: 0; }
.entry-plate img {
  width: 100%;
  height: min(74vh, 42rem);
  object-fit: cover;
  border: 1px solid var(--sand);
}
.entry-plate figcaption,
.sheet figcaption {
  margin-top: 0.55rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.folio.plates a { padding: 0 0 1.35rem; justify-content: flex-start; gap: 0.85rem; }
.folio.plates img { width: 100%; height: 15rem; object-fit: cover; }
.folio-copy { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 1.35rem; }
.folio.plates em {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}
.sheet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sheet figure { margin: 0; }
.ledger {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--espresso);
}
.ledger li {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--sand);
}
.ledger li > span {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--rosewood);
}
.ledger i {
  display: block;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--sand) 0 10px, transparent 10px 16px);
}
.ledger em {
  font-family: var(--body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.boundary {
  background: var(--espresso) url("/assets/textures/ink-mast.jpg") center / cover;
  color: var(--ivory);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid;
  gap: 0.7rem;
  position: relative;
}
.boundary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 16, 0.78);
}
.boundary > * { position: relative; }
.boundary .kicker { color: var(--brass); }
.boundary p { margin: 0; max-width: 40rem; }
.boundary a { color: var(--sand); }
.facts b {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.facts span { display: block; margin-top: 0.35rem; font-family: var(--display); font-size: 1.45rem; line-height: 1.15; color: var(--espresso); }

@media (max-width: 860px) {
  .entry, .sheet { grid-template-columns: 1fr; }
  .entry-plate img { height: 58vw; min-height: 16rem; }
  .lock-hero { font-size: clamp(3.6rem, 18vw, 5.5rem); }
}
@media (max-width: 420px) {
  .bar .lock-sub {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* 404 is one short drawer. Tighten the pad so the blank does not read as an unfinished page. */
html:has(link[rel="canonical"][href$="/404.html"]) .page.opener {
  padding-top: clamp(1.1rem, 2.8vh, 1.8rem);
  padding-bottom: 0.15rem;
}
html:has(link[rel="canonical"][href$="/404.html"]) .page.opener h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  max-width: 11ch;
  margin-bottom: 0.4rem;
}
html:has(link[rel="canonical"][href$="/404.html"]) .page.opener .lede {
  margin-top: 0;
  margin-bottom: 0;
}
html:has(link[rel="canonical"][href$="/404.html"]) .rooms {
  gap: clamp(1.5rem, 3vw, 2.35rem);
  padding: 0.35rem 0 1.1rem;
}
html:has(link[rel="canonical"][href$="/404.html"]) .room {
  align-items: start;
  gap: clamp(1rem, 2.2vw, 1.7rem);
}
html:has(link[rel="canonical"][href$="/404.html"]) main > section.page {
  padding-top: 0.55rem;
  padding-bottom: 2.4rem;
}
html:has(link[rel="canonical"][href$="/404.html"]) .folio {
  background: color-mix(in srgb, var(--ink) 22%, var(--sand));
}
html:has(link[rel="canonical"][href$="/404.html"]) .folio a {
  min-height: 9.25rem;
  background:
    linear-gradient(165deg, rgba(26, 20, 16, 0.035), transparent 42%),
    var(--paper);
}
