:root {
  --coral: #f26861;
  --coral-dark: #c8433f;
  --ink: #2f3136;
  --muted: #686c73;
  --paper: #fffaf7;
  --white: #ffffff;
  --mint: #d7f0e6;
  --teal: #1f6d72;
  --gold: #f4c95d;
  --line: #eaded7;
  --shadow: 0 16px 38px rgba(47, 49, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  left: 16px;
  position: absolute;
  top: -60px;
  z-index: 20;
}

.skip-link:focus {
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  top: 12px;
}

.site-header {
  background: rgba(255, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner,
.footer__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px 22px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 999px;
  height: 48px;
  width: 48px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a,
.footer-links a {
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  background: var(--mint);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
}

.nav-toggle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: none;
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
}

.hero,
.page-hero,
.band,
.content-split,
.toolbar,
.book-grid,
.article-grid,
.gift-grid,
.contact-panel,
.article-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 22px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  min-height: 640px;
}

.hero h1,
.page-hero h1,
.article-hero h1,
.book-detail h1 {
  font-size: 58px;
  line-height: 1.02;
  margin: 10px 0 18px;
}

.page-hero.compact {
  padding-bottom: 28px;
}

.lede {
  color: var(--muted);
  font-size: 21px;
  max-width: 760px;
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.freshness {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.hero__media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-logo {
  border-radius: 999px;
  margin: 0 auto 24px;
}

.cover-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.cover-rail__item {
  align-items: center;
  aspect-ratio: 4 / 5.4;
  background: #f5eee8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.cover-rail img {
  max-height: 100%;
  object-fit: contain;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.content-split h2,
.callout h2,
.article-card h2,
.gift-card h2,
.edition-card h3,
.format-card h3 {
  line-height: 1.15;
  margin: 0 0 10px;
}

.path-grid,
.article-grid,
.gift-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.path-card,
.article-card,
.gift-card,
.book-card,
.edition-card,
.format-card,
.callout,
.contact-panel,
.answer-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(47, 49, 54, 0.07);
}

.path-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
}

.path-card img {
  aspect-ratio: 2 / 2.8;
  margin: 0 auto;
  object-fit: contain;
  width: 76%;
}

.path-card span,
.mini-book-list span,
.article-list span,
.meta-line {
  color: var(--muted);
  font-size: 13px;
}

.content-split {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
}

.toolbar {
  align-items: end;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px) 120px;
  padding-bottom: 22px;
  padding-top: 22px;
}

.toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.toolbar p {
  font-weight: 800;
  margin: 0;
}

.book-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.book-card__cover {
  align-items: center;
  aspect-ratio: 5 / 3.6;
  background: #f7eee7;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.book-card__cover img {
  max-height: 100%;
  object-fit: contain;
}

.book-card__body {
  padding: 18px;
}

.book-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 10px;
}

.book-card h3 a,
.article-card h2 a {
  text-decoration: none;
}

.tag-row span {
  background: var(--mint);
  border-radius: 999px;
  color: #15464a;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.format-pills span {
  background: #fff5ef;
  border: 1px solid #f4beb5;
  border-radius: 999px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.format-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.format-card {
  align-content: space-between;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
}

.format-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin: 0 0 8px;
}

.format-card .button {
  justify-self: start;
}
.book-detail {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 22px;
}

.book-detail__cover {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
}

.book-detail__cover img {
  max-height: 380px;
  object-fit: contain;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.facts div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 110px 1fr;
  padding-top: 10px;
}

.facts dt {
  color: var(--coral-dark);
  font-weight: 800;
}

.facts dd {
  margin: 0;
}

.edition-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.edition-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 112px 1fr;
  padding: 16px;
}

.edition-card img {
  aspect-ratio: 2 / 2.8;
  object-fit: contain;
  width: 112px;
}

.callout {
  background: var(--mint);
  padding: 24px;
}

.article-card,
.gift-card {
  padding: 22px;
}

.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-page {
  max-width: 920px;
}

.article-hero {
  margin-bottom: 34px;
}

.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.article-body h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 28px 0 10px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.answer-panel {
  margin-top: 30px;
  padding: 22px;
}

.mini-book-list {
  display: grid;
  gap: 12px;
}

.mini-book-list a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  padding: 10px;
  text-decoration: none;
}

.mini-book-list img {
  aspect-ratio: 2 / 2.8;
  object-fit: contain;
  grid-row: 1 / span 2;
  width: 64px;
}
.mini-book-list span,
.mini-book-list strong {
  grid-column: 2;
  min-width: 0;
}

.mini-book-list strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gift-card .mini-book-list a {
  padding: 12px;
}

.gift-grid {
  grid-template-columns: repeat(2, 1fr);
}

.about-logo {
  border-radius: 999px;
  margin-bottom: 18px;
}

.contact-panel {
  padding: 28px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  margin-top: 46px;
}

.footer__inner {
  align-items: start;
  padding-bottom: 36px;
  padding-top: 36px;
}

.site-footer p {
  color: #ddd7d1;
  max-width: 560px;
}

.footer-links {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.footer-links a {
  color: var(--white);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 12px 22px 18px;
    position: absolute;
    right: 0;
    top: 77px;
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .hero,
  .content-split,
  .book-detail,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1,
  .article-hero h1,
  .book-detail h1 {
    font-size: 42px;
  }

  .path-grid,
  .book-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edition-grid,
  .format-grid,
  .gift-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand span {
    font-size: 15px;
  }

  .hero,
  .page-hero,
  .band,
  .content-split,
  .toolbar,
  .book-grid,
  .article-grid,
  .gift-grid,
  .contact-panel,
  .article-page,
  .book-detail {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1,
  .page-hero h1,
  .article-hero h1,
  .book-detail h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 18px;
  }

  .path-grid,
  .book-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .cover-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .edition-card,
  .facts div {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 22px;
  }
}
