:root {
  --page:  #ffffff;   /* the books' own pages are white, so this is too */
  --cream: #f4efe2;   /* the accent: cover stock, masthead band, hover */
  --ink:   #1b314d;   /* navy */
  --tab:   #4a78a2;   /* steel blue */
  --soft:  #56657a;
  --rule:  rgba(27, 49, 77, .22);
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  color: var(--ink);
  font: 17px/1.55 "Libre Caslon Text", Georgia, "Palatino Linotype", serif;
}

body {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

a { color: inherit; }

/* ---------- masthead ---------- */

/* a full-bleed cream band behind the title, the page's one wide stroke */
.masthead {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 0 1.6rem;
  background: var(--cream);
  box-shadow: 0 0 0 100vmax var(--cream);
  clip-path: inset(0 -100vmax);
}

/* the publisher's wordmark above the series title */
.masthead .imprint { display: inline-block; margin-bottom: 1.1rem; }
.masthead .imprint img { display: block; height: 3.2rem; width: auto; }

.masthead h1 {
  font: 600 clamp(2.4rem, 6vw, 4rem)/1 "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.motto {
  font: 1.8rem/1.2 "Yellowtail", cursive;
  color: var(--tab);
  margin: 0.4rem 0 0.7rem;
}

.masthead nav { font-size: 0.85rem; color: var(--soft); }

/* ---------- section labels ---------- */

h2 {
  margin: 3.5rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
  font: 500 0.95rem/1 "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- the list ---------- */

.deck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  column-gap: 3rem;
}

.card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0.8rem;
  margin: 0 -0.8rem;
  border-bottom: 1px solid var(--rule);
  border-radius: 4px;
  transition: background-color .15s;
}

.card:hover, .card:focus-within { background: var(--cream); }

.plate { display: block; align-self: start; }

.plate img {
  display: block;
  width: 110px;
  height: 165px;
  object-fit: cover;
  border-radius: 3px;
  filter: url(#ink);
}

.card:hover .plate img,
.card:focus-within .plate img { filter: none; }

.copy { min-width: 0; }

/* the one nod to the fortune-card deck: a flat tab with the year */
.tab {
  float: right;
  margin: 0 0 0.4rem 0.8rem;
  white-space: nowrap;
  padding: 0.15rem 0.4rem;
  background: var(--tab);
  color: #fff;
  border-radius: 3px;
  text-align: center;
  font: 500 1rem/1.3 "Oswald", "Arial Narrow", sans-serif;
}



.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 700;
}

.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.author { margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--soft); }
.author a { color: var(--tab); }

.blurb { margin: 0; font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 34rem) {
  body { padding: 0 1rem 4rem; }
  .masthead { padding-top: 2rem; }
  .card { grid-template-columns: 80px 1fr; gap: 0.8rem; }
  .plate img { width: 80px; height: 120px; }
}

/* ---------- restored-editions note and the about page ---------- */

.note {
  max-width: 44rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1.1rem 1.5rem;
  text-align: center;
  color: var(--soft);
  background: var(--cream);
  border-radius: 4px;
}

.prose {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose h2 { margin-top: 2.8rem; margin-bottom: 1rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--tab); }
