:root {
  --ink: #262d25;
  --action: #3d4c39;
  --focus: #8f3821;
  --paper: #f0ede5;
  --gutter: clamp(18px,5.4vw,84px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 "DM Sans",Arial,sans-serif;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid #8a8a78;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: .95;
  text-decoration: none;
  font: 400 clamp(1.6rem,3vw,2.8rem)/1 "Instrument Serif",Georgia,serif;
  letter-spacing: -.04em;
}

.brand svg {
  width: 1em;
  height: 1em;
}

.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(12px,3vw,44px);
}

.mast nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .87rem;
  text-decoration: none;
}

.mast nav a:last-child {
  border-bottom: 1px solid currentColor;
}

.kicker,.object-image>span {
  font: 400 .72rem/1.4 "IBM Plex Mono",monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ledger-intro,.ledger-work,.notes {
  padding-inline: var(--gutter);
}

.ledger-intro {
  display: grid;
  grid-template-columns: 1fr minmax(180px,280px);
  gap: 6px 36px;
  align-items: end;
  padding-top: clamp(22px,3vw,48px);
  padding-bottom: clamp(16px,2.2vw,32px);
}

.ledger-intro>.kicker {
  grid-column: 1/-1;
}

.ledger-intro h1,.form-frame h1,.notes h1 {
  font: 400 clamp(3.7rem,7.8vw,8.8rem)/.95 "Instrument Serif",Georgia,serif;
  letter-spacing: -.045em;
}

.ledger-intro h1 br {
  display: none;
}

.ledger-intro h1 em {
  color: #66543c;
}

.ledger-intro>p:last-child {
  font-size: clamp(.95rem,1.2vw,1.13rem);
  max-width: 26ch;
}

.ledger-index {
  border-top: 1px solid #8a8a78;
  border-bottom: 1px solid #8a8a78;
}

.pick {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  min-height: 50px;
  padding-left: 126px;
}

.pick legend {
  font: 400 .72rem "IBM Plex Mono",monospace;
  line-height: 1.3;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  text-transform: uppercase;
}

.pick>div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.pick label span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  font-size: .91rem;
}

.pick label:has(input:checked) span {
  color: white;
  background: #46513f;
}

.plates {
  display: grid;
  gap: clamp(24px,5vw,72px);
  padding: clamp(23px,2.7vw,43px) 0 clamp(32px,5vw,75px);
}

.plate {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(210px,1fr);
  gap: clamp(18px,5vw,90px);
  align-items: end;
}

.object-image {
  position: relative;
  padding: 0 23px 0 0;
}

.object-image>img {
  width: 100%;
  height: clamp(250px,32vw,470px);
  object-fit: cover;
  object-position: 50% 52%;
}

.object-image>span {
  position: absolute;
  right: 0;
  top: 0;
  writing-mode: vertical-rl;
  max-height: 100%;
  font-size: .64rem;
}

.plate-copy {
  margin-bottom: clamp(10px,2vw,30px);
  padding-top: 16px;
  border-top: 1px solid #858877;
}

.plate h2,.notes h2 {
  font: 400 clamp(2.7rem,5.3vw,5.9rem)/1.03 "Instrument Serif",Georgia,serif;
  letter-spacing: -.04em;
}

.plate h2 {
  margin: 9px 0 11px;
}

.plate-copy>p:not(.kicker) {
  max-width: 36ch;
}

.plate .bar-link {
  margin-top: 8px;
}

.plate:nth-child(even) {
  grid-template-columns: minmax(210px,1fr) minmax(0,1.55fr);
}

.plate:nth-child(even) .object-image {
  order: 2;
}

.sliding .object-image {
  animation: drawer .25s ease-out both;
}

.notes {
  max-width: 1380px;
  margin: auto;
  padding-block: clamp(24px,4vw,64px);
}

.notes h1,.form-frame h1 {
  margin: 10px 0 17px;
}

.notes>p:not(.kicker) {
  max-width: 43ch;
}

.notes>.pick {
  margin: 19px 0;
  border-block: 1px solid #8c9280;
}

.note-plate {
  display: grid;
  grid-template-columns: clamp(150px,27vw,360px) minmax(0,1fr);
  gap: clamp(18px,4vw,65px);
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid #8a8a78;
}

.note-plate img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.note-plate h2 {
  font-size: clamp(2rem,4.5vw,4.3rem);
}

.note-plate p {
  max-width: 49ch;
}

.note-plate details {
  margin: 12px 0;
}

.note-plate summary {
  cursor: pointer;
  padding-block: 11px;
  font-weight: 600;
  text-decoration: underline;
}

.note-plate .link-action {
  margin-top: 6px;
}

.form-frame h1 {
  font-size: clamp(3rem,6.8vw,6rem);
}

.form-frame .submit-row {
  margin-top: 12px;
}

.foot {
  background: #e3dfd2;
}

@keyframes drawer {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(0);
  }
}

@media(max-width:720px) {
  .ledger-intro {
    display: block;
  }
  .ledger-intro h1 {
    margin: 10px 0;
  }
  .ledger-intro>p:last-child {
    max-width: 29ch;
  }
  .ledger-intro h1 br {
    display: block;
  }
  .plate,.plate:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .plate:nth-child(even) .object-image {
    order: 0;
  }
  .object-image>img {
    height: clamp(220px,58vw,370px);
  }
  .plate-copy {
    padding-top: 0;
    border: 0;
    margin: 0 0 12px;
  }
  .pick {
    padding: 0;
    display: block;
  }
  .pick legend {
    position: static;
    transform: none;
    margin: 8px 0 2px;
  }
  .pick label span {
    padding: 7px 11px;
  }
  .pick>div {
    gap: 2px;
  }
  .ledger-index,.notes>.pick {
    padding-bottom: 5px;
  }
  .note-plate {
    grid-template-columns: 1fr;
  }
  .note-plate img {
    max-height: 270px;
    aspect-ratio: 1.6;
  }
  .mast nav {
    gap: 12px;
  }
  .mast nav a {
    font-size: .82rem;
  }
  .mast nav .token-arrow {
    display: none;
  }
  .brand {
    gap: 5px;
  }
}

/* Match the narrower ledger lettering while the display faces load. */
@font-face {
  font-family: "Ledger fallback";
  src: local("Georgia");
  size-adjust: 76%;
}
@font-face {
  font-family: "Ledger fallback";
  src: local("Georgia Italic");
  font-style: italic;
  size-adjust: 76%;
}
.ledger-intro h1, .landing .brand, .plate h2 {
  font-family: "Instrument Serif", "Ledger fallback", Georgia, serif;
}

/* Reserve the real control geometry until its change listeners are ready. */
@media (scripting: enabled) {
  .ledger-index .pick[hidden] { display: flex !important; visibility: hidden; }
}
@media (scripting: enabled) and (max-width: 720px) {
  .ledger-index .pick[hidden] { display: block !important; }
}
