:root {
  --void: #070605;
  --onyx: #100e0b;
  --ink: #18150f;
  --line: rgba(198, 163, 106, 0.28);
  --ivory: #efe6d6;
  --soft: #cbbfaa;
  --mute: #9c8f7c;
  --amber: #c6a36a;
  --amber-2: #e4c48a;
  --bronze: #8d6b43;
  --emerald: #1e6b57;
  --emerald-2: #8fcec0;
  --serif: "Instrument Serif", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --dock: 78px;
  --scroll: 0%;
  --gx: 30vw;
  --gy: 20vh;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(30, 107, 87, 0.16), transparent 55%),
    var(--void);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}
body::selection, body *::selection { background: rgba(198, 163, 106, 0.35); color: #fff8ec; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--amber-2); outline-offset: 3px; }

.glint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 540px;
  height: 540px;
  pointer-events: none;
  transform: translate3d(var(--gx), var(--gy), 0) translate(-50%, -50%);
  background: radial-gradient(circle, rgba(228, 196, 138, 0.16) 0%, rgba(30, 107, 87, 0.07) 32%, transparent 68%);
  mix-blend-mode: screen;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--amber);
  color: #1a1208;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.dock {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  width: 100%;
  max-width: 100%;
  padding: 16px 28px 0;
  background: #070605;
  border-bottom: 1px solid var(--line);
}
.seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}
.seal img { width: 100%; height: 100%; object-fit: cover; }
.rail {
  position: relative;
  order: 5;
  flex: 1 0 100%;
  width: 100%;
  height: 2px;
  min-height: 2px;
  margin-top: 12px;
  background: rgba(141, 107, 67, 0.45);
}
.rail span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--scroll);
  height: 2px;
  background: linear-gradient(90deg, var(--amber-2), var(--emerald));
}
.rail b {
  position: absolute;
  left: var(--scroll);
  top: -3px;
  width: 8px;
  height: 8px;
  margin: 0 0 0 -4px;
  border-radius: 50%;
  background: var(--amber-2);
  box-shadow: 0 0 12px rgba(228, 196, 138, 0.8);
}
.dock nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  min-width: 0;
}
.dock nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--mute);
}
.dock nav a i {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--bronze);
}
.dock nav a span {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dock nav a:hover, .dock nav a:focus-visible, .dock nav a[aria-current="page"] { color: var(--amber-2); }

.page { position: relative; z-index: 2; min-width: 0; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 56px)); margin: 0 auto; min-width: 0; }
.wrap-wide { width: min(1360px, calc(100% - 40px)); margin: 0 auto; min-width: 0; }

.mast { position: relative; padding: 7vh 0 4vh; overflow: hidden; }
.ghost {
  position: absolute;
  right: -1vw;
  top: -0.12em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 18rem);
  line-height: 0.78;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 163, 106, 0.28);
  pointer-events: none;
  user-select: none;
}
.issue, .kicker {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 0.92; }
.mast h1 {
  position: relative;
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4.2rem, 9vw, 8.4rem);
}
.mast h1 em { font-style: italic; color: var(--emerald-2); }
.deck {
  position: relative;
  max-width: 38rem;
  margin: 1.6rem 0 0;
  color: var(--soft);
  font-size: 1.35rem;
}

.mission {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding: 2rem 0 5rem;
}
.drop::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 5.4rem;
  line-height: 0.72;
  padding-right: 10px;
  color: var(--amber-2);
}
.mission p { margin: 0; color: var(--soft); }
.mission .aside-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--mute);
  font-size: 1.08rem;
}

.band { padding: 1rem 0 4.5rem; }
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.band-head h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.band-head a { color: var(--amber-2); text-underline-offset: 4px; }

.stage {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}
.folio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  background: var(--onyx);
  color: var(--ivory);
  text-decoration: none;
  display: block;
}
.folio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.folio .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.05) 10%, rgba(7, 6, 5, 0.88) 78%);
}
.folio .sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s linear;
  background: radial-gradient(190px circle at var(--lx, 50%) var(--ly, 30%), rgba(239, 230, 214, 0.42), rgba(30, 107, 87, 0.12) 36%, transparent 64%);
  mix-blend-mode: soft-light;
}
.folio:hover .sheen, .folio:focus-visible .sheen { opacity: 1; }
.folio-copy {
  position: relative;
  z-index: 3;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
}
.folio-copy strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.folio-copy p { margin: 0.6rem 0 0; color: var(--soft); max-width: 42ch; }
.stack { display: grid; gap: 22px; }
.stack .folio-copy { min-height: 230px; }
.index-no {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: auto;
}

.ledger-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 42px;
  align-items: start;
}
.scroll-x { overflow-x: auto; max-width: 100%; }
table.ledger {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.ledger th, .ledger td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(198, 163, 106, 0.16);
  vertical-align: top;
}
.ledger th button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
}
.ledger td { color: var(--soft); font-size: 1.08rem; }
.ledger td:first-child { color: var(--ivory); font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.02em; }
.ledger tr.is-hidden { display: none; }
.fine { color: var(--mute); font-size: 1.02rem; }

.sheet {
  background:
    linear-gradient(180deg, rgba(198, 163, 106, 0.08), transparent 28%),
    var(--ink);
  border-top: 1px solid var(--line);
  padding: 18px 18px 20px;
}
.sheet h3 { margin: 0 0 8px; font-size: 2.2rem; }
.ev-row, .ev-head {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.7fr;
  gap: 8px;
  margin-bottom: 8px;
}
.ev-head { color: var(--mute); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sheet input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(198, 163, 106, 0.35);
  padding: 8px 0;
  border-radius: 0;
}
.sheet-actions, .presets { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.sheet button, .sieve button, .texty, .fold > button, .lex button, .cookie button {
  background: none;
  border: 0;
  color: var(--amber-2);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.ev-out {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}
.ev-out span { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }

.sieve { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; }
.sieve button { color: var(--mute); }
.sieve button.is-on { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--amber); }

.catalog { display: grid; gap: 28px; }
.row-edit {
  display: grid;
  grid-template-columns: 92px 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.row-edit .big {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 163, 106, 0.7);
}
.row-edit h3 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.row-edit p { margin: 0; color: var(--soft); }
.thumb {
  position: relative;
  min-height: 160px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.thumb .sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(160px circle at var(--lx, 40%) var(--ly, 40%), rgba(239, 230, 214, 0.45), transparent 60%);
  mix-blend-mode: soft-light;
}
.row-edit:hover .sheen { opacity: 1; }
.empty-note { color: var(--mute); }

.essay { padding: 6vh 0 4rem; }
.essay h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.4rem); max-width: 16ch; }
.lede { font-size: 1.42rem; color: var(--soft); max-width: 46rem; }
.bleed { margin: 2rem 0; }
.bleed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bleed figcaption, .wide-fig figcaption { color: var(--mute); font-size: 0.86rem; margin-top: 8px; }
.prose { width: min(72ch, 100%); }
.prose p { color: var(--soft); }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 2rem 0 0.6rem; }
.term {
  background: none;
  border: 0;
  padding: 0;
  color: var(--amber-2);
  border-bottom: 1px dashed rgba(198, 163, 106, 0.7);
  cursor: pointer;
  font: inherit;
}
.pull {
  margin: 1.6rem 0 1.6rem 8%;
  padding-left: 16px;
  border-left: 1px solid var(--emerald);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--ivory);
}
.fold { border-top: 1px solid var(--line); }
.fold > button {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.fold > button::after { content: "+"; color: var(--amber); font-family: var(--serif); font-size: 1.4rem; }
.fold > button[aria-expanded="true"]::after { content: "–"; }
.fold .panel { color: var(--soft); padding: 0 0 14px; }
.fold .panel[hidden] { display: none; }
.formula {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.nextread { display: flex; flex-wrap: wrap; gap: 18px 28px; border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 16px; }
.nextread a { color: var(--amber-2); }

.lex {
  border: 0;
  padding: 0;
  margin: 0;
  width: min(440px, 100vw);
  height: 100vh;
  max-height: 100vh;
  position: fixed;
  inset: 0 0 0 auto;
  background: #14110d;
  color: var(--ivory);
  border-left: 1px solid var(--line);
}
.lex::backdrop { background: rgba(0, 0, 0, 0.62); }
.lex-inner { padding: 28px 24px 40px; }
.lex h2 { margin: 0.2rem 0 0.8rem; font-size: 3rem; }
.lex p { color: var(--soft); }
.lex button { margin-top: 10px; }

.hours { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(198, 163, 106, 0.16);
}
.hours time, .hours b { color: var(--ivory); font-weight: 500; }
.colophon h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 0 0 1rem; }
.addr { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: 0; }

.page-hero { padding: 7vh 0 1rem; }
.page-hero h1 { margin: 0; font-size: clamp(3.4rem, 8vw, 7rem); max-width: 14ch; }
.intro { max-width: 44rem; color: var(--soft); font-size: 1.32rem; }

.vacant {
  display: grid;
  grid-template-columns: 0.4fr 1.4fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.vacant h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.vacant p { margin: 0 0 8px; color: var(--soft); }
.wide-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.legal h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.legal h2 { font-size: 2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--soft); }
.legal ul { padding-left: 1.1rem; }

.site-foot {
  margin-top: 2rem;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 24px;
}
.site-foot a { color: var(--soft); text-decoration: none; }
.site-foot a:hover { color: var(--amber-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.disclaimer {
  margin-top: 22px;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 78ch;
}
.wordmark {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.cookie {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #16130f;
  border: 1px solid var(--line);
  pointer-events: auto;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--soft); font-size: 1.05rem; }
.cookie-actions { display: flex; gap: 14px; flex: none; position: relative; z-index: 1; }
.cookie button {
  cursor: pointer;
  pointer-events: auto;
  padding: 8px 2px;
}
.cookie a { color: var(--amber-2); }

.glossary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.glossary button.entry {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid rgba(198, 163, 106, 0.18);
  padding: 14px 0;
  cursor: pointer;
}
.glossary button.entry strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.glossary button.entry span { color: var(--mute); font-size: 1.05rem; }

@media (max-width: 980px) {
  .mission, .stage, .ledger-layout, .hours, .foot-grid, .vacant, .glossary { grid-template-columns: 1fr; }
  .row-edit { grid-template-columns: 64px minmax(0, 1fr); }
  .row-edit .thumb { grid-column: 1 / -1; min-height: 200px; }
  .ghost { display: none; }
  .hours li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 860px) {
  .dock { padding: 12px 16px 0; gap: 8px 12px; }
  .dock nav { gap: 4px 12px; width: 100%; }
  .dock nav a i { display: none; }
  .dock nav a span { font-size: 0.92rem; letter-spacing: 0.06em; }
  .wrap, .wrap-wide { width: min(100% - 28px, 1180px); }
  .cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    max-width: calc(100% - 20px);
  }
  .mast h1, .page-hero h1, .essay h1, .legal h1 { max-width: 100%; }
  .mast h1 { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .page-hero h1 { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .essay h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .ev-row, .ev-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.7fr); }
  .pull { margin-left: 0; }
  .row-edit .big { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glint { display: none; }
  .folio .sheen, .thumb .sheen { display: none; }
}
