/* ==========================================================================
   Murder in Michigan — Stylesheet
   ========================================================================== */

/* ── 1. Reset & base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  cursor: pointer;
}

p {
  margin: 0;
}

ul {
  list-style: none;
}

/* ── 2. Design tokens ────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --navy-dark: #0a1628;
  --navy-mid: #112240;
  --navy-foot: #06101e;
  --cream: #faf6ee;
  --body-dark: #3a3a5c;
  --text-muted: #7a7a9a;

  /* Typography families */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-ui: "Barlow", system-ui, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --container-max: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Type scale — fixed 16px base (1rem = 16px) */
  --text-xs: 0.75rem;           /* 12px — labels, buttons, footer */
  --text-sm: 0.875rem;          /* 14px — nav, meta, chapter text */
  --text-base: 1rem;            /* 16px — body & paragraphs */
  --text-md: 1rem;              /* 16px — primary reading text */
  --text-lg: 1.125rem;          /* 18px — pull quotes, emphasis */
  --text-xl: 1.25rem;           /* 20px — hero intro (optional bump) */
  --text-display-sm: 1.75rem;   /* 28px — section headings */
  --text-display-md: 2.25rem;   /* 36px — author name */
  --text-display-lg: 3.1875rem; /* 51px — major headings */
  --text-hero: 3.5rem;          /* 56px — hero title (desktop) */
  --text-quote: 1.9rem;         /* 30px — blockquote */
  --leading-body: 1.85;
  --leading-tight: 1.35;

  /* Hero book — scales per breakpoint */
  --hero-book-size: min(70vw, 15rem);
}

/* ── 3. Layout ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--prose {
  max-width: 52rem;
  margin-inline: auto;
}

.container--center {
  max-width: 44rem;
  margin-inline: auto;
}

/* ── 4. Shared components ────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label__bar {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label__text {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--gold);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
}

.section-label--muted .section-label__text {
  color: var(--text-muted);
}

.section-label--light .section-label__text {
  color: rgba(255, 255, 255, 0.65);
}

.section-label--compact .section-label__text {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
}

.section-label--spaced {
  margin-bottom: 12px;
}

.gold-bar {
  height: 4px;
  opacity: 0.6;
  background-image: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0) 0%,
    #c9a84c 25%,
    #e2c97e 50%,
    #c9a84c 75%,
    rgba(201, 168, 76, 0) 100%
  );
}

/* Body copy — Montserrat paragraphs */
.prose {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body-dark);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.prose strong {
  font-weight: 600;
  color: var(--navy-dark);
}

.prose--on-dark {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
}

.prose--on-dark strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* Buttons */
.btn-primary,
.btn-outline,
.btn-order-primary,
.btn-order-outline {
  font-family: var(--font-ui);
  letter-spacing: 1.92px;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  font-weight: 600;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  padding: 14px 35px;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  padding: 14px 35px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-order-primary {
  font-weight: 600;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  padding: 17px 33px;
  border: 1px solid var(--gold);
}

.btn-order-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-order-outline {
  font-weight: 500;
  color: var(--gold-light);
  font-size: var(--text-xs);
  padding: 17px 33px;
  border: 1px solid rgba(201, 168, 76, 0.5);
}

.btn-order-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Section shells */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy-dark);
  overflow: hidden;
  position: relative;
}

.section--mid {
  background: var(--navy-mid);
  overflow: hidden;
  position: relative;
}

/* ── 5. Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(10, 22, 40, 0.96);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 20px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold);
  font-size: var(--text-md);
  letter-spacing: 0.88px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--gold);
}

.nav__cta {
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--gold-light);
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10, 22, 40, 0.98);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding-inline: var(--gutter);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.nav__mobile.is-open {
  max-height: 400px;
  padding-block: 20px;
}

.nav__mobile-link {
  font-family: var(--font-ui);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-block: 12px;
  display: block;
  transition: color 0.2s;
}

.nav__mobile-link:hover {
  color: var(--gold);
}

.nav__mobile-cta {
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 2px;
  text-align: center;
  display: block;
  margin-top: 8px;
  transition: background 0.2s;
}

.nav__mobile-cta:hover {
  background: var(--gold-light);
}

/* ── 6. Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy-dark);
  min-height: 100svh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 55%),
    linear-gradient(to right, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.45) 45%, rgba(10, 22, 40, 0.15) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

.hero__content > .container {
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero__text {
  max-width: 32rem;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.hero__label-bar {
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__label-text {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--gold);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: 0.75rem;
}

.hero__title-line1,
.hero__title-line2 {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1.08;
}

.hero__title-line1 {
  color: #fff;
}

.hero__title-line2 {
  font-style: italic;
  color: var(--gold);
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-md);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__body {
  max-width: 30rem;
  margin-bottom: 1.75rem;
}

.hero__body p {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.hero__body-em {
  color: var(--gold-light) !important;
  font-style: italic;
  font-weight: 500;
  margin-top: 14px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__cover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__cover-glow {
  position: relative;
  width: var(--hero-book-size);
  max-width: 100%;
  margin-inline: auto;
}

.hero__cover-glow::before {
  content: "";
  position: absolute;
  inset: -2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero__cover {
  position: relative;
  display: block;
  width: var(--hero-book-size);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(-12px 18px 32px rgba(0, 0, 0, 0.6));
}

/* ── 7. The story ────────────────────────────────────────────────────────── */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 6rem);
}

.story__left {
  display: flex;
  flex-direction: column;
}

.story__heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-dark);
  font-size: var(--text-display-lg);
  line-height: 1.15;
  margin-bottom: 24px;
  margin-top: 12px;
}

.story__heading em {
  font-style: italic;
  color: var(--gold);
}

.story__quote {
  border-left: 3px solid var(--gold);
  padding-left: 27px;
}

.story__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--body-dark);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.story__right {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.story__para {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body-dark);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.story__para strong {
  font-weight: 600;
  color: var(--navy-dark);
}

.timeline {
  margin-top: 16px;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
}

.timeline__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: var(--text-lg);
  padding-top: 2px;
}

.timeline__title {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--navy-dark);
  font-size: var(--text-md);
  line-height: 1.65;
  margin-bottom: 6px;
}

.timeline__desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body-dark);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

/* ── 8. Dark band ──────────────────────────────────────────────────────────── */
.darkband__deco {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(200px, 40vw, 600px);
  background-image: radial-gradient(ellipse at right center, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.darkband__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.darkband__heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: var(--text-display-sm);
  line-height: 1.2;
  margin-block: 20px;
}

.darkband__heading span {
  color: var(--gold);
}

.darkband__para {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  margin-top: 20px;
}

.darkband__para strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__icon {
  font-size: 24px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: var(--text-md);
  line-height: var(--leading-tight);
}

.card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

/* ── 9. Chapters ───────────────────────────────────────────────────────────── */
.chapters__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapters__header .section-label {
  justify-content: center;
  margin-bottom: 16px;
}

.chapters__heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-dark);
  font-size: var(--text-display-sm);
  line-height: 1.2;
}

.chapters__sub {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-top: 14px;
  max-width: 520px;
  line-height: var(--leading-body);
}

.chapters__grid-wrap {
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.chapters__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.chapter {
  background: #fff;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.12);
}

.chapter:last-child {
  border-bottom: none;
}

.chapter__num {
  font-family: var(--font-accent);
  font-weight: 300;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.chapter__title {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--navy-dark);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
}

.chapter__desc {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

/* ── 10. Quote block ───────────────────────────────────────────────────────── */
.quote-section {
  background: var(--cream);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
}

.quote__mark {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold);
  font-size: 6rem;
  line-height: 3rem;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 24px;
}

.quote__text {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--navy-dark);
  font-size: var(--text-quote);
  line-height: 1.65;
  text-align: center;
}

.quote__attr {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 32px;
}

/* ── 11. Author ────────────────────────────────────────────────────────────── */
.author__deco-quote {
  position: absolute;
  right: 0;
  top: 3rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: rgba(201, 168, 76, 0.04);
  font-size: 20rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.author__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.author__photo-wrap {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.author__photo-border {
  position: absolute;
  top: 8%;
  bottom: 0;
  left: 15%;
  right: -3%;
  border: 2px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.author__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.author__bio {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.author__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: var(--text-display-md);
  line-height: 1.2;
  margin-top: 4px;
}

.author__name span {
  color: var(--gold);
}

.author__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.tag {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--gold);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6.6px 13.8px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 2px;
}

.author__para {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.author__para strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

/* ── 12. Order ─────────────────────────────────────────────────────────────── */
.order__glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.order__inner {
  position: relative;
  text-align: center;
}

.order__label {
  justify-content: center;
  margin-bottom: 24px;
}

.order__heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: var(--text-display-lg);
  line-height: 1.15;
  margin-bottom: 20px;
}

.order__heading span {
  color: var(--gold);
}

.order__sub {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  margin-bottom: 40px;
}

.order__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ── 13. Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-foot);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: 2.75rem 3rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  max-width: 28rem;
}

.footer__mark {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 50%,
    transparent 100%
  );
}

.footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.footer__title {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.footer__divider {
  width: min(100%, 12rem);
  height: 1px;
  background: rgba(201, 168, 76, 0.25);
}

.footer__copy {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 24rem;
}

/* ── 14. Responsive ──────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 540px) {
  .chapters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter:nth-child(odd) {
    border-right: 1px solid rgba(10, 22, 40, 0.12);
  }

  .chapter:nth-last-child(1),
  .chapter:nth-last-child(2) {
    border-bottom: none;
  }
}

@media (min-width: 768px) {
  .footer__inner {
    gap: 1.5rem;
    padding-block: 3rem 3.25rem;
  }

  .footer__name {
    font-size: 1.25rem;
  }

  .footer__title {
    font-size: 1.0625rem;
  }
}

@media (min-width: 900px) {
  .chapters__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chapter:nth-child(3n) {
    border-right: none;
  }

  .chapter:not(:nth-child(3n)) {
    border-right: 1px solid rgba(10, 22, 40, 0.12);
  }

  .chapter:nth-child(n + 16) {
    border-bottom: none;
  }
}

@media (min-width: 640px) {
  :root {
    --hero-book-size: min(44vw, 17.5rem);
  }
}

@media (min-width: 768px) {
  :root {
    --hero-book-size: min(36vw, 19rem);
  }

  .hero__title-line1,
  .hero__title-line2 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --hero-book-size: min(20rem, 28vw);
  }

  .hero__content {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero__text {
    max-width: 30rem;
    justify-self: start;
  }

  .hero__title-line1,
  .hero__title-line2 {
    font-size: var(--text-hero);
  }

  .hero__cover-wrap {
    justify-content: center;
    justify-self: center;
    width: 100%;
  }

  .story__grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .story__left {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .darkband__grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .author__grid {
    grid-template-columns: 1fr 1fr;
  }

  .author__photo-wrap {
    margin-inline: 0;
  }
}

@media (min-width: 1200px) {
  :root {
    --hero-book-size: min(22rem, 26vw);
  }

  .hero__grid {
    gap: 3rem;
  }
}

@media (max-width: 899px) and (min-width: 540px) {
  .chapter {
    border-bottom: 1px solid rgba(10, 22, 40, 0.12);
  }
}

@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .nav__mobile {
    display: flex;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__links {
    gap: 1.5rem;
  }

  .nav__logo {
    font-size: 0.9375rem;
  }
}

@media (max-width: 539px) {
  .timeline__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline__year {
    padding-top: 0;
  }

  .chapter {
    padding: 20px 1.25rem;
  }

}
