/* Jack Bare — site.css (v2)
   Calm literary storefront. Warm paper, dark ink, book-forward.
   Cover stays left of copy at every width. Forms fill their cards. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f1ea;
  --bg-soft: #ece7dc;
  --paper: #fbf8f2;
  --text: #1a1714;
  --muted: #5c574f;
  --border: #d5cfc3;
  --accent: #1f1c19;
  --on-accent: #f4f1ea;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --max: 38rem;
  --wide: 48rem;
  --space: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: #000; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  z-index: 40;
}
.skip:focus { left: 0.75rem; }

.wrap {
  width: min(100% - 1.75rem, var(--wide));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
  padding: 0.95rem 0;
}
.site-mark {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.site-mark:hover { text-decoration: none; color: #000; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

main { padding: 0 0 3.5rem; }

.hero {
  padding: 3.25rem 0 2.5rem;
}
.section {
  padding: 2.35rem 0;
  border-top: 1px solid var(--border);
}
.section-tight { padding: 2rem 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
h2 {
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.12rem;
  margin: 0 0 0.3rem;
}

.lede, .subhead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.35rem;
  max-width: 38rem;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

.meta-note,
.article-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
  margin: 1.25rem 0 0;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn:hover { background: #000; border-color: #000; color: var(--on-accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

/* Capture: the form fills the card; no leftover column beside the button. */
.capture {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.5rem 1.45rem 1.4rem;
  margin: 1.75rem 0 0;
}
.capture h2 { margin-bottom: 0.5rem; }
.capture form { width: 100%; }
.capture > p:last-child { margin-bottom: 0; }
.capture label {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 1.1rem 0 0.4rem;
}
.capture .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
}
.capture input[type="email"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--text);
}
.capture .form-row .btn {
  white-space: nowrap;
  align-self: stretch;
}
.capture .note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.subtitle {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.one-line, .blurb {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.1rem 0;
}

.practice-steps {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.practice-steps ol { margin-bottom: 0; }

/* Book cards: cover LEFT, copy RIGHT — never stack under the cover. */
.book-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.book-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  margin: 0;
}
.book-list .book-card:last-child { border-bottom: 1px solid var(--border); }
.book-card-cover {
  flex: 0 0 auto;
  width: 6.25rem;
  display: block;
  text-decoration: none;
}
.book-card-cover img,
.book-hero img.cover {
  display: block;
  height: auto;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.08);
}
.book-card-cover img { width: 100%; }
.book-hero img.cover {
  width: 7rem;
  flex: 0 0 auto;
}
.book-card-body {
  flex: 1 1 auto;
  min-width: 0;
}
.book-card-body h3 a { text-decoration: none; }
.book-card-body h3 a:hover { text-decoration: underline; }
.book-card-body .cta-row { margin-top: 0.35rem; }

.practice-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.practice-list li {
  border-top: 1px solid var(--border);
  padding: 1.15rem 0;
  margin: 0;
}
.practice-list li:last-child { border-bottom: 1px solid var(--border); }
.practice-list h3 a { text-decoration: none; }
.practice-list h3 a:hover { text-decoration: underline; }

/* Product-page hero: cover + title/lede only. CTAs sit full-width below. */
.book-hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.15rem 1.4rem;
  margin: 0 0 1.35rem;
}
.book-hero .cover,
.book-hero-cover {
  flex: 0 0 auto;
  width: 7rem;
}
.book-hero-body {
  flex: 1 1 auto;
  min-width: 0;
}
.book-hero-body h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin-bottom: 0.4rem;
}
.page-start { padding-top: 2.6rem; }

.readers {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem 1.25rem;
  margin: 0;
}
.page-start .readers { margin: 1.75rem 0; }
.readers h2 { margin-top: 0; }
.readers blockquote {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--border);
  font-style: italic;
  color: var(--text);
}
.readers blockquote p { margin-bottom: 0.35rem; }
.readers cite {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
}
.readers .fine {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.1rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-mark {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.footer-tag { margin: 0 0 0.85rem; }
.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 1.1rem;
}
.site-footer .fine { margin-top: 0.85rem; font-size: 0.8rem; }
.contact-line { margin: 0.85rem 0 0; }

@media (min-width: 520px) {
  .book-card-cover { width: 7.5rem; }
  .book-hero .cover,
  .book-hero-cover,
  .book-hero img.cover { width: 8.75rem; }
}

@media (min-width: 720px) {
  .hero { padding: 4.25rem 0 3rem; }
  .section { padding: 2.85rem 0; }
  .book-card-cover { width: 8.75rem; }
  .book-hero .cover,
  .book-hero-cover,
  .book-hero img.cover { width: 10.25rem; }
  .book-card { gap: 1.15rem 1.55rem; padding: 1.6rem 0; }
  .wrap,
  .wrap-narrow { width: min(100% - 2.25rem, var(--wide)); }
  .wrap-narrow { width: min(100% - 2.25rem, var(--max)); }
}

@media (max-width: 560px) {
  html { font-size: 17px; }
  .hero { padding: 2.35rem 0 1.85rem; }
  .capture .form-row { grid-template-columns: 1fr; }
  .hero .cta-row .btn,
  .page-start > .cta-row .btn { width: 100%; }
  .book-card-cover { width: 5.65rem; }
  .book-hero img.cover { width: 6.25rem; }
}
