/* ============================================================
   Sterling Letter Press
   Palette: bound law report — ink boards, bone pages,
   oxblood binding cloth, sterling silver, gilt stamping.
   ============================================================ */

:root {
  --ink:            #14161b;
  --ink-soft:       #232730;
  --bone:           #eaebe8;
  --bone-warm:      #f4f4f1;
  --oxblood:        #6b1f2e;
  --oxblood-lift:   #8a2b3d;
  --sterling:       #9aa1a9;
  --sterling-dim:   #c3c8cd;
  --gilt:           #a98b4f;
  --gilt-deep:      #7a6132;
  --rule:           #d3d5d0;
  --muted:          #5b626a;
  --rule-dark:      #333844;

  --display: "Fraunces", Georgia, serif;
  --body:    "Spectral", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --shell: 1140px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--oxblood); text-underline-offset: 3px; }
a:hover { color: var(--oxblood-lift); }

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

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ---------- structural markers: § references to the contract ---------- */
.marker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  display: block;
  margin-bottom: 0.9rem;
}
.marker .sec { color: var(--sterling); }

/* ---------- navigation ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 27, 0.97);
  border-bottom: 1px solid var(--rule-dark);
  backdrop-filter: blur(6px);
}
.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.brandmark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.brandmark:hover { color: #fff; }
.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2.2vw, 1.9rem);
  align-items: center;
}
.navlinks a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sterling-dim);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gilt);
}

/* ---------- ink panels ---------- */
.panel-ink {
  background: var(--ink);
  color: var(--bone);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(169,139,79,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(107,31,46,0.22), transparent 65%);
}
.panel-ink a { color: var(--gilt); }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-rule {
  width: 54px; height: 2px;
  background: var(--gilt);
  margin-bottom: 1.75rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-size: clamp(2.75rem, 9vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  color: #f0f1ee;
  /* letterpress deboss — used once, here only */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.85),
    0 -1px 0 rgba(255,255,255,0.10);
}
.wordmark .second { display: block; color: var(--sterling-dim); }
.hero-tag {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--sterling-dim);
  margin: 0 0 2.5rem;
}
.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border-block: 1px solid var(--rule-dark);
  margin-bottom: 2.5rem;
}
.claim {
  background: var(--ink);
  padding: 1.25rem 1.4rem;
}
.claim b {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gilt);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.claim span { font-size: 0.95rem; color: var(--sterling-dim); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: #fff !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--oxblood-lift); border-color: var(--oxblood-lift); }
.btn-ghost {
  background: transparent;
  border-color: var(--sterling);
  color: var(--bone) !important;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--gilt); color: #fff !important; }
.btn-ghost-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink) !important;
}
.btn-ghost-dark:hover { background: var(--ink); color: var(--bone) !important; }

/* ---------- generic sections ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.panel-ink + .panel-ink { border-top: 1px solid var(--rule-dark); }

h2.title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 22ch;
}
h3.sub {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.25rem 0 0.6rem;
}
.lede { font-size: 1.15rem; max-width: 62ch; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.15rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.founder {
  border-left: 2px solid var(--oxblood);
  padding-left: 1.5rem;
}
.founder img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  margin-bottom: 1rem;
  background: var(--rule);
}
.founder .name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.founder .role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0.25rem 0 0;
}

/* ---------- catalog ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}
.book { display: flex; flex-direction: column; }
.cover-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--ink-soft);
  margin-bottom: 1.1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 12px 24px -14px rgba(0,0,0,0.5);
}
.cover-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* shown only when no cover file is present */
.cover-frame .awaiting {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sterling);
  border: 1px solid var(--rule-dark);
}
.book h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.2rem;
}
.book .byline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sterling);
  margin: 0 0 0.8rem;
}
.book .synopsis { font-size: 0.94rem; margin: 0; color: #2c3038; }
.flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gilt);
  border: 1px solid var(--gilt);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.7rem;
}

/* ---------- exhibit table: the signature device ---------- */
.exhibit {
  border: 1px solid var(--rule);
  background: var(--bone-warm);
  /* pinned: the exhibit is light, so it must not inherit .panel-ink's
     near-white text colour when it sits inside a dark section */
  color: var(--ink);
}
.panel-ink .exhibit,
.panel-ink .exhibit th,
.panel-ink .exhibit td { color: var(--ink); }
.exhibit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--bone);
}
.exhibit-head strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.exhibit-head span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--sterling);
}
.exhibit table { width: 100%; border-collapse: collapse; }
.exhibit th, .exhibit td {
  text-align: left;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.exhibit thead th {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.panel-ink .exhibit thead th { color: var(--muted); }
.exhibit tbody tr:last-child th,
.exhibit tbody tr:last-child td { border-bottom: none; }
.exhibit tbody th { font-weight: 400; font-family: var(--body); width: 42%; }
.exhibit td.val { font-family: var(--mono); font-size: 0.86rem; }
.exhibit td.val.better { color: var(--oxblood); font-weight: 500; }
.clause {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}
.panel-ink .exhibit .clause { color: var(--muted); }

/* ---------- terms list (founding authors) ---------- */
.terms { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.term {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.term h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0;
}
.term p { margin: 0; font-size: 0.98rem; }
.term .clause { margin-top: 0.5rem; }

/* ---------- counter ---------- */
.counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gilt);
  color: var(--gilt);
  padding: 0.7rem 1.2rem;
}
.counter b { font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }

/* ---------- guidelines / checklists ---------- */
.cols2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
ul.ticks { list-style: none; margin: 0; padding: 0; }
ul.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
}
ul.ticks li::before {
  content: "§";
  position: absolute; left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--oxblood);
}

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--oxblood);
  background: var(--bone-warm);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.panel-ink .callout {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--gilt);
}

/* ---------- form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--oxblood); }
.field .hint {
  font-size: 0.85rem;
  color: #575d66;
  margin-top: 0.35rem;
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone-warm);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--oxblood);
  outline: none;
  box-shadow: 0 0 0 2px rgba(107,31,46,0.15);
}
.field input[type="file"] { padding: 0.55rem; background: transparent; }
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.75rem 0;
  font-size: 0.95rem;
}
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.colophon { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.colophon .shell { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.colophon h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gilt);
  margin: 0 0 0.8rem;
  font-weight: 500;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.45rem; font-size: 0.93rem; color: var(--sterling-dim); }
.colophon a { color: var(--sterling-dim); text-decoration: none; }
.colophon a:hover { color: #fff; }
.imprint {
  border-top: 1px solid var(--rule-dark);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--sterling);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- reveal ---------- */
/* progressive enhancement: hidden only once JS confirms it can reveal them */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* compact single-line nav that scrolls sideways rather than stacking */
  .masthead .shell {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.55rem;
  }
  .brandmark { padding-bottom: 0.5rem; }
  .navlinks {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.1rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { white-space: nowrap; }
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .term { grid-template-columns: 1fr; gap: 0.5rem; }
  .exhibit th, .exhibit td { padding: 0.7rem 1rem; }
  .exhibit tbody th { width: 50%; }
}

/* ============================================================
   Logo, press illustration, and the type-sort mark
   ============================================================ */

/* ---------- masthead logo slot ---------- */
.brandmark { display: flex; align-items: center; gap: 0.6rem; }
.brandmark img.logo { width: auto; display: block; }
/* the monogram sits beside the wordmark; the type stays crisp at any size */
.brandmark img.logo { height: 26px; opacity: 0.92; }
.brandmark:hover img.logo { opacity: 1; }

/* ---------- hero: type on the left, press on the right ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.press {
  margin: 0;
  color: var(--sterling);
  opacity: 0.95;
}
.press img.press-photo {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.06) brightness(1.06);
  mix-blend-mode: screen;
  /* feather the frame edges so the plate dissolves into the panel */
  -webkit-mask-image: radial-gradient(ellipse 76% 74% at 50% 50%,
                      #000 52%, rgba(0,0,0,0.55) 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 76% 74% at 50% 50%,
                      #000 52%, rgba(0,0,0,0.55) 78%, transparent 100%);
}
.press .press-art {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  color: var(--sterling);
}
/* when a real photograph loads, the drawn press stands down */
.press:has(img.press-photo) .press-art { display: none; }

/* the press settles in on load — a single, quiet gesture */
.press .press-art g > circle:first-of-type ~ * { transform-origin: 330px 330px; }
@media (prefers-reduced-motion: no-preference) {
  .press .press-art { animation: press-settle 1.1s ease-out both; }
}
@keyframes press-settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- the type-sort mark ---------- */
.sort-mark { display: block; }
.mark-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gilt);
  margin-bottom: 1.5rem;
}
.mark-rule .sort-mark { width: 26px; height: auto; flex: none; }
.mark-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.4;
}
.imprint .sort-mark {
  width: 16px;
  height: auto;
  display: inline-block;
  vertical-align: -0.35em;
  margin-right: 0.4rem;
  color: var(--gilt);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .press { max-width: 260px; margin: 0 auto; }
  .press .press-art { max-height: 300px; }
}

/* claims sit in the narrower hero column — pin to three tracks so no cell is left empty */
.hero-grid .claims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-grid .claim { padding: 1.1rem 1rem; }
.hero-grid .claim span { font-size: 0.9rem; }
@media (max-width: 860px) {
  .hero-grid .claims { grid-template-columns: 1fr; }
}

/* ============================================================
   Contrast corrections
   Accent colours were chosen for one background and then reused
   on the other. These pin each to a legible pairing.
   ============================================================ */

/* oxblood is unreadable on the ink panels — use the gilt there */
.panel-ink .marker { color: var(--gilt); }
.panel-ink .marker .sec { color: var(--sterling); }
.marker .sec { color: var(--muted); }

/* clause references: muted on light, silver on dark, except inside
   the exhibit, which is light even when the section around it isn't */
.panel-ink .clause { color: var(--sterling-dim); }
.panel-ink .exhibit .clause { color: var(--muted); }

/* book bylines were silver on near-white */
.book .byline { color: var(--muted); }

/* gilt is a dark-background colour; on the bone pages it needs deepening */
.flag { color: var(--gilt-deep); border-color: var(--gilt-deep); }
.panel-ink .flag { color: var(--gilt); border-color: var(--gilt); }

.band:not(.panel-ink) .counter {
  color: var(--gilt-deep);
  border-color: var(--gilt-deep);
}

/* ---------- long synopses: clamp with an expander ----------
   Catalogue entries vary from two lines to a full abstract. Clamping keeps
   the grid even while leaving the whole text one click away. Without JS the
   clamp is never applied, so nothing is hidden. */
.book .synopsis.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-toggle {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  margin-top: 0.7rem;
  cursor: pointer;
  align-self: flex-start;
}
.more-toggle:hover { color: var(--oxblood-lift); }

/* ---------- multi-paragraph synopses ---------- */
.book .synopsis p { margin: 0 0 0.7rem; }
.book .synopsis p:last-child { margin-bottom: 0; }
.book .synopsis .hook { font-weight: 600; color: var(--ink); }
.book .synopsis .tagline { font-style: italic; color: var(--muted); }

/* ---------- catalogue links to book pages ---------- */
.book .cover-link { display: block; color: inherit; }
.book .cover-link:focus-visible .cover-frame { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.book .cover-link:hover .cover-frame img { filter: brightness(1.06); }
.book h3 a { color: inherit; text-decoration: none; }
.book h3 a:hover { color: var(--oxblood); text-decoration: underline; }

/* ---------- individual book pages (books/*.html) ---------- */
.book-page .crumb {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}
.book-page .crumb a { color: var(--oxblood); text-decoration: none; }
.book-page .crumb a:hover { text-decoration: underline; }
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.book-cover { position: sticky; top: 1.5rem; }
.book-cover .cover-frame { margin-bottom: 0; }
.book-body .flag { margin-bottom: 1rem; }
.book-title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.book-body .byline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.book-status {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.book-body .synopsis { font-size: 1.0625rem; color: #2c3038; }
.book-body .synopsis p { margin: 0 0 1.15rem; }
.book-body .synopsis .hook { font-weight: 600; color: var(--ink); }
.book-body .synopsis .tagline { font-style: italic; color: var(--muted); }
.book-more {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.book-more-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.book-more ul { list-style: none; margin: 0; padding: 0; }
.book-more li { margin: 0 0 0.35rem; }
.book-back { margin-top: 2.5rem; }
@media (max-width: 720px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-cover { position: static; max-width: 300px; }
}
.book-status:empty { margin-bottom: 2rem; }

/* ============================================================
   Founding Authors register (authors.html) and author pages
   ============================================================ */
.register-note {
  max-width: 62ch;
  color: var(--sterling-dim);
  margin: -1rem 0 0;
}

/* portrait frames: gilt-ruled, monochrome like the founder's photograph */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink-soft);
  overflow: hidden;
  outline: 1px solid var(--gilt);
  outline-offset: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 18px 34px -18px rgba(0,0,0,0.6);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.portrait .awaiting {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sterling);
  border: 1px solid var(--rule-dark);
}
.portrait .awaiting span {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-size: 3rem;
  letter-spacing: 0.02em;
  color: var(--gilt);
  line-height: 1;
}

/* the register: ten numbered places */
.places {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.place {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 5.25rem;
  gap: 1.25rem;
}
.place a {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 4.5rem 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: inherit;
}
.place-no {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--gilt-deep);
  letter-spacing: 0.04em;
}
.place-portrait {
  width: 4.25rem;
  aspect-ratio: 1;
  outline-offset: 3px;
  box-shadow: none;
}
.place-portrait .awaiting { font-size: 0; gap: 0; }
.place-portrait .awaiting span { font-size: 1.5rem; }
.place-name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
}
.place-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.place.is-taken a:hover .place-name { color: var(--oxblood); }
.place.is-taken a:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.place.is-open .place-no { color: var(--sterling-dim); }
.place.is-open .place-name {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--sterling);
}
.register-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}

/* author page */
.author-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.author-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 320px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.crumb-ink { color: var(--sterling); margin-bottom: 2.25rem; }
.crumb-ink a { color: var(--gilt); }
.author-name { font-size: clamp(2.5rem, 7vw, 5rem); }
.author-hero .hero-tag { margin-bottom: 0; }
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.author-bio p.placeholder {
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--gilt);
  padding-left: 1rem;
}
.author-aside {
  border-left: 2px solid var(--oxblood);
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.author-aside p { margin: 1rem 0 0; }
.place-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gilt-deep);
}
.place-badge b {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.author-books-title { margin-bottom: 2rem; }
.author-books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.author-book { display: flex; flex-direction: column; }
.author-book .cover-link { display: block; }
.author-book .cover-link:hover img { filter: brightness(1.06); }
.author-book .cover-link:focus-visible .cover-frame { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.author-book .flag { align-self: flex-start; }
.author-book h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0;
}
.author-book h3 a { color: inherit; text-decoration: none; }
.author-book h3 a:hover { color: var(--oxblood); text-decoration: underline; }

@media (max-width: 720px) {
  .author-hero-grid { grid-template-columns: 1fr; }
  .author-portrait { max-width: 260px; }
  .author-grid { grid-template-columns: 1fr; }
  .author-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .place, .place a { grid-template-columns: 3rem 3.25rem minmax(0, 1fr); gap: 0.9rem; }
  .place { grid-template-columns: 3rem minmax(0, 1fr); }
  .place-portrait { width: 3.25rem; }
  .place-no { font-size: 1.5rem; }
  .place-name { font-size: 1.2rem; }
}
.register-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 1rem;
}
.book .byline a, .book-body .byline a { color: inherit; text-decoration: none; }
.book .byline a:hover, .book-body .byline a:hover { color: var(--oxblood); text-decoration: underline; }
.place-text { display: block; min-width: 0; }
.place-portrait.portrait { aspect-ratio: 1; }
@media (max-width: 720px) {
  .author-books { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
