/* Thoughtkind Press — shared styles. Palette and type follow the book covers and interiors. */
:root {
  --forest: #2D3D32;
  --forest-deep: #233027;
  --copper: #C8825E;
  --copper-ink: #9A5634;   /* copper dark enough for text on cream */
  --cream: #F4F3E7;
  --paper: #FBFAF4;
  --ink: #1F2A23;
  --ink-soft: #55625A;
  --on-dark: #F4F3E7;
  --on-dark-soft: #C9D0C4;
  --rule: #DAD7C7;
  --rule-dark: #46574B;
  --measure: 66ch;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--forest); text-underline-offset: 0.18em; }
a:hover { color: var(--copper-ink); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--forest-deep); color: var(--on-dark); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.wordmark {
  font-weight: 900; font-size: 1.2rem; letter-spacing: 0.01em;
  color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.wordmark svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 900; max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); max-width: 28ch; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; max-width: 54ch; margin-top: 20px; }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 4px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; line-height: 1.25;
}
.btn-copper { background: var(--copper); color: var(--forest-deep); }
.btn-copper:hover { background: #D6936F; color: var(--forest-deep); }
.btn-forest { background: var(--forest); color: var(--on-dark); }
.btn-forest:hover { background: var(--forest-deep); color: var(--on-dark); }
.btn-line { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-line:hover { background: var(--cream); color: var(--forest); }
.on-dark .btn-line { border-color: var(--on-dark-soft); color: var(--on-dark); }
.on-dark .btn-line:hover { background: var(--forest-deep); color: var(--on-dark); }
.btn small { display: block; font-weight: 600; font-size: 0.8rem; opacity: 0.8; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }
.cream { background: var(--cream); }
.on-dark { background: var(--forest); color: var(--on-dark); }
.on-dark .lede, .on-dark .section-head p { color: var(--on-dark-soft); }
.on-dark a:not(.btn) { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
}
.hero .proof { margin-top: 26px; font-size: 0.95rem; color: var(--on-dark-soft); max-width: 48ch; }
.hero .proof strong { color: var(--on-dark); }

/* Rotation chart (on dark) */
.rotation { margin: 0; }
.rotation svg { width: 100%; height: auto; }
.rotation figcaption { font-size: 0.92rem; color: var(--on-dark-soft); margin-top: 12px; max-width: 52ch; }
.rot-grid line { stroke: var(--rule-dark); stroke-width: 1; }
.rot-day { font-family: var(--sans); font-size: 11px; fill: var(--on-dark-soft); }
.rot-week { font-family: var(--sans); font-size: 11px; fill: var(--on-dark); font-weight: 800; }
.rot-bar { fill: #8FA394; }
.rot-bar.new { fill: var(--copper); }
.rot-bar.leaving { fill: #5E7264; }
.rot-label { font-family: var(--sans); font-size: 11px; fill: var(--on-dark); }
.rot-today { stroke: var(--cream); stroke-width: 2.5; }
.rot-today-label { font-family: var(--sans); font-size: 13px; font-weight: 800; fill: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .rot-today { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s 0.4s ease-out forwards; }
  .rot-today-label { opacity: 0; animation: appear 0.4s 1.3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- Feature list ---------- */
.features { margin: 0; display: grid; }
.features > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 26px 0; border-top: 1px solid var(--rule);
}
.features > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .features > div { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; } }
.features dt { font-weight: 800; font-size: 1.15rem; }
.features dd { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Books ---------- */
.books { display: grid; gap: 64px; }
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 760px) { .book { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; } }
.cover-img {
  width: 100%; max-width: 230px; height: auto; border-radius: 2px 4px 4px 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 34px -20px rgba(31,42,35,0.55);
  background: var(--cream);
}
.book .series { font-weight: 800; color: var(--copper-ink); font-size: 0.9rem; margin-bottom: 6px; }
.book h3 { font-size: 1.5rem; max-width: 30ch; }
.book .sub { color: var(--ink-soft); margin: 10px 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; max-width: 62ch; }
.facts li { padding-left: 20px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 9px; height: 2px; background: var(--copper); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Reader shelf */
.shelf { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shelf article { display: flex; flex-direction: column; }
.shelf .cover-img { max-width: 100%; aspect-ratio: auto; margin-bottom: 18px; }
.shelf h3 { font-size: 1.08rem; line-height: 1.3; }
.shelf p { font-size: 0.95rem; color: var(--ink-soft); margin: 8px 0 14px; }
.shelf .links { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; font-weight: 800; font-size: 0.95rem; }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: 44px; }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; } }
blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--copper); }
blockquote p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; max-width: 44ch; }
blockquote footer { color: var(--ink-soft); font-size: 0.95rem; }
blockquote footer strong { color: var(--ink); display: block; }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 30px; }

/* ---------- Starter pack ---------- */
.pack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 900px) { .pack { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.pack img { width: 100%; height: auto; border-radius: 6px; }
.pack ol { margin: 18px 0 0; padding-left: 1.3em; display: grid; gap: 8px; max-width: 56ch; color: var(--on-dark-soft); }
.pack ol strong { color: var(--on-dark); }

/* ---------- Program table ---------- */
.license-table { width: 100%; border-collapse: collapse; max-width: 780px; }
.license-table th, .license-table td { text-align: left; padding: 18px 14px 18px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.license-table th { font-weight: 800; font-size: 1.05rem; width: 32%; }
.license-table td { color: var(--ink-soft); }

/* ---------- Author ---------- */
.author h2, .author p { max-width: 64ch; }
.author p { font-family: var(--serif); }

/* ---------- Paths (home) ---------- */
.paths { display: grid; gap: 20px; }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { padding: 34px; border-radius: 6px; background: var(--forest-deep); }
.path h2 { font-size: 1.6rem; margin-bottom: 12px; }
.path p { color: var(--on-dark-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-soft); padding: 44px 0 52px; font-size: 0.9rem; }
.site-footer p { max-width: 82ch; }
.site-footer a { color: var(--on-dark); }
blockquote.reported p { font-style: italic; }

/* ---------- Cover placeholder (books not yet released) ---------- */
.cover-ph {
  aspect-ratio: 8.5 / 11; max-width: 230px; width: 100%; background: var(--forest); color: var(--on-dark);
  border-radius: 4px; padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 24px rgba(31, 42, 35, 0.18); margin-bottom: 18px;
}
.cover-ph span { font-weight: 900; font-size: 1.45rem; line-height: 1.15; }
.cover-ph small { color: var(--copper); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }
.book .cover-ph { margin-bottom: 0; }

/* ---------- Content pages (guides, about, resources) ---------- */
.wrap.prose { max-width: 1140px; }
.prose .callout, .prose .toc { max-width: calc(var(--measure) + 48px); }
.prose h2 { margin-top: 44px; }
.prose h2:first-of-type { margin-top: 36px; }
.prose p, .prose li { max-width: var(--measure); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.lede-ink { font-size: 1.2rem; color: var(--ink-soft); margin-top: 14px; }
.byline { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.on-dark-crumbs, .on-dark-crumbs a { color: var(--on-dark-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 800; color: var(--copper); margin-bottom: 10px; }
.toc { background: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 22px; margin: 30px 0; }
.toc ol { margin: 8px 0 0; }
.toc li { margin-bottom: 4px; }
blockquote.script { margin: 20px 0; }
blockquote.script p { max-width: var(--measure); font-size: 1.1rem; }
.callout { background: var(--cream); border-left: 4px solid var(--copper); padding: 6px 24px 22px; margin: 44px 0 20px; border-radius: 4px; }
.callout h2 { margin-top: 18px !important; }
.callout .btn { margin: 4px 8px 4px 0; }
.btn-line-ink { border-color: var(--forest); color: var(--forest); background: transparent; }
.sources li { font-size: 0.95rem; }
.sit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px 30px; }
.sit-group h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--copper-ink); }
.sit-group ul { margin: 0; padding-left: 1.1em; }
.sit-group li { margin-bottom: 4px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.res { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 24px; }
.res h2 { font-size: 1.3rem; margin: 6px 0 10px; }
.res .series { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
