/* The working handbook has its own cover and persistent chapter navigation. */
.book-cover {
  background: var(--ink);
  color: white;
}
.book-cover-inner {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 5vw, 5.8rem);
}
.book-cover h1 {
  font-size: clamp(3.8rem, 7vw, 7.7rem);
  line-height: 0.92;
  margin: 1.6rem 0 1.35rem;
  letter-spacing: -0.065em;
}
.book-cover h1 span {
  display: block;
}
.book-cover .large-deck {
  max-width: 31em;
  color: #e5ebed;
}
.book-cover .actions {
  margin-top: 1.5rem;
}
.book-display {
  align-self: center;
}
.book-pair {
  position: relative;
  isolation: isolate;
  background: #263841;
  padding: 8% 12% 11% 5%;
  overflow: hidden;
}
.book-front,
.book-back {
  width: 100%;
  aspect-ratio: 1.414;
  object-fit: contain;
  box-shadow: 0 0.35rem 0.85rem #07101750;
}
.book-front {
  position: relative;
  transform: rotate(-3deg);
}
.book-back {
  width: 80%;
  position: absolute;
  left: 15%;
  top: 15%;
  transform: rotate(5deg);
}
.book-display figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: #d8e3e8;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 0.27fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.5vw, 6rem);
  padding-block: clamp(2.8rem, 4.9vw, 5.4rem);
}
.guide-index nav {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.guide-index .kicker {
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.guide-index a {
  display: block;
}
.guide-index a[aria-current="location"] {
  font-weight: 720;
  box-shadow: inset 0.2rem 0 0 var(--blue);
  padding-left: 0.65rem;
}
.chapter {
  scroll-margin-top: 0.3rem;
}
.chapter + .chapter {
  border-top: 1px solid var(--ink);
  margin-top: clamp(2.9rem, 5.1vw, 5.7rem);
  padding-top: clamp(2.5rem, 4.3vw, 4.7rem);
}
.chapter h2 {
  margin-top: 0.75rem;
}
.chapter-deck {
  max-width: 58em;
  font-size: clamp(1rem, 1.28vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: 1.45rem;
}
.name-lines > div,
.voice-list > div {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(1rem, 2.6vw, 3rem);
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.name-lines dt {
  font-weight: 690;
  font-size: clamp(1.25rem, 2.1vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}
.name-lines dd,
.signature-foot p,
.fine {
  line-height: 1.62;
  color: var(--muted);
}
.logo-board {
  display: grid;
  place-items: center;
  background: var(--paper);
  min-height: clamp(14rem, 26vw, 25rem);
  border: 1px solid var(--line);
}
.logo-zone {
  width: min(81%, 38rem);
}
.logo-safe {
  position: relative;
  padding: 9.17%;
}
.logo-safe img {
  display: none;
  width: 100%;
}
.show-light {
  display: block !important;
}
.logo-lab:has(input[value="dark"]:checked) .logo-board,
.logo-lab:has(input[value="white"]:checked) .logo-board {
  background: var(--ink);
  color: white;
}
.logo-lab:has(input:not([value="light"])[name="signature"]:checked)
  .show-light {
  display: none !important;
}
.logo-lab:has(input[value="dark"]:checked) .show-dark,
.logo-lab:has(input[value="mono"]:checked) .show-mono,
.logo-lab:has(input[value="white"]:checked) .show-white {
  display: block;
}
.logo-lab:has(input[name="space"]:checked) .logo-safe:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed currentColor;
  opacity: 0.5;
}
.half {
  display: none;
  position: absolute;
  bottom: 1%;
  left: 9.17%;
  font-size: 0.8rem;
  line-height: 1;
}
.logo-lab:has(input[name="space"]:checked) .half {
  display: block;
}
.lab-tools,
.signature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.3rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}
.lab-tools {
  border-bottom: 1px solid var(--line);
}
.segments {
  display: flex;
  gap: 0.15rem;
}
.segments label {
  position: relative;
  cursor: pointer;
}
.segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.segments span {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.93rem;
}
.segments input:checked + span {
  background: var(--ink);
  color: white;
}
.segments input:focus-visible + span {
  outline: 3px solid #006899;
  outline-offset: 2px;
}
.check-label {
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.check-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ink);
}
.signature-foot p {
  flex: 1 1 22rem;
}
.palette-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.swatch {
  display: flex;
  min-height: clamp(9rem, 13vw, 13.5rem);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 1.5vw, 1.7rem);
  align-items: flex-start;
}
.swatch strong,
.swatch span {
  display: block;
}
.swatch strong {
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  letter-spacing: -0.04em;
}
.swatch span {
  font-size: 0.89rem;
}
.swatch-blue {
  background: var(--blue);
}
.swatch-ink {
  background: var(--ink);
  color: white;
}
.swatch-paper {
  background: var(--paper);
  border: 1px solid var(--line);
}
.swatch button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font:
    500 0.94rem/1.4 ui-monospace,
    monospace;
}
.swatch button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.swatch button:focus-visible,
.book-cover a:focus-visible {
  outline-color: currentColor;
}
.fine {
  margin-top: 0.8rem;
}
.copy-note:not(:empty) {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 620;
}
.type-proof {
  margin-block: 0.9rem 1.3rem;
  background: var(--ink);
  color: white;
  padding: clamp(1.3rem, 3.5vw, 4rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.type-proof > div {
  font-size: clamp(3rem, 5.8vw, 6.5rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.9;
}
.type-proof p {
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  font-weight: 620;
  color: var(--blue);
}
.grid-example {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: clamp(1rem, 2vw, 2.4rem);
}
.grid-example span {
  font-weight: 620;
  font-size: 0.93rem;
}
.bars {
  height: 4.9rem;
  margin-top: 0.5rem;
  background-color: #def4fc;
  background-image: linear-gradient(to right, transparent 0 80%, #fff 80% 100%);
  border-block: 1px solid var(--ink);
}
.bars-12 {
  background-size: calc(100% / 12) 100%;
}
.bars-4 {
  background-size: 25% 100%;
}
.photo-pair,
.application-tiles,
.resource-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 2rem);
}
.photo-pair img {
  aspect-ratio: 1.36;
}
.voice-list > div {
  grid-template-columns: 0.38fr 1fr;
  align-items: start;
}
.voice-list dt {
  font-weight: 660;
}
.voice-list dd strong {
  font-size: clamp(1.1rem, 1.65vw, 1.6rem);
  line-height: 1.35;
  display: block;
  letter-spacing: -0.033em;
}
.voice-list p {
  margin-top: 0.4rem;
  color: var(--muted);
}
.resource-downloads {
  gap: 1px;
  background: #99aeb4;
  border: 1px solid #99aeb4;
  margin-bottom: 1.6rem;
}
.resource-downloads > div {
  background: var(--blue);
  padding: clamp(1.25rem, 2vw, 2.3rem);
}
.resource-downloads > div + div {
  background: var(--paper);
}
.resource-downloads p,
.archive-link p {
  margin: 0.45rem 0 0.95rem;
}
.application-tiles {
  row-gap: 1.5rem;
}
.art-stage {
  height: clamp(11.5rem, 20.5vw, 22rem);
  background: var(--paper);
  padding: clamp(1rem, 1.8vw, 2.1rem);
  display: grid;
  place-items: center;
}
.art-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  box-shadow: 0 0.2rem 0.6rem #10182026;
}
.art-wide,
.art-poster {
  background: #e0e6e8;
}
.art-wide img {
  width: 100%;
}
.art-sheet img,
.art-poster img {
  height: 100%;
}
.application-tiles figcaption,
.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.application-tiles figcaption {
  margin-top: 0.65rem;
}
.application-tiles figcaption strong,
.application-tiles figcaption span {
  display: block;
}
.application-tiles figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}
.archive-link {
  border-block: 1px solid var(--ink);
  margin-top: 2.2rem;
  padding: 1.2rem 0;
}
.archive-link p {
  margin: 0.35rem 0 0;
}
.archive-link a {
  flex: none;
}
@media (max-width: 930px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .guide-index nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem 1.1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
  }
  .guide-index .kicker {
    width: 100%;
    margin: 0;
  }
  .guide-index a {
    font-size: 0.91rem;
  }
  .guide-index a[aria-current="location"] {
    box-shadow: none;
    padding-left: 0;
    text-decoration: underline;
  }
  .book-cover-inner {
    gap: 2.5rem;
  }
}
@media (max-width: 760px) {
  .book-cover-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.3rem;
  }
  .book-cover h1 {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    margin-block: 1.15rem;
  }
  .book-pair {
    max-width: 34rem;
  }
  .guide-layout {
    padding-block: 2rem;
  }
  .name-lines > div,
  .voice-list > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .swatch {
    min-height: 8.8rem;
    padding: 0.65rem;
  }
  .swatch span {
    font-size: 0.82rem;
  }
  .swatch button {
    font-size: 0.82rem;
  }
  .palette-cards {
    gap: 0.3rem;
  }
  .logo-zone {
    width: 88%;
  }
  .type-proof {
    align-items: flex-start;
    flex-direction: column;
  }
  .photo-pair,
  .application-tiles {
    gap: 1.2rem;
    grid-template-columns: 1fr;
  }
  .photo-pair img {
    aspect-ratio: 1.65;
  }
  .resource-downloads {
    grid-template-columns: 1fr;
  }
  .art-stage {
    height: clamp(16rem, 63vw, 22rem);
  }
  .archive-link {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .segments span {
    padding: 0.45rem 0.6rem;
  }
}
