:root {
  --primary: #001f3f;
  --accent: #daa520;
  --text: #2c3038;
  --muted: #5a6570;
  --border: #d8dee6;
  --bg: #eef2f6;
  --card: #ffffff;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "EB Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body > header {
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
}

body > header nav {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

body > header a.brand {
  display: block;
  flex: 1 1 auto;
  min-width: min(100%, 18rem);
  margin-right: auto;
  line-height: 0;
  text-decoration: none;
}

body > header a.brand img {
  display: block;
  height: 4.5rem;
  width: auto;
  max-width: 100%;
}

body > header nav a {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

body > header nav a:hover {
  color: #fff;
  text-decoration: none;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4rem;
}

main.wide {
  max-width: 48rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

h1 {
  font-size: 2.45rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.lead {
  font-family: var(--font-body);
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1rem;
}

.soft-launch {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 2px rgba(0, 31, 63, 0.04);
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

footer p {
  margin: 0;
}

ul {
  padding-left: 1.25rem;
}

.policy-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero {
  margin-bottom: 0.5rem;
}

.hero .cta-row {
  margin-top: 1.5rem;
}

.section {
  margin: 2.25rem 0 0;
  padding: 0;
}

.section h2 {
  margin-top: 0;
  font-size: 1.65rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0;
}

.section-heading__icon {
  flex: 0 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.section-heading__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-heading__icon--mark {
  color: inherit;
}

.section-heading__icon--mark img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.section-heading__label {
  min-width: 0;
}

.series-intro {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
}

.series-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.85rem;
}

.series-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.series-item:hover {
  color: inherit;
}

.series-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--border);
}

.series-item:hover img {
  border-color: var(--accent);
}

.series-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.series-item__title cite {
  font-style: italic;
}

.series-item:hover .series-item__title {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.series-item__author {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.offer-facts {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.offer-facts__price {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

.offer-facts__close {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
}

.offer-facts__list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.offer-facts__list li {
  margin: 0.35rem 0;
}

.offer-facts__note {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}

.offer-facts .cta-row {
  margin-top: 1.1rem;
}

.differs-strip {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--card);
}

.differs-strip h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.differs-strip ul {
  margin: 0;
  padding-left: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.differs-strip li {
  margin: 0.4rem 0;
}

.differs-strip li::marker {
  color: var(--accent);
}

.home-note {
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.home-note h2,
.home-note .section-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.entity .section-heading {
  margin-bottom: 0.85rem;
}

.home-note__role {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-note__body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.home-note .cta-row {
  margin-top: 0.75rem;
}

.home-note--quiet {
  padding-top: 1rem;
}

.contact-facts dt {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-facts dd {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

@media (max-width: 40rem) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-item__title {
    font-size: 1.15rem;
  }
}

.cta-row {
  margin: 1.25rem 0 0;
}

.button,
.button:link,
.button:visited,
.button:hover,
.button:active,
.button:focus {
  text-decoration: none;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--primary);
  border-radius: 2px;
  border: 1px solid var(--primary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.pipeline p {
  color: var(--muted);
  margin: 0;
}

.pipeline cite {
  font-style: italic;
}

.entity {
  margin-top: 2.5rem;
  padding-top: 0;
}

.entity h2 {
  font-size: 1.35rem;
  margin-top: 0;
}

.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;
}

footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.85rem;
}

footer .footer-nav a {
  font-family: var(--font-ui);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

footer .footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  body > header nav {
    gap: 1rem;
  }

  body > header a.brand {
    flex: 1 1 100%;
    min-width: 0;
  }

  body > header a.brand img {
    height: 3.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* Catalog */
.catalog-hero {
  margin: 0 0 2rem;
}

.catalog-hero h1 {
  margin-bottom: 0.4rem;
}

.catalog-master {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: var(--primary);
}

.catalog-lede {
  margin: 0 0 0.75rem;
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--primary);
}

.catalog-theme {
  margin: 0 0 2.25rem;
}

.catalog-theme h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.catalog-intro {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
}

.catalog-theme .offer-facts {
  margin-top: 0;
}

.catalog-entry {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.catalog-entry:last-of-type {
  border-bottom: 1px solid var(--border);
}

.catalog-entry__cover {
  margin: 0;
}

.catalog-entry__cover.product-shot {
  --product-shot-bg: #f3f5f7;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(0, 31, 63, 0.04),
    0 10px 28px rgba(0, 31, 63, 0.07);
}

.catalog-entry__cover.product-shot img {
  display: block;
  width: 100%;
  /* Lock frame to hardcover photo ratio so ebook toggle doesn't jump */
  aspect-ratio: 801 / 1024;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  box-shadow: none;
  background: var(--product-shot-bg);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.catalog-entry__cover.product-shot img.is-swapping {
  opacity: 0.4;
}

.catalog-entry__cover.product-shot figcaption {
  margin: 0;
  padding: 0.65rem 0.75rem 0.8rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--border);
}

.format-toggle {
  display: flex;
  width: 100%;
  margin: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.format-toggle__btn {
  flex: 1 1 50%;
  margin: 0;
  padding: 0.65rem 0.5rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.format-toggle__btn:hover {
  color: var(--primary);
}

.format-toggle__btn[aria-pressed="true"] {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.format-toggle__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  z-index: 1;
}

.catalog-entry__cover.product-shot--ebook {
  --product-shot-bg: #f7f8fa;
}

.catalog-entry__cover.product-shot--ebook img {
  padding: 0.85rem 0.95rem;
  filter: drop-shadow(0 6px 16px rgba(0, 31, 63, 0.14));
}

.catalog-entry__cover.product-shot:not(.product-shot--ebook) img {
  padding: 0;
  filter: none;
}

.catalog-entry__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.catalog-entry__body .catalog-subtitle {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.catalog-entry__body .author {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.catalog-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
  margin: 1.1rem 0 0;
}

.catalog-entry__actions .button {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.catalog-entry__body .catalog-subtitle + .author {
  margin-top: 0.15rem;
}

.catalog-meta {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-meta li {
  margin: 0.2rem 0;
}

.catalog-meta strong {
  font-weight: 600;
  color: var(--text);
}

.catalog-blurb {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

.catalog-blurb cite {
  font-style: italic;
}

.text-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Title / book pages */
.breadcrumbs {
  margin: 0 0 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.book-page .catalog-entry {
  grid-template-columns: minmax(12rem, 15rem) 1fr;
  gap: 1.5rem 2rem;
  border-top: none;
  border-bottom: 1px solid var(--border);
  padding-top: 0;
}

@media (max-width: 48rem) {
  .catalog-entry,
  .book-page .catalog-entry {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .catalog-entry__cover,
  .book-page .catalog-entry__cover {
    max-width: 16rem;
    width: 100%;
  }
}

.book-page .catalog-entry__cover.product-shot {
  padding: 0;
}

.book-page .catalog-entry__cover.product-shot figcaption {
  padding: 0.7rem 0.75rem 0.85rem;
}

.book-page h1 {
  font-size: 1.85rem;
}

.book-page .tradition {
  margin: -0.35rem 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.book-offer {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.book-differs {
  margin: 2.25rem 0 0;
}

.book-differs h2,
.theme-siblings h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.book-differs p {
  margin: 0 0 0.85rem;
}

.book-differs p:last-child {
  margin-bottom: 0;
}

.theme-siblings {
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.theme-siblings__lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-siblings ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.theme-siblings li {
  margin: 0.4rem 0;
}

.theme-siblings a {
  font-weight: 600;
  text-decoration: none;
}

.theme-siblings a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.theme-siblings .sibling-author {
  color: var(--muted);
  font-weight: 400;
}

.book-ctas {
  margin: 2.25rem 0 0;
  padding: 1.35rem 0 1.35rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(218, 165, 32, 0.08), transparent 70%);
}

.book-ctas p {
  margin: 0 0 0.75rem;
}

.book-ctas p:last-child {
  margin-bottom: 0;
}

.book-ctas .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.catalog-entry__body .sample-link {
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-weight: 600;
}

.catalog-entry + .book-ctas {
  margin-top: 1.5rem;
}

.book-ctas h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.book-differs {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--card);
}

.book-differs h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.book-differs p:last-child {
  margin-bottom: 0;
}

.buy-path {
  margin: 0 0 1.35rem;
}

.buy-path:last-of-type {
  margin-bottom: 1rem;
}

.buy-path__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--primary);
}

.buy-path__price {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.buy-path__copy {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  color: var(--text);
  line-height: 1.55;
}

.buy-path--redeem {
  margin-top: 0.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.button--secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.button--secondary:hover {
  background: rgba(0, 31, 63, 0.06);
  color: var(--primary);
  border-color: var(--primary);
}

.buy-note {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
