:root {
  --ink: #131a2b;
  --ink-2: #1b2337;
  --ink-soft: #454c5e;
  --ink-mute: #5c6274;
  --paper: #efe9dd;
  --paper-2: #e8e1d2;
  --paper-3: #ded6c6;
  --line: #cdc4b1;
  --line-soft: #dcd4c4;
  --flame: #b83f12;
  --flame-lift: #f07745;
  --on-ink: #efe9dd;
  --on-ink-mute: #9aa3b6;

  --display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: Spectral, "Iowan Old Style", Georgia, serif;

  --max: 1240px;
  --bar-h: 52px;
  --gap: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gap);
}

.c-rail { grid-column: span 3; }
.c-main { grid-column: span 9; }

/* The rail label travels beside tall sections so the column earns its space */
@media (min-width: 1001px) {
  .c-rail {
    position: sticky;
    top: calc(var(--bar-h) + 30px);
    align-self: start;
  }
}

.hr {
  height: 3px;
  background: var(--ink);
  margin: 34px 0 30px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--flame);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--display);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

/* Labels — the one recurring signal element */

.label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 18px;
}

.label-on-ink { color: var(--flame-lift); }

/* Sticky bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  background: var(--ink);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar-h);
}

.bar-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  text-decoration: none;
  flex: none;
}

.mark-short { display: none; }

.bar ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar ul::-webkit-scrollbar { display: none; }

.bar ul a {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  text-decoration: none;
  white-space: nowrap;
}
.bar ul a:hover { color: var(--flame-lift); }

/* Hero — the ink block */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: 46px 0 58px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.9rem, 9.2vw, 7.1rem);
  line-height: 0.87;
  letter-spacing: -0.045em;
  margin: 30px 0 0;
  color: var(--on-ink);
}
.hero-name span { display: block; }
.hero-name em { font-style: normal; color: var(--flame-lift); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap);
  align-items: end;
  margin-top: 26px;
}

.hero-line {
  grid-column: span 8;
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.15vw, 1.78rem);
  line-height: 1.4;
  color: #c9cfda;
  margin: 0;
  max-width: 28ch;
  text-wrap: pretty;
}

.hero-fig { grid-column: span 4; margin: 0; }

.hero-fig img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.14);
}

.hero-fig figcaption {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  margin-top: 10px;
}

/* Bands */

.band { padding: 68px 0; scroll-margin-top: var(--bar-h); }
.band-tint { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--on-ink); padding: 72px 0; }

/* The book */

.status {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.book-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.book-title span { display: block; }

.book-sub {
  font-family: var(--text);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.3;
  color: var(--flame);
  margin: 14px 0 0;
  max-width: 26ch;
}

.book-tr {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  margin: 14px 0 0;
  max-width: 52ch;
}

.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 1px; }
.facts dt {
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.facts dd {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

.lede {
  grid-column: 4 / -1;
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  line-height: 1.42;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.lede mark {
  background: var(--flame);
  color: var(--paper);
  padding: 0.06em 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.book-body { margin-top: 30px; }

.book-body p {
  grid-column: 4 / span 6;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.68;
  margin: 0 0 1.1em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.book-body p strong { font-weight: 600; color: var(--ink); }

.book-body .aside {
  grid-column: 10 / -1;
  grid-row: 1 / span 3;
  align-self: start;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-mute);
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin: 6px 0 0;
}

.cta {
  grid-column: 4 / -1;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

a { color: var(--flame); }
.cta a, .rail-note a {
  color: var(--flame);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.cta a:hover, .rail-note a:hover { color: var(--ink); }

/* Prose */

.prose p {
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 66ch;
  margin: 0 0 1.15em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }

/* About — movements, pull quote, coda */

.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.bio-row { padding: 30px 0; border-top: 1px solid var(--line); }
.bio-row:first-of-type { padding-top: 0; border-top: 0; }

.pull {
  grid-column: 3 / -2;
  margin: 34px 0 30px;
  padding: 0 0 0 30px;
  border-left: 3px solid var(--flame);
}

.pull p {
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.34;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.pull p em { font-style: italic; color: var(--flame); }

.pull cite {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
}

.prose-2 {
  column-count: 2;
  column-gap: 38px;
  column-rule: 1px solid var(--line-soft);
}
.prose-2 p { max-width: none; }
.prose-2 p:first-child { margin-top: 0; }

@media (max-width: 1000px) {
  .prose-2 { column-count: 1; }
}

.bio-coda {
  font-size: 0.92rem !important;
  color: var(--ink-mute) !important;
  margin-top: 1.4em !important;
}

.rail-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
}

/* Shelf */

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 34px 24px;
}

.shelf li { display: flex; flex-direction: column; }

.cov {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(19, 26, 43, 0.28), 0 10px 20px -14px rgba(19, 26, 43, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cov img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (hover: hover) {
  .shelf li:hover .cov {
    transform: translateY(-5px);
    box-shadow: 0 1px 0 var(--flame), 0 16px 26px -16px rgba(19, 26, 43, 0.6);
  }
}

.bt {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.012em;
  line-height: 1.22;
  color: var(--ink);
  margin: 13px 0 0;
  min-height: 2.4em;
}

.bm {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.045em;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
}

.bd {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 9px 0 0;
}

/* Platforms */

.plats { list-style: none; margin: 0; padding: 0; display: grid; }

.plats li {
  display: grid;
  grid-template-columns: 1fr max-content;
  column-gap: 36px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.plats li:last-child { border-bottom: 1px solid var(--line); }

.pn {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pr {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-mute);
  margin-top: 3px;
  max-width: 62ch;
}

.plats li > a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--flame);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}
.plats li > a:hover { color: var(--ink); }

/* Contact */

.contact-note {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--on-ink-mute);
  margin: 0 0 14px;
}

.contact-mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.05;
}
.contact-mail a {
  color: var(--on-ink);
  text-decoration: none;
  border-bottom: 3px solid var(--flame-lift);
}
.contact-mail a:hover { color: var(--flame-lift); }

/* Footer */

.foot {
  background: var(--ink);
  padding: 0 0 34px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
  padding-top: 22px;
  border-top: 1px solid rgba(239, 233, 221, 0.14);
}

/* Narrower screens */

@media (max-width: 1000px) {
  .c-rail, .c-main { grid-column: span 12; }
  /* the book's specs belong after its title once the rail collapses */
  #book .c-rail { order: 2; margin: 30px 0 0; }
  .pull { grid-column: span 12; }
  #book .c-main { order: 1; }
  .c-rail { margin-bottom: 22px; }
  .lede, .cta { grid-column: span 12; }
  .book-body p { grid-column: span 12; }
  .book-body .aside { grid-column: span 12; grid-row: auto; margin-top: 10px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .hero-line { grid-column: span 12; }
  .hero-fig { grid-column: span 8; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .band { padding: 48px 0; }
  .band-ink { padding: 52px 0; }
  .hero { padding: 34px 0 44px; }
  .hero-meta { font-size: 0.6rem; letter-spacing: 0.14em; }
  .hero-name { margin-top: 22px; }
  .hero-grid { margin-top: 28px; gap: 26px; }
  .hero-fig { grid-column: span 12; }
  .facts { grid-template-columns: 1fr; }
  .pull { padding-left: 18px; margin: 24px 0 22px; }
  .bio-row { padding: 22px 0; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 18px; }
  .bt { min-height: 0; }
  .plats li { grid-template-columns: 1fr; }
  .plats li > a { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 9px; }
  .bar ul { gap: 15px; }
  .bar ul a { font-size: 0.62rem; letter-spacing: 0.07em; }
  .mark-full { display: none; }
  .mark-short { display: inline; font-size: 0.92rem; letter-spacing: 0.01em; }
}

/* Print */

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .bar, .skip-link, .hero-fig figcaption { display: none !important; }
  .hero, .band-ink, .foot {
    background: #fff !important;
    color: #111 !important;
    padding: 12pt 0;
  }
  .hero-name, .contact-mail a { color: #111 !important; }
  .hero-line, .hero-meta, .contact-note, .foot-inner { color: #444 !important; }
  .band { padding: 14pt 0; break-inside: avoid; }
  .band-tint { background: #fff !important; }
  .hero-fig img { filter: grayscale(1); }
  .cov { box-shadow: none; border: 1px solid #bbb; }
  .lede mark { background: none; color: #111; padding: 0; border-bottom: 2px solid #111; }
  a { color: #111 !important; }
  .foot-inner { border-top: 1px solid #bbb; }
}
