/* The Arcane Pen and Key
   A lamp-lit private library: walnut, brass and vellum, with each author given a binding of
   their own. Matthew Palmer is oxblood leather and a key; Thomas Cradock is prussian blue
   and a quill. The home page opens on the imprint's banner; everything else stays quiet. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English SC";
  src: url("/fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --oxblood: #5a1f1d;
  --oxblood-deep: #2b1312;
  --prussian: #1e3150;
  --prussian-deep: #121b2b;
  --brass: #c9a35b;
  --brass-light: #e6cc8f;
  --vellum: #ede4ce;
  --vellum-dim: rgba(237, 228, 206, 0.8);
  --vellum-faint: rgba(237, 228, 206, 0.6);
  --walnut: #1f1713;
  --walnut-deep: #17110e;
  --walnut-light: #2a201a;
  --ink: #2a2119;

  --ff-display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ff-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --ff-text: "Spectral", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --page: 72rem;
  --measure: 36em;
  --section: clamp(3.5rem, 7vw, 6rem);
  --weave:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--walnut);
  color: var(--vellum);
  font-family: var(--ff-text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

p,
dl,
dd,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--vellum);
  color: var(--ink);
  font-size: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------------ emblem strokes */
/* Stroke weights come through custom properties so they also reach the copies made by <use>. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.em path,
.em circle,
.em rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: var(--em-ve, none);
}

.em .em-draw { stroke-width: var(--em-draw, 1.6); }
.em .em-strong,
.em .em-strong.em-draw { stroke-width: var(--em-strong, 2.6); }
.em .em-hatch { stroke-width: var(--em-hatch, 0.9); opacity: 0.75; }
.em .em-barb { stroke-width: var(--em-hatch, 0.85); opacity: 0.85; }

/* every emblem on the site is drawn small, so keep hairline strokes at any scale */
svg[class*="emblem"] {
  --em-ve: non-scaling-stroke;
  --em-strong: 1.5;
  --em-draw: 1.1;
  --em-hatch: 0.6;
  overflow: visible;
  color: var(--brass);
}

/* ------------------------------------------------------------------ masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding: 0.6rem var(--gutter);
  background: rgba(23, 17, 14, 0.96);
  border-bottom: 1px solid rgba(201, 163, 91, 0.22);
}

@supports (backdrop-filter: blur(6px)) {
  .masthead {
    background: rgba(23, 17, 14, 0.86);
    backdrop-filter: blur(6px);
  }
}

.masthead__mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--vellum);
}

.masthead__mark img {
  width: 44px;
  height: 44px;
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(1rem, 2.4vw, 2rem);
  font-size: 1rem;
}

.masthead__nav a {
  color: var(--vellum-dim);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
  color: var(--brass-light);
  border-bottom-color: currentColor;
}

.masthead__menu {
  display: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(201, 163, 91, 0.6);
  border-radius: 2px;
  background: transparent;
  color: var(--vellum);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

@media (max-width: 52rem) {
  .masthead {
    flex-wrap: wrap;
  }
  .masthead__mark {
    font-size: 1.0625rem;
  }
  .masthead__mark img {
    width: 38px;
    height: 38px;
  }
  /* with JavaScript the links fold behind a Menu button; without it they simply wrap */
  .js .masthead__menu {
    display: block;
  }
  .js .masthead__nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(201, 163, 91, 0.2);
    font-size: 1.125rem;
  }
  .js .masthead.is-open .masthead__nav {
    display: flex;
  }
  .js .masthead__nav a {
    padding: 0.6rem 0;
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------------ home: banner and welcome */
.banner {
  position: relative;
  background: #1b120e;
}

.banner__img {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: cover;
  object-position: 50% 25%;
}

/* let the lamp-lit desk sink into the page */
.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, var(--walnut));
  pointer-events: none;
}

.welcome {
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.welcome__lede {
  max-width: 34em;
  margin: 0 auto;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--vellum);
}

.welcome__lede a {
  color: var(--brass-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------------ the two authors: an open book */
.spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* the gutter where the two pages meet */
  .spread::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 6%;
    bottom: 6%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(230, 204, 143, 0.55) 18%, rgba(230, 204, 143, 0.55) 82%, transparent);
    pointer-events: none;
  }
}

.door {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 30rem;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  text-decoration: none;
  color: var(--vellum);
  overflow: hidden;
}

.door--matthew-palmer {
  background:
    linear-gradient(90deg, transparent 75%, rgba(0, 0, 0, 0.32) 100%),
    var(--weave),
    radial-gradient(110% 90% at 75% 25%, #74302b 0%, var(--oxblood) 45%, #331110 100%);
}

.door--thomas-cradock {
  background:
    linear-gradient(270deg, transparent 75%, rgba(0, 0, 0, 0.36) 100%),
    var(--weave),
    radial-gradient(110% 90% at 25% 25%, #2d4670 0%, var(--prussian) 45%, #0e1729 100%);
}

@media (min-width: 40rem) {
  .door {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.door__text {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.door__emblem {
  width: 10rem;
  margin-bottom: 1.75rem;
}

.door__emblem--quill {
  width: 12.5rem;
}

.door__name {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1;
  transition: color 0.2s ease;
}

.door__genre {
  font-family: var(--ff-sc);
  font-size: 1.25rem;
  color: var(--brass);
}

.door__tagline {
  margin-top: 0.75rem;
  max-width: 24em;
  font-style: italic;
  color: var(--vellum-dim);
}

.door__count {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--vellum-faint);
}

.door__go {
  margin-top: 1.25rem;
  color: var(--brass-light);
  border-bottom: 1px solid rgba(230, 204, 143, 0.5);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s ease;
}

.door:hover .door__name {
  color: var(--brass-light);
}

.door:hover .door__go {
  border-bottom-color: var(--brass-light);
}

/* a small fan of covers, opened a little further when the door is hovered */
.fan {
  position: relative;
  justify-self: center;
  width: min(100%, 17rem);
  height: 19rem;
}

.fan__book {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10.5rem;
  transform-origin: 50% 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fan--3 .fan__book:nth-child(1) { transform: translateX(-85%) rotate(-9deg); }
.fan--3 .fan__book:nth-child(2) { transform: translateX(-50%) translateY(-0.5rem); z-index: 1; }
.fan--3 .fan__book:nth-child(3) { transform: translateX(-15%) rotate(9deg); z-index: 2; }
.fan--2 .fan__book:nth-child(1) { transform: translateX(-75%) rotate(-6deg); }
.fan--2 .fan__book:nth-child(2) { transform: translateX(-25%) rotate(6deg); z-index: 1; }
.fan--1 .fan__book { transform: translateX(-50%); }

@media (prefers-reduced-motion: no-preference) {
  .door:hover .fan--3 .fan__book:nth-child(1) { transform: translateX(-100%) rotate(-13deg); }
  .door:hover .fan--3 .fan__book:nth-child(3) { transform: translateX(0%) rotate(13deg); }
  .door:hover .fan--2 .fan__book:nth-child(1) { transform: translateX(-85%) rotate(-9deg); }
  .door:hover .fan--2 .fan__book:nth-child(2) { transform: translateX(-15%) rotate(9deg); }
}

@media (max-width: 40rem) {
  .door {
    min-height: 0;
  }
  .fan {
    height: 15rem;
  }
  .fan__book {
    width: 8.5rem;
  }
}

/* ------------------------------------------------------------------ sections */
.section {
  padding: var(--section) var(--gutter);
}

.section__inner {
  max-width: var(--page);
  margin: 0 auto;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section__link {
  color: var(--brass-light);
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(230, 204, 143, 0.5);
}

.section__link:hover {
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------ book cards (latest) */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.75rem;
  }
}

.card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.card__cover {
  display: block;
}

.card__meta {
  font-size: 0.9375rem;
  color: var(--vellum-faint);
}

.card__title {
  margin-top: 0.3rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.card__title a {
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(201, 163, 91, 0.6);
  text-underline-offset: 0.15em;
}

.card__author {
  margin-top: 0.3rem;
  font-family: var(--ff-sc);
  font-size: 1.0625rem;
  color: var(--brass);
}

.card__series {
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--vellum-faint);
}

.card__summary {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--vellum-dim);
}

/* ------------------------------------------------------------------ home: about the imprint */
.note {
  background: var(--walnut-light);
  border-top: 1px solid rgba(201, 163, 91, 0.18);
  border-bottom: 1px solid rgba(201, 163, 91, 0.18);
}

.note__inner {
  max-width: 58rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  justify-items: start;
}

.note__inner p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--vellum-dim);
}

.note__seal {
  width: 9rem;
  height: auto;
}

.note__title {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.note__link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--brass-light);
  text-underline-offset: 0.2em;
}

@media (min-width: 46rem) {
  .note__inner {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }
  .note__seal {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ covers */
.cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 189 / 300);
  background: var(--cloth, #333);
  container-type: inline-size;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 28px -14px rgba(0, 0, 0, 0.75),
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the crease of a spine down the left edge, over images and cloth alike */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(255, 255, 255, 0.12) 2.2%, rgba(0, 0, 0, 0.12) 4.5%, transparent 9%);
}

.cloth {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16% 12% 10%;
  text-align: center;
  color: #e9cf8f;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px),
    radial-gradient(120% 80% at 35% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
    var(--cloth);
}

/* gilt tooling: a double fillet inset from the edge */
.cloth::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(233, 207, 143, 0.7);
  outline: 1px solid rgba(233, 207, 143, 0.35);
  outline-offset: 3px;
  pointer-events: none;
}

.cloth__title {
  font-family: var(--ff-display);
  font-size: 12.5cqi;
  line-height: 1.02;
  text-wrap: balance;
}

.cloth__subtitle {
  margin-top: 0.4em;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 7cqi;
  line-height: 1.15;
}

.cloth__emblem {
  width: 62%;
  margin: auto 0;
  color: currentColor;
}

.cloth__emblem--quill {
  width: 80%;
}

.cloth__author {
  font-family: var(--ff-sc);
  font-size: 7.5cqi;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ shelves */
.shelf__books {
  --stand: 15.25rem;
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

/* the shelf itself: a brass-edged board the covers stand on */
.shelf__books::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--stand);
  height: 9px;
  background: linear-gradient(180deg, #ebd29b 0, #b58e4b 35%, #6f5224 100%);
  box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.75);
  border-radius: 1px;
}

.shelf__item {
  position: relative;
  flex: 0 0 auto;
  width: 9.5rem;
  scroll-snap-align: start;
}

/* a board segment under every book, so the shelf continues when it scrolls sideways */
.shelf__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.5rem;
  top: var(--stand);
  height: 9px;
  background: linear-gradient(180deg, #ebd29b 0, #b58e4b 35%, #6f5224 100%);
}

.shelf__item:last-child::before {
  right: 0;
}

.book {
  display: grid;
  grid-template-rows: var(--stand) auto auto;
  text-decoration: none;
  color: inherit;
}

.book .cover {
  align-self: end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book:hover .cover,
.book:focus-visible .cover {
  transform: translateY(-7px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 26px 30px -14px rgba(0, 0, 0, 0.8),
    0 6px 10px rgba(0, 0, 0, 0.35);
}

.book__num {
  margin-top: 1.4rem;
  font-family: var(--ff-sc);
  font-size: 1rem;
  color: var(--brass);
}

.book__title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  line-height: 1.15;
}

.book:hover .book__title {
  text-decoration: underline;
  text-decoration-color: rgba(201, 163, 91, 0.6);
  text-underline-offset: 0.2em;
}

.shelf__item--planned .cover {
  opacity: 0.55;
}

.shelf__item--planned .book__num {
  font-family: var(--ff-text);
  font-style: italic;
  color: var(--vellum-faint);
}

/* the book you are reading about, marked on its own series shelf */
.shelf__item--current .cover {
  outline: 2px solid var(--brass-light);
  outline-offset: 5px;
}

.shelf__item--current .book__title::after {
  content: " (this book)";
  font-family: var(--ff-text);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--vellum-faint);
}

/* ------------------------------------------------------------------ facts */
.facts {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
}

.facts dt {
  font-family: var(--ff-sc);
  font-size: 1rem;
  color: var(--brass);
}

.facts dd {
  font-size: 1rem;
  color: var(--vellum-dim);
}

.facts--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(201, 163, 91, 0.25);
  border-bottom: 1px solid rgba(201, 163, 91, 0.25);
}

.facts--inline div {
  display: block;
}

/* ------------------------------------------------------------------ author pages */
.author-head {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.author-head--matthew-palmer,
.author-latest--matthew-palmer,
.author-series--matthew-palmer,
.related--matthew-palmer,
.catalogue--matthew-palmer,
.book-page--matthew-palmer {
  --deep: var(--oxblood-deep);
  --lamp: rgba(116, 48, 43, 0.55);
}

.author-head--thomas-cradock,
.author-latest--thomas-cradock,
.author-series--thomas-cradock,
.related--thomas-cradock,
.catalogue--thomas-cradock,
.book-page--thomas-cradock {
  --deep: var(--prussian-deep);
  --lamp: rgba(45, 70, 112, 0.6);
}

.author-head--matthew-palmer {
  background:
    var(--weave),
    radial-gradient(100% 120% at 85% 0%, #74302b 0%, var(--oxblood) 40%, #331110 100%);
}

.author-head--thomas-cradock {
  background:
    var(--weave),
    radial-gradient(100% 120% at 85% 0%, #2d4670 0%, var(--prussian) 40%, #0e1729 100%);
}

.author-head__inner {
  max-width: var(--page);
  margin: 0 auto;
}

.author-head__emblem {
  width: clamp(11rem, 20vw, 14rem);
  margin-bottom: 2.5rem;
}

.author-head__emblem--quill {
  width: clamp(13rem, 24vw, 17rem);
}

.author-head__name {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
}

.author-head__genre {
  margin-top: 0.6rem;
  font-family: var(--ff-sc);
  font-size: 1.5rem;
  color: var(--brass);
}

.author-head__tagline {
  margin-top: 1.25rem;
  max-width: 26em;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}

.author-head__intro {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: var(--measure);
  color: var(--vellum-dim);
}

.author-head__link {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--brass-light);
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(230, 204, 143, 0.5);
}

.author-latest,
.author-series {
  background: radial-gradient(80% 50% at 0% 0%, var(--lamp), transparent 70%), var(--deep);
}

.author-series {
  background: var(--deep);
  border-top: 1px solid rgba(201, 163, 91, 0.18);
}

/* ------------------------------------------------------------------ featured book */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.feature__cover {
  display: block;
  width: min(17rem, 70vw);
}

.feature__when {
  font-family: var(--ff-sc);
  font-size: 1.125rem;
  color: var(--brass);
  margin-bottom: 0.6rem;
}

.feature__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
}

.feature__title a {
  text-decoration: none;
}

.feature__title a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(201, 163, 91, 0.5);
  text-underline-offset: 0.12em;
}

.feature__subtitle,
.book-page__subtitle {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
  font-size: 0.55em;
  color: var(--vellum-dim);
}

.feature__series {
  margin-top: 0.7rem;
  font-style: italic;
  color: var(--vellum-faint);
}

.feature__blurb {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
  margin-top: 1.6rem;
}

/* the first line of a description opens like a chapter */
.feature__blurb p:first-child::first-line,
.book-page__description p:first-child::first-line {
  font-variant-caps: small-caps;
  letter-spacing: 0.02em;
}

.feature__more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--brass-light);
  text-underline-offset: 0.2em;
}

@media (min-width: 52rem) {
  .feature {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }
  .feature__cover {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ series on an author page */
.series-list {
  display: grid;
  gap: clamp(3.5rem, 7vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.series {
  display: grid;
  gap: 2rem;
}

.series__name {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.series__about {
  margin-top: 0.75rem;
  max-width: 34em;
  color: var(--vellum-dim);
}

@media (min-width: 60rem) {
  .series {
    grid-template-columns: 24rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .series__intro {
    padding-top: 0.25rem;
  }
}

/* ------------------------------------------------------------------ how they write */
.writing {
  background: var(--walnut);
}

.writing__inner {
  display: grid;
  gap: 2.5rem;
}

.writing__text p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--vellum-dim);
}

.writing__list h3 {
  font-family: var(--ff-sc);
  font-size: 1.25rem;
  color: var(--brass);
}

.writing__list ul {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.writing__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--vellum-dim);
}

/* a small brass lozenge for each item */
.writing__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--brass);
  transform: rotate(45deg);
}

@media (min-width: 60rem) {
  .writing__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
  .writing__list {
    padding-top: 0.6rem;
  }
}

/* ------------------------------------------------------------------ the other author */
.cross {
  background: var(--walnut-deep);
}

.cross .door {
  min-height: 0;
}

/* ------------------------------------------------------------------ breadcrumbs */
.crumbs {
  padding: 1rem var(--gutter);
  background: var(--walnut-deep);
  border-bottom: 1px solid rgba(201, 163, 91, 0.14);
  font-size: 0.9375rem;
}

.crumbs ol {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: var(--vellum-faint);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(201, 163, 91, 0.6);
}

.crumbs a {
  color: var(--vellum-dim);
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------------ book pages */
.book-page {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) var(--section);
  background: radial-gradient(70% 60% at 15% 0%, var(--lamp), transparent 70%), var(--deep);
}

.book-page__inner {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.book-page__cover {
  width: min(20rem, 72vw);
}

.book-page__series {
  font-style: italic;
  color: var(--vellum-faint);
}

.book-page__title {
  margin-top: 0.4rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.book-page__author {
  margin-top: 0.9rem;
  font-family: var(--ff-sc);
  font-size: 1.3rem;
  color: var(--brass);
}

.book-page__author a {
  color: var(--brass-light);
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(230, 204, 143, 0.5);
}

.book-page .facts--inline {
  margin-top: 1.75rem;
}

.book-page__description {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
  margin-top: 1.75rem;
}

.book-page__readers {
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--vellum-faint);
}

@media (min-width: 52rem) {
  .book-page__inner {
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }
  .book-page__cover {
    width: 100%;
    position: sticky;
    top: 6.5rem;
  }
}

.related {
  background: var(--deep);
  border-top: 1px solid rgba(201, 163, 91, 0.18);
}

/* ------------------------------------------------------------------ buying */
.buy {
  margin-top: 2rem;
}

.buy__label {
  font-family: var(--ff-sc);
  font-size: 1.0625rem;
  color: var(--vellum-faint);
  margin-bottom: 0.6rem;
}

.buy__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.buy__link {
  display: inline-block;
  padding: 0.6rem 1.2rem 0.65rem;
  border: 1px solid var(--brass);
  border-radius: 2px;
  color: var(--brass-light);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.buy__link:hover {
  background: var(--brass);
  color: var(--ink);
}

.buy__note {
  margin-top: 2rem;
  font-style: italic;
  color: var(--vellum-faint);
}

/* ------------------------------------------------------------------ page heads (books, about) */
.page-head {
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  background:
    var(--weave),
    radial-gradient(90% 120% at 50% 0%, #3a2a20 0%, var(--walnut) 70%);
  border-bottom: 1px solid rgba(201, 163, 91, 0.18);
}

.page-head__inner {
  max-width: var(--page);
  margin: 0 auto;
}

.page-head__title {
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.95;
}

.page-head__lede {
  margin-top: 1.1rem;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--vellum-dim);
}

/* ------------------------------------------------------------------ the catalogue */
.catalogue {
  background: var(--deep);
}

.catalogue + .catalogue {
  border-top: 1px solid rgba(201, 163, 91, 0.2);
}

.catalogue__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.catalogue__emblem {
  width: 9rem;
  margin-bottom: 1.75rem;
}

.catalogue__emblem--quill {
  width: 11rem;
}

.catalogue__name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.catalogue__name a {
  text-decoration: none;
}

.catalogue__name a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(201, 163, 91, 0.5);
  text-underline-offset: 0.12em;
}

.catalogue__genre {
  margin-top: 0.4rem;
  font-family: var(--ff-sc);
  font-size: 1.25rem;
  color: var(--brass);
}

.catalogue__shelves {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.catalogue__series-name {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

@media (min-width: 60rem) {
  .catalogue__shelves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
  }
  .catalogue__series {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* ------------------------------------------------------------------ about the imprint */
.about-head {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-head__seal {
  width: 9rem;
  height: auto;
}

@media (min-width: 46rem) {
  .about-head {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 3rem;
  }
  .about-head__seal {
    width: 100%;
  }
}

.about__text {
  max-width: 40rem;
  display: grid;
  gap: 1.1rem;
  color: var(--vellum-dim);
}

.about__text a {
  color: var(--brass-light);
  text-underline-offset: 0.2em;
}

.about__title {
  margin-top: 1.5rem;
  font-size: clamp(1.8rem, 3.2vw, 2.25rem);
  color: var(--vellum);
}

.cross--pair .section__title {
  margin-bottom: 2rem;
}

.spread--small .door {
  min-height: 0;
}

/* ------------------------------------------------------------------ footer */
.footer {
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2rem;
  background: var(--walnut-deep);
  border-top: 1px solid rgba(201, 163, 91, 0.3);
}

.footer__inner {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.footer__imprint {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.footer__seal {
  width: 5.5rem;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer__name {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.footer__line {
  color: var(--vellum-faint);
  font-size: 1rem;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 2rem 4rem;
}

.footer__nav div {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer__head {
  font-family: var(--ff-sc);
  font-size: 1.0625rem;
  color: var(--brass);
  margin-bottom: 0.25rem;
}

.footer__nav a {
  color: var(--vellum-dim);
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__nav a:hover {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__legal {
  max-width: var(--page);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(237, 228, 206, 0.12);
  font-size: 0.875rem;
  color: var(--vellum-faint);
}

@media (min-width: 52rem) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* ------------------------------------------------------------------ 404 */
.lost {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 5rem var(--gutter);
  text-align: center;
  background: radial-gradient(70% 60% at 50% 30%, rgba(116, 48, 43, 0.35), transparent 70%), var(--walnut);
}

.lost__emblem {
  width: min(18rem, 70vw);
  margin-bottom: 1rem;
}

.lost__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.lost__text {
  max-width: 30em;
  color: var(--vellum-dim);
}

.lost__links {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.lost__links a {
  color: var(--brass-light);
  text-underline-offset: 0.2em;
}

/* ------------------------------------------------------------------ print */
@media print {
  .masthead,
  .banner,
  .crumbs,
  .buy {
    display: none;
  }
  body,
  .section,
  .book-page,
  .author-head,
  .footer {
    background: #fff;
    color: #000;
  }
}
