:root {
  --ink: #12332e;
  --ink-soft: #31504a;
  --paper: #f3ecdf;
  --paper-light: #fbf8f1;
  --copper: #b9663a;
  --copper-dark: #8d4727;
  --line: #d9cdbb;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(18, 51, 46, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  transform: translateY(-150%);
}

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

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(18, 51, 46, 0.1);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand-mark { width: 34px; height: 34px; }

.nav-menu { display: flex; align-items: center; gap: 1.7rem; }
.nav-menu a { text-decoration: none; font-size: 0.94rem; font-weight: 650; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--copper-dark); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(185, 102, 58, 0.15), transparent 28rem),
    linear-gradient(135deg, var(--paper-light), var(--paper));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--copper-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.08; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.045em; }
h2 { margin: 0 0 1.2rem; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; }
h3 { margin: 0 0 0.6rem; font-size: 1.35rem; }

.lead { max-width: 690px; margin: 1.7rem 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-note { max-width: 620px; margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.96rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0.72rem 1.15rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); background: #1d4640; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--white); }
.button.secondary.on-dark { border-color: var(--paper-light); color: var(--paper-light); }
.button.secondary.on-dark:hover, .button.secondary.on-dark:focus-visible { background: var(--paper-light); color: var(--ink); }
.button.copper { border-color: var(--copper-dark); background: var(--copper-dark); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.58; transform: none; }

.cover-frame {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(100%, 390px);
  margin-inline: auto;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border: 1px solid var(--copper);
}

.cover-frame img { width: 100%; height: auto; }

.section { padding: 88px 0; }
.section.tint { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--paper-light); }
.section-heading { max-width: 760px; margin-bottom: 2.6rem; }
.section-heading p { color: var(--ink-soft); font-size: 1.05rem; }
.dark .section-heading p { color: #d8dfd9; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { border-top: 3px solid var(--copper); padding: 1.5rem; background: var(--white); box-shadow: 0 10px 35px rgba(18, 51, 46, 0.07); }
.card p { margin-bottom: 0; color: var(--ink-soft); }
.card-number { display: block; margin-bottom: 1.4rem; color: var(--copper-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; }

.split { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.author-monogram { display: grid; width: min(100%, 260px); aspect-ratio: 1; place-items: center; border: 1px solid var(--copper); background: var(--paper-light); color: var(--ink); font-family: var(--serif); font-size: 6rem; }
.prose p { margin-top: 0; }

.quote { margin: 0; border-left: 3px solid var(--copper); padding-left: 1.4rem; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.35; }

.page-hero { padding: 72px 0 56px; background: var(--paper); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero .lead { max-width: 740px; }

.book-row { display: grid; grid-template-columns: minmax(230px, 330px) 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.book-row .cover-frame { transform: none; }
.book-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.book-choice { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; border-top: 3px solid var(--copper); padding: 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.book-choice img { width: 100%; height: auto; box-shadow: 0 8px 24px rgba(18, 51, 46, 0.14); }
.book-choice h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.65rem; color: var(--ink-soft); font-size: 0.83rem; }
.format-note { margin-top: 1.2rem; color: var(--ink-soft); font-size: 0.85rem; }

.resource-panel { margin-top: 2rem; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); box-shadow: var(--shadow); }
.resource-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.resource-fact { border-left: 2px solid var(--copper); padding-left: 1rem; }
.resource-fact strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.resource-fact span { color: var(--ink-soft); font-size: 0.9rem; }

.notice { border-left: 3px solid var(--copper); margin: 2rem 0; padding: 1rem 1.2rem; background: #f7efe5; }
.notice p { margin: 0; }

.footer { border-top: 1px solid rgba(18, 51, 46, 0.13); padding: 36px 0; color: var(--ink-soft); font-size: 0.88rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions { justify-content: center; }
.spacer-top { margin-top: 2rem; }

@media (max-width: 760px) {
  .shell, .narrow { width: min(100% - 30px, 1120px); }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 20px 1rem;
    background: var(--paper-light);
  }
  .nav-menu[data-open="true"] { display: flex; }
  .nav-menu a { padding: 0.65rem 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid, .book-row, .split, .book-choice-grid { grid-template-columns: 1fr; }
  .book-choice { grid-template-columns: 105px 1fr; }
  .hero-copy { order: 1; }
  .cover-frame { width: min(72vw, 330px); }
  .cards, .resource-facts { grid-template-columns: 1fr; }
  .author-monogram { width: 170px; font-size: 4rem; }
  .section { padding: 64px 0; }
  .footer-wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
