/* ============================================================================
   acacia90 — shared editorial system (multi-page practice publication)
   Canvas basis: 1440px desktop; content max 1100px; side padding 48px; centered.
   Calm editorial density: type + space + thin rules + numbers, no imagery,
   no gradients, no cards, no shadows, no icon libraries.
   ========================================================================== */

:root {
  --bg: #FAF6F0;          /* warm paper (updated per brief) */
  --fg: #24221E;          /* soft near-black (given) */
  --fg-muted: #6B6861;    /* warm gray (given) */
  --rule: #DAD5CC;        /* thin rules (given) */
  --accent: #6F7D5F;      /* muted olive, extremely restrained (given) */

  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-max: 1100px;
  --content-pad: 48px;
  --text-max: 640px;
  --title-max: 820px;
  --section-pad: 96px;    /* given band: 90–110px */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* fixed-header clearance: content always starts below the nav's max height */
  padding-top: 96px;
}

::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* ---------- shared type tiers ---------- */

.label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.micro {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

/* page main title (inner pages): 38px / 500 / 1.15 */
.page-title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: var(--title-max);
}

.hero-title {
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.012em;
  color: var(--fg);
  max-width: var(--title-max);
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: var(--title-max);
}

.sub-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
  max-width: var(--text-max);
}

.note-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: var(--text-max);
}

.pull-quote {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

/* asymmetric editorial split: ~60% main / ~35% aside / 5% breathing gap */
.split {
  display: grid;
  grid-template-columns: 60% 35%;
  column-gap: 5%;
  align-items: start;
}

/* ---------- nav (transparent; text-only; real page links) ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: transparent; /* at page top: transparent, no rule */
  border-bottom: 1px solid transparent;
  padding: 32px 0;
  transition: background 250ms ease, border-color 250ms ease, padding 250ms ease;
}
/* scrolled (>10px): quiet translucent warm-paper veil + hairline rule — no shadow,
   never a heavy bar or a white block */
body.scrolled .nav {
  background: rgba(250, 246, 240, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
  padding: 18px 0;
}
.nav .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 300ms ease-out;
}
.nav-links a:hover { color: var(--accent); }
/* current page: olive + underline */
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
/* scrolled: text deepens alongside the veil */
body.scrolled .nav-links a { color: var(--fg); }
body.scrolled .nav-links a:hover { color: var(--accent); }
body.scrolled .nav-links a[aria-current="page"] { color: var(--accent); }

/* ---------- section rhythm ---------- */

.section { padding: var(--section-pad) 0; }
.section.ruled { border-top: 1px solid var(--rule); }

/* page header band for inner pages: body padding-top (96px) + 24px = 120px given */
.page-head {
  padding-top: 24px;
  padding-bottom: 64px;
}
.page-head .label { margin-bottom: 26px; }
.page-head .page-title + .body-text,
.page-head .page-title + .note-text { margin-top: 22px; }
/* page's core question as a small editorial lead-in under the title */
.page-question {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--accent);
  max-width: var(--text-max);
}

/* ---------- reveal (lightest fade-in; disabled under reduced-motion) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- text links & CTAs (text form / thin underline only) ---------- */

.cta {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 5px;
  transition: color 300ms ease-out, border-color 300ms ease-out;
}
.cta:hover { color: var(--accent); border-color: var(--accent); }
.cta--secondary { font-weight: 400; color: var(--fg-muted); }
.cta--secondary:hover { color: var(--accent); }
.cta--inline {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease-out;
}
.cta--inline:hover { border-color: var(--accent); }

.cta-group {
  display: flex;
  align-items: baseline;
  gap: 48px;
}

/* section-level "read more" line under a teaser */
.section-link { margin-top: 34px; }

/* ---------- hero (Home) ---------- */

.hero {
  padding-top: 24px; /* + body 96px = 120px from viewport top */
  padding-bottom: 88px;
}
.hero .label { margin-bottom: 30px; }
.hero-sub {
  margin-top: 34px;
  max-width: var(--text-max);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
}
.hero-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: var(--text-max);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------- tick lists (olive hairline marks) ---------- */

.tick-list { list-style: none; max-width: 480px; }
.tick-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Home · core tension (short version) ---------- */

.tension-q { margin-top: 30px; max-width: 520px; }
.belief-line {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--accent);
}

/* ---------- working method (Home overview + Practice full) ---------- */

.method-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}
.method-head .label { flex: 0 0 auto; }
.method-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 520px;
}

/* continuous sequence line: Direction → Execution → Review → Decision */
.method-sequence {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--rule);
}
.method-sequence .seq-step {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.method-sequence .seq-arrow {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  flex: 0 0 auto;
}

/* method cells: no cards — thin top rules + numbers only */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.stage {
  padding: 32px 0 36px;
  border-top: 1px solid var(--rule);
}
.method-grid--plain .stage { border-top: 1px solid var(--rule); }
.method-grid .stage:nth-child(-n+2) { border-top: 0; }
.method-grid--plain .stage:nth-child(-n+2) { border-top: 1px solid var(--rule); }
.stage-num {
  display: block;
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.stage-name {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.stage-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 14px;
}
.stage-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 440px;
}
.stage-list { list-style: none; max-width: 440px; }
.stage-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
}
.stage-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.stage-question {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--accent);
  max-width: 440px;
}

/* Home overview: one-line stage summaries in a 4-column ruled strip */
.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 40px;
  margin-top: 0;
}
.stage-strip .strip-cell {
  padding: 26px 0 6px;
  border-top: 1px solid var(--rule);
}
.strip-cell .strip-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
}
.strip-cell .strip-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------- practice principles rows (numbered, ruled) ---------- */

.principle {
  display: grid;
  grid-template-columns: 56px 1fr 300px;
  column-gap: 40px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.principle:last-of-type { border-bottom: 1px solid var(--rule); }
.principle-num {
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 6px;
}
.principle-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.principle-q {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--accent);
}
/* Home teaser: name + one-line gloss, two columns, no number column */
.teaser-list { list-style: none; }
.teaser-list li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.teaser-list li:last-child { border-bottom: 1px solid var(--rule); }
.teaser-name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
}
.teaser-gloss {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------- field guide · patterns + flow ---------- */

.pattern {
  display: grid;
  grid-template-columns: 1fr 300px;
  column-gap: 56px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.pattern:last-of-type { border-bottom: 1px solid var(--rule); }
.pattern-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 14px;
}
.pattern-name .pnum { color: var(--accent); font-weight: 500; }
.pattern-q {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 520px;
}
.pattern-anti {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.pattern-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: color 300ms ease-out, border-color 300ms ease-out;
}
.pattern-more:hover { color: var(--accent); border-color: var(--accent); }

.tests {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: 520px;
}
.tests li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
}
.tests li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* flow diagram: Source → Make → Check → Judge → Continue (line + arrow, CSS only) */
.pattern-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--rule);
}
.flow-node {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  flex: 0 0 auto;
}
.flow-conn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 24px;
}
.flow-conn::before {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}
.flow-conn::after {
  content: "→";
  font-size: 14px;
  color: var(--accent);
  margin-left: 8px;
}

/* ---------- open loop (dashed vertical line, never closed) ---------- */

.open-loop-track {
  position: relative;
  padding-left: 96px;
}
.open-loop-track::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -96px;             /* reaches back up through the section rule */
  bottom: 64px;           /* stops short of the tail — the loop stays open */
  width: 0;
  border-left: 1px dashed var(--accent);
  opacity: 0.65;
}
.open-loop-title { margin-bottom: 16px; }
.open-loop-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: var(--text-max);
  margin-bottom: 22px;
}
.open-loop-note {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  max-width: var(--text-max);
  margin-bottom: 40px;
}
.open-loop-quote { max-width: 520px; }
.open-loop-end {
  position: relative;
  height: 64px;           /* the dashed line stops here — open end */
}

/* ---------- field notes ---------- */

/* Home teaser rows: compact */
.notes-list { list-style: none; max-width: 900px; }
.notes-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: baseline;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.notes-list li:last-child { border-bottom: 1px solid var(--rule); }
.notes-meta {
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.notes-body { min-width: 0; }
.notes-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.notes-abstract {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 560px;
}
.notes-read {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease-out;
}
.notes-read:hover { border-color: var(--accent); }

/* Notes page: larger editorial entries */
.note-entry {
  padding: 38px 0;
  border-top: 1px solid var(--rule);
}
.note-entry:last-of-type { border-bottom: 1px solid var(--rule); }
.note-entry .notes-meta { margin-bottom: 14px; }
.note-entry .notes-title { font-size: 26px; line-height: 1.25; }
.note-entry .notes-abstract {
  margin-top: 12px;
  font-size: 16px;
  max-width: 600px;
}

/* ---------- in practice rows (work domain stronger than product) ---------- */

.practice-rows { max-width: 900px; }
.practice-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: background 0s; /* no blocks; hover changes text colors only */
}
.practice-row:last-of-type { border-bottom: 1px solid var(--rule); }
.practice-task {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);       /* work domain: stronger */
  transition: color 300ms ease-out;
}
.practice-right {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex: 0 0 auto;
}
.practice-tool {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted); /* product name: weaker, annotation tier */
  white-space: nowrap;
}
.practice-arrow {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 300ms ease-out;
}
.practice-row:hover .practice-task { color: var(--accent); }
.practice-row:hover .practice-arrow { transform: translateX(4px); }

/* Home teaser version: tighter */
.practice-rows--compact .practice-row { padding: 18px 0; }
.practice-rows--compact .practice-task { font-size: 17px; }

/* ---------- about (narrative) ---------- */

.about-flow { list-style: none; max-width: 620px; counter-reset: about; }
.about-flow li {
  position: relative;
  padding: 22px 0 22px 0;
  border-top: 1px solid var(--rule);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
}
.about-flow li:last-child { border-bottom: 1px solid var(--rule); }
.about-belief {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  max-width: 560px;
}

/* ---------- closing ---------- */

.closing .section-title { margin-bottom: 26px; }
.closing-body { margin-bottom: 42px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
}
.footer .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.footer-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 300ms ease-out;
}
.footer-nav a:hover { color: var(--accent); }

/* ---------- field guide · pattern detail pages ---------- */

/* "Back to field guide →": small link at container top, above the hero */
.detail-back { padding-top: 30px; }
.detail-back a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 300ms ease-out, border-color 300ms ease-out;
}
.detail-back a:hover { color: var(--accent); border-color: var(--accent); }

.page-head--detail { padding-top: 26px; padding-bottom: 56px; }
.page-head--detail .label { margin-bottom: 22px; }
.page-title .pnum { color: var(--accent); font-weight: 500; }

/* one content block per ruled band; thin rules separate sections */
.detail-section {
  padding: 52px 0;
  border-top: 1px solid var(--rule);
}
.detail-section .micro { margin-bottom: 18px; }
.detail-section .split { align-items: start; }

/* short thesis: lead statement under the title */
.detail-thesis {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: var(--text-max);
}

/* running body copy: 640px measure */
.detail-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
  max-width: var(--text-max);
}
.detail-body + .detail-body { margin-top: 18px; }

/* useful question: 20px emphasis + 2px olive bar (pull-quote) */
.detail-question { max-width: 560px; }

/* reflection / workflow review questions: numbered list */
.reflect-list { list-style: none; counter-reset: rq; max-width: var(--text-max); }
.reflect-list li {
  counter-increment: rq;
  position: relative;
  padding: 15px 0 15px 52px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
}
.reflect-list li:last-child { border-bottom: 1px solid var(--rule); }
.reflect-list li::before {
  content: counter(rq, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 18px;
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* previous / next pattern navigation */
.pattern-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}
.pattern-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 300ms ease-out, border-color 300ms ease-out;
}
.pattern-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- field notes · article detail pages ---------- */

/* number + date line above the article title (reuses notes-meta color tier) */
.article-meta { display: block; margin-bottom: 20px; }

/* article title: 32px (given for note pages) */
.article-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: var(--title-max);
}

/* abstract under the title: 17px warm gray */
.article-abstract {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: var(--text-max);
}

/* small related-practice / related-pattern reference line */
.related-ref {
  margin-top: 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}

/* prev / next: allow the right-hand link to align right */
.pattern-nav .nav-next { text-align: right; }

/* ---------- in practice · case detail pages ---------- */

/* product name 26px; work domain weaker */
.case-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: var(--title-max);
}
.case-domain { font-weight: 400; color: var(--fg-muted); }

/* lead-in paragraph: the real work question */
.case-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  max-width: var(--text-max);
}

/* narrative subheads — editorial, not a Q&A template */
.case-heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 14px;
}

/* Direction → Execution → Review → Decision as a contained analytical lens */
.method-sequence--lens { max-width: var(--text-max); }
.lens-note {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ---------- basic narrow-viewport readability guard ---------- */

@media (max-width: 900px) {
  :root { --section-pad: 76px; --content-pad: 32px; }
  .nav { padding: 22px 0; }
  .nav-links { gap: 20px; }
  .split { grid-template-columns: 1fr; row-gap: 44px; }
  .method-head { flex-direction: column; gap: 20px; align-items: flex-start; }
  .method-grid { grid-template-columns: 1fr; column-gap: 0; }
  .method-grid .stage:nth-child(2) { border-top: 1px solid var(--rule); }
  .method-sequence { flex-wrap: wrap; row-gap: 10px; }
  .stage-strip { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .principle { grid-template-columns: 40px 1fr; row-gap: 16px; }
  .principle-aside { grid-column: 2; }
  .pattern { grid-template-columns: 1fr; row-gap: 20px; }
  .pattern-flow { flex-wrap: wrap; row-gap: 12px; }
  .flow-conn { min-width: 40px; }
  .open-loop-track { padding-left: 56px; }
  .notes-list li { grid-template-columns: 1fr; gap: 10px; }
  .teaser-list li { grid-template-columns: 1fr; gap: 6px; }
  .cta-group { flex-direction: column; gap: 24px; align-items: flex-start; }
  .practice-row { flex-wrap: wrap; gap: 12px; }
  .footer .container { flex-direction: column; gap: 16px; }
  .page-title { font-size: 32px; }
  .detail-thesis { font-size: 20px; }
  .pattern-nav { flex-direction: column; gap: 20px; align-items: flex-start; }
  .pattern-nav .nav-next { text-align: left; }
  .article-title { font-size: 26px; }
  .case-title { font-size: 22px; }
  .case-lead { font-size: 17px; }
}
