@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e8;
  --paper-raised: #fffdf8;
  --ink: #1c1915;
  --ink-soft: #3a332c;
  --line: #ddcfc0;
  --forest: #1c2420;
  --link: #0b3a82;
  --focus: #0b57d0;
  --gold-line: #7a5b2e;
  --text: 1.25rem;
  --leading: 1.6;
  --measure: 40rem;
  --page: 72rem;
  --space: 1.25rem;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: var(--text);
  font-weight: 400;
  line-height: var(--leading);
  color-scheme: light;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, .logo, .footer-logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  margin: 0.2rem 0 0.8rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.visually-hidden {
  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: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--forest);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 5;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--measure), calc(100% - 2rem));
}

.section {
  padding: 2.5rem 0;
}

.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}

.site-header {
  background: var(--paper-raised);
  border-bottom: 4px solid var(--forest);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.85rem 0 0.45rem;
}

.main-nav {
  width: 100%;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (min-width: 760px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 0.9rem 0;
  }

  .main-nav,
  .main-nav ul {
    width: auto;
  }
}

.main-nav a {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold-line);
  text-decoration: none;
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero .lede {
  font-size: 1.45rem;
  max-width: 38rem;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  background: var(--forest);
  color: #f7f3ea;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  border: 2px solid var(--forest);
  border-radius: 4px;
  line-height: 1.2;
}

.btn:hover {
  background: #2a3832;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--forest);
}

.btn--secondary:hover {
  background: var(--forest);
  color: #f7f3ea;
}

.featured {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-line);
  padding: 1.25rem;
}

.featured__cover {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.featured__tag {
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.featured__subtitle {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.formats li {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.15rem 0.7rem;
  font-weight: 650;
  font-size: 1.05rem;
}

.isbn {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.subscribe {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest);
  padding: 1.25rem 1.15rem 1rem;
  margin: 1.75rem 0 0;
}

.subscribe__title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.subscribe__lead {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.subscribe__frame {
  display: block;
  width: min(100%, 400px);
  max-width: 100%;
  height: 440px;
  border: 1px solid var(--line);
  background: #fff;
}

.subscribe__fallback {
  margin: 0.9rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.stats li {
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.book-card,
.book-entry {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card__cover,
.book-entry__cover {
  width: 100%;
  max-width: 16rem;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.book-card .meta,
.book-entry__subtitle {
  font-weight: 700;
  color: var(--ink-soft);
}

.book-card .actions,
.book-entry .actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.book-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.book-entry__text p:last-child {
  margin-bottom: 0.75rem;
}

.news-note {
  background: #fff8ec;
  border-left: 4px solid var(--gold-line);
  padding: 0.9rem 1rem;
  margin: 0.5rem 0 1rem;
}

.band {
  background: #efe6d8;
}

.author-intro {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.author-photo {
  margin: 0 0 1rem;
}

.author-photo img,
.author-intro img {
  width: 11rem;
  height: 11rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--forest);
  background: #fff;
}

.author-photo figcaption {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  display: block;
}

.cta {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.cta .actions {
  justify-content: center;
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.prose h2 {
  margin-top: 1.8rem;
}

.byline {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 4px solid var(--forest);
  background: var(--paper-raised);
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-logo {
  font-size: 1.6rem;
  margin: 1.25rem 0 0.4rem;
}

.footer-links,
.footer-bottom {
  margin: 0.25rem 0;
}

.footer-bottom a {
  font-weight: 650;
}

@media (max-width: 800px) {
  .featured,
  .book-entry,
  .author-intro,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .book-card__cover,
  .book-entry__cover,
  .featured__cover {
    max-width: 16rem;
  }

  .subscribe__frame {
    width: 100%;
    height: 460px;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

@media print {
  .subscribe__frame,
  .site-header,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }
}
