@import url('assets/fonts/newsreader.css');
@import url('assets/fonts/source-sans-3.css');

:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #342d26;
  --muted: #6d6258;
  --accent: #93462f;
  --accent-hover: #70331f;
  --line: #d9d0c4;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: #e4c9ae; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 16px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 10px 16px; color: var(--paper); background: var(--ink); z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 27px 24px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font: 500 24px/1.2 var(--serif); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 16px; padding-block: 6px; }
nav a:hover { text-decoration: underline; }
.book { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; align-items: center; padding-block: 76px 68px; }
.book-figure { margin: 0; text-align: center; }
.cover-link { display: block; width: 300px; max-width: 100%; margin: auto; }
.book-cover { display: block; width: 100%; height: auto; box-shadow: 0 12px 32px -12px rgb(65 43 25 / 35%), 0 2px 5px rgb(65 43 25 / 8%); }
figcaption { margin-top: 24px; color: var(--muted); font-size: 14px; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.25vw, 66px); letter-spacing: -.025em; line-height: 1.03; margin: 0 0 18px; }
.subtitle { color: var(--accent); font: 400 25px/1.3 var(--serif); max-width: 31ch; margin-bottom: 18px; text-wrap: pretty; }
.byline { font-size: 16px; margin-bottom: 24px; }
.byline a { color: var(--ink); text-decoration-color: var(--line); }
.byline a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.description { font-size: 18px; line-height: 1.55; max-width: 57ch; }
.book-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; font-size: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 21px; background: var(--accent); color: #fffaf5; border-radius: 3px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease; }
.button:hover { background: var(--accent-hover); color: #fffaf5; }
.affiliate-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.course { align-items: center; }
.course-benefits { margin: 0 0 20px; padding-left: 20px; }
.course-benefits li { margin-bottom: 8px; padding-left: 3px; }
.course-card { display: block; margin: 0; }
.course .section-heading { margin-bottom: 24px; }
.course-card img { display: block; width: 100%; height: auto; border-radius: 3px; }
.quiet-link { color: var(--muted); }
.section { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 72px; border-top: 1px solid var(--line); padding-block: 47px 48px; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.section-heading p { color: var(--muted); font-size: 16px; }
.section-body > p { max-width: 64ch; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; margin-top: 5px; }
.writing { display: block; }
.writing .section-heading { margin-bottom: 24px; }
.reading-guides { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.reading-guides th, .reading-guides td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--line); }
.reading-guides thead th { padding: 0 0 15px; color: var(--ink); font: 400 23px/1.3 var(--serif); }
.reading-guides th:first-child { width: 34%; padding-right: 32px; }
.reading-guides tbody th { font-weight: 400; }
.reading-guides tbody tr:last-child th, .reading-guides tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.reading-guides a { color: #795c46; text-decoration-color: #c6b5a5; }
.reading-guides a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.faq-note { margin: 32px 0 0; color: var(--muted); font-size: 16px; }
.faq-note a { color: #795c46; text-decoration-color: #c6b5a5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: center; text-align: center; gap: 20px; padding-block: 24px 32px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
@media (max-width: 900px) {
  .book, .section { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; }
  .cover-link { width: 265px; }
  .book { padding-block: 56px; }
  h1 { font-size: 51px; }
  .subtitle { font-size: 23px; }
  .book-actions { gap: 18px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; padding-block: 22px 16px; gap: 12px; }
  .wordmark { font-size: 23px; }
  nav { gap: 24px; }
  nav a { font-size: 15px; }
  .book { display: flex; flex-direction: column; gap: 30px; padding-block: 38px 44px; align-items: stretch; }
  .cover-link { width: 220px; }
  figcaption { margin-top: 16px; font-size: 13px; }
  h1 { font-size: 49px; }
  .subtitle { font-size: 24px; max-width: 30ch; }
  .byline { margin-bottom: 20px; }
  .book-actions { margin-top: 24px; gap: 20px; }
  .section { grid-template-columns: 1fr; gap: 14px; padding-block: 34px; }
  h2 { font-size: 33px; }
  .section-heading p { margin-bottom: 4px; }
  .reading-guides { font-size: 16px; }
  .reading-guides th:first-child { width: 40%; padding-right: 16px; }
  .site-footer { flex-direction: column; gap: 8px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
