/* Bundled from multiple-natures/website/_design-system/main.css. Keep aligned with styleguide.html. */

/* main.css */

/* tokens/index.css */

/* tokens/palette.css */
:root {
  /* Base */
  --bg-base: #FBFAF7;
  --bg-raised: #FFFFFF;
  --bg-sunken: #F2EFE8;
  --text-primary: #1A1814;
  --text-secondary: #52493F;
  --text-muted: #857A6E;
  --border-subtle: #E8E2D5;
  --border-strong: #1A1814;

  /* Threads */
  --thread-theory: #2D4DBA;
  --thread-theory-tint: #E4EAF8;
  --thread-practice: #E8633A;
  --thread-practice-tint: #FBE4DA;
  --thread-tech: #1E8C73;
  --thread-tech-tint: #DCEFEA;
  --thread-human: #C73D5C;
  --thread-human-tint: #F8DEE5;
}



/* tokens/typography.css */
:root {
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lede: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-meta: 0.8125rem;

  --lh-heading-xl: 1.2;
  --lh-heading-sm: 1.3;
  --lh-body: 1.65;
  --lh-ui: 1.5;

  --tracking-h1: -0.02em;
  --tracking-h2: -0.01em;
  --tracking-body: 0;
  --tracking-eyebrow: 0.08em;

  --fw-normal: 400;
  --fw-ui: 500;
  --fw-button: 600;
  --fw-heading: 700;
}



/* tokens/spacing.css */
:root {
  --space-0: 0;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
}



/* tokens/layout.css */
:root {
  --max-width: 1180px;
  --max-width-text: 64ch;
  --max-width-wide: 1380px;
  --gutter: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}





/* base/index.css */

/* base/reset.css */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
}



/* base/typography.css */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
}

h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h1);
  line-height: var(--lh-heading-xl);
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h2);
  line-height: var(--lh-heading-xl);
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading-sm);
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: var(--fw-ui);
  line-height: var(--lh-heading-sm);
}

a {
  color: var(--text-primary);
  text-decoration: underline;
}

a:hover {
  opacity: 0.8;
}

.link-plain {
  color: inherit;
  text-decoration: none;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

ul, ol {
  padding-left: var(--space-3);
}

strong {
  font-weight: var(--fw-button);
}

em {
  font-style: italic;
}

blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-lede);
  font-style: italic;
  border-left: 3px solid var(--border-subtle);
  padding-left: var(--space-3);
  color: var(--text-secondary);
}

.section-text blockquote + h2 {
  margin-top: var(--space-6);
}



/* base/focus.css */
:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 2px;
}





/* components/index.css */

/* components/btn.css */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.625rem var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-button);
  line-height: var(--lh-ui);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-sunken);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: var(--bg-sunken);
}

.btn-thread {
  border-color: transparent;
  color: white;
}

.btn-thread[data-thread="theory"] {
  background-color: var(--thread-theory);
  border-color: var(--thread-theory);
}

.btn-thread[data-thread="theory"]:hover {
  opacity: 0.88;
}

.btn-thread[data-thread="practice"] {
  background-color: var(--thread-practice);
  border-color: var(--thread-practice);
}

.btn-thread[data-thread="practice"]:hover {
  opacity: 0.88;
}

.btn-thread[data-thread="tech"] {
  background-color: var(--thread-tech);
  border-color: var(--thread-tech);
}

.btn-thread[data-thread="tech"]:hover {
  opacity: 0.88;
}

.btn-thread[data-thread="human"] {
  background-color: var(--thread-human);
  border-color: var(--thread-human);
}

.btn-thread[data-thread="human"]:hover {
  opacity: 0.88;
}



/* components/input.css */
.input,
.textarea,
.select {
  display: block;
  width: 100%;
  padding: 0.625rem var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  background-color: var(--bg-raised);
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--border-strong);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
  font-family: var(--font-sans);
}

.select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="%231A1814"><path d="M1 1l5 5 5-5" stroke="currentColor" stroke-width="1.5" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  padding-right: calc(var(--space-2) + 20px);
}

.checkbox,
.radio {
  accent-color: var(--text-primary);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}



/* components/chip.css */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms ease;
}

.chip:hover,
.chip.active {
  background-color: var(--bg-sunken);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip[data-thread="theory"] {
  color: var(--thread-theory);
  border-color: var(--thread-theory-tint);
  background-color: var(--thread-theory-tint);
}

.chip[data-thread="theory"].active {
  background-color: var(--thread-theory);
  color: white;
  border-color: var(--thread-theory);
}

.chip[data-thread="practice"] {
  color: var(--thread-practice);
  border-color: var(--thread-practice-tint);
  background-color: var(--thread-practice-tint);
}

.chip[data-thread="practice"].active {
  background-color: var(--thread-practice);
  color: white;
  border-color: var(--thread-practice);
}

.chip[data-thread="tech"] {
  color: var(--thread-tech);
  border-color: var(--thread-tech-tint);
  background-color: var(--thread-tech-tint);
}

.chip[data-thread="tech"].active {
  background-color: var(--thread-tech);
  color: white;
  border-color: var(--thread-tech);
}

.chip[data-thread="human"] {
  color: var(--thread-human);
  border-color: var(--thread-human-tint);
  background-color: var(--thread-human-tint);
}

.chip[data-thread="human"].active {
  background-color: var(--thread-human);
  color: white;
  border-color: var(--thread-human);
}



/* components/icon.css */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-13 {
  width: 13px;
  height: 13px;
}

.icon-32 {
  width: 32px;
  height: 32px;
}

/* Icon definition list — dt rows with leading icon */
.icon-dl dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Section visual anchor — small muted icon block before h2 */
.section-icon-lead {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.45;
  color: var(--text-primary);
}

.section-icon-lead[data-thread="theory"] {
  opacity: 1;
  color: var(--thread-theory);
}

.section-icon-lead[data-thread="practice"] {
  opacity: 1;
  color: var(--thread-practice);
}

.section-icon-lead[data-thread="tech"] {
  opacity: 1;
  color: var(--thread-tech);
}

.section-icon-lead[data-thread="human"] {
  opacity: 1;
  color: var(--thread-human);
}



/* components/motif.css */
.motif {
  display: inline-block;
  width: var(--motif-size, 96px);
  height: var(--motif-size, 96px);
  color: var(--motif-color, var(--thread-tech));
  background-color: currentColor;
  opacity: var(--motif-opacity, 0.18);
  pointer-events: none;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.motif--nature {
  -webkit-mask-image: url("../../images/motifs/nature.svg");
  mask-image: url("../../images/motifs/nature.svg");
}

.motif--situation {
  -webkit-mask-image: url("../../images/motifs/situation.svg");
  mask-image: url("../../images/motifs/situation.svg");
}

.motif--orientation {
  -webkit-mask-image: url("../../images/motifs/orientation.svg");
  mask-image: url("../../images/motifs/orientation.svg");
}

.motif--quiet {
  --motif-opacity: 0.08;
}

.motif--field {
  --motif-size: min(34vw, 420px);
  position: absolute;
  z-index: 0;
}

.motif--corner-right {
  top: var(--space-5);
  right: max(-4vw, -64px);
}

.motif--corner-left {
  top: var(--space-5);
  left: max(-4vw, -64px);
}

.motif-surface {
  position: relative;
  overflow: hidden;
}

.motif-surface > .section-inner,
.motif-surface > .hero-inner,
.motif-surface > .content-wrapper {
  position: relative;
  z-index: 1;
}

.motif-field-right {
  top: var(--motif-field-top, var(--space-5));
  right: var(--motif-field-offset, max(-5vw, -72px));
  color: var(--motif-color, var(--thread-theory));
}

.motif-field-left {
  top: var(--motif-field-top, var(--space-5));
  left: var(--motif-field-offset, max(-5vw, -72px));
  color: var(--motif-color, var(--thread-theory));
}

.motif-thread-theory { --motif-color: var(--thread-theory); }
.motif-thread-practice { --motif-color: var(--thread-practice); }
.motif-thread-tech { --motif-color: var(--thread-tech); }
.motif-thread-human { --motif-color: var(--thread-human); }

.concept-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--concept-mark-size, 44px);
  height: var(--concept-mark-size, 44px);
  color: var(--concept-mark-color, var(--thread-tech));
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.concept-mark .motif {
  --motif-size: calc(var(--concept-mark-size, 44px) * 0.58);
  --motif-opacity: 1;
}

.concept-mark[data-thread="practice"] { --concept-mark-color: var(--thread-practice); }
.concept-mark[data-thread="tech"] { --concept-mark-color: var(--thread-tech); }
.concept-mark[data-thread="human"] { --concept-mark-color: var(--thread-human); }
.concept-mark[data-thread="theory"] { --concept-mark-color: var(--thread-theory); }

.motif-img {
  display: inline-block;
  width: var(--motif-size, 96px);
  height: auto;
  opacity: var(--motif-opacity, 0.18);
  pointer-events: none;
}

.motif-size-xs { --motif-size: 24px; }
.motif-size-sm { --motif-size: 40px; }
.motif-size-md { --motif-size: 112px; }
.motif-size-lg { --motif-size: 280px; }
.motif-size-xl { --motif-size: min(44vw, 560px); }

.motif-opacity-solid { --motif-opacity: 1; }
.motif-opacity-accent { --motif-opacity: 0.48; }
.motif-opacity-field { --motif-opacity: 0.1; }
.motif-opacity-watermark { --motif-opacity: 0.055; }

.motif-img--field {
  --motif-size: min(34vw, 420px);
  position: absolute;
  z-index: 0;
}

.motif-img--field.motif-hero-field {
  --motif-size: min(38vw, 500px);
  --motif-opacity: 0.12;
  --motif-field-top: 8rem;
  --motif-field-offset: max(-4vw, -56px);
}

.concept-mark .motif-img {
  --motif-size: calc(var(--concept-mark-size, 44px) * 0.58);
  --motif-opacity: 1;
}

@media (max-width: 759px) {
  .motif--field,
  .motif-img--field {
    --motif-size: 280px;
  }

  .hero .motif-img--field.motif-field-right,
  .hero .motif-img--field.motif-field-left {
    display: none;
  }
}



/* components/eyebrow.css */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: var(--lh-ui);
}

.eyebrow[data-thread="theory"] {
  color: var(--thread-theory);
}

.eyebrow[data-thread="practice"] {
  color: var(--thread-practice);
}

.eyebrow[data-thread="tech"] {
  color: var(--thread-tech);
}

.eyebrow[data-thread="human"] {
  color: var(--thread-human);
}



/* components/lede.css */
.lede {
  font-family: var(--font-serif);
  font-size: var(--fs-lede);
  font-style: italic;
  font-weight: var(--fw-normal);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}



/* components/card.css */
.card {
  background-color: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-thread {
  border-top: 3px solid var(--border-subtle);
  transition: all 150ms ease;
}

.card-thread[data-thread="theory"] {
  border-top-color: var(--thread-theory);
}

.card-thread[data-thread="practice"] {
  border-top-color: var(--thread-practice);
}

.card-thread[data-thread="tech"] {
  border-top-color: var(--thread-tech);
}

.card-thread[data-thread="human"] {
  border-top-color: var(--thread-human);
}

.card-thread:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-heading-row h3,
.card-heading-row .eyebrow {
  margin: 0;
}

.card-summary {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.card-action {
  margin-top: var(--space-3);
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

@media (min-width: 900px) {
  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-card h3 {
    min-height: 2.7em;
  }
}

.program-card {
  min-height: 100%;
  padding: var(--space-4);
  gap: var(--space-3);
}

.program-card .card-heading-row {
  margin-bottom: var(--space-3);
}

.program-card .card-summary {
  line-height: var(--lh-body);
}

.program-card .card-note {
  margin-top: auto;
  margin-bottom: var(--space-3);
}

.program-card .card-action {
  margin-top: 0;
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .card-heading-row {
    align-items: flex-start;
  }

  .card-heading-row .icon {
    flex-shrink: 0;
  }

  .program-card {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .program-card .card-heading-row {
    margin-bottom: var(--space-2);
  }

  .program-card .card-note {
    margin-bottom: var(--space-2);
  }
}

.outcome-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .outcome-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.outcome-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 100%;
}

.outcome-item-featured {
  grid-column: 1 / -1;
}

.outcome-icon {
  color: var(--thread-theory);
  margin-top: 2px;
  flex-shrink: 0;
}

.outcome-icon[data-thread="practice"] {
  color: var(--thread-practice);
}

.outcome-text {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.outcome-text-strong {
  font-weight: var(--fw-semibold);
}

.card-note {
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  margin: var(--space-3) 0;
}

.card-featured {
  margin-top: var(--space-6);
  max-width: 760px;
}

.details-card-spaced {
  margin-top: var(--space-4);
}

.level-note {
  margin-top: var(--space-5);
  max-width: 680px;
  padding: var(--space-4);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.level-note .eyebrow {
  margin-bottom: var(--space-2);
}

.level-note h3 {
  margin: 0 0 var(--space-2);
}

.level-note p:last-child {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin: 0;
}

.card-quiet {
  color: var(--text-secondary);
}

.price-card {
  text-align: center;
  padding: var(--space-4);
}

.price-label {
  font-size: var(--fs-meta);
  font-weight: var(--fw-button);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}

.price-value {
  font-size: 1.75rem;
  font-weight: var(--fw-heading);
  font-family: var(--font-serif);
  margin: 0 0 var(--space-1);
}

.price-detail {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin: 0;
}

.thread-icon[data-thread="theory"] {
  color: var(--thread-theory);
}

.thread-icon[data-thread="practice"] {
  color: var(--thread-practice);
}

.thread-icon[data-thread="tech"] {
  color: var(--thread-tech);
}

.thread-icon[data-thread="human"] {
  color: var(--thread-human);
}

.card-book {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-book .book-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.card-book .book-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading-sm);
  min-height: calc(2 * 1.125rem * 1.3);
}

.card-book .book-author {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-book .book-price {
  font-size: var(--fs-small);
  font-weight: var(--fw-button);
  margin-top: auto;
}

.card-book .book-title a {
  color: inherit;
  text-decoration: none;
}

.card-book .book-title a:hover {
  text-decoration: underline;
}

.card-book .book-dl {
  display: flex;
  gap: var(--space-2);
}

.card-book .book-dl a {
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  color: var(--text-secondary);
  text-decoration: underline;
}

.card-book .book-dl a:hover {
  color: var(--text-primary);
}

.card-book .book-detail {
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  color: var(--text-muted);
  text-decoration: none;
  margin-top: auto;
}

.card-book .book-detail:hover {
  color: var(--text-primary);
}

.card-practitioner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.card-practitioner .practitioner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
}

.card-practitioner .practitioner-name {
  font-weight: var(--fw-button);
  text-align: center;
}

.card-practitioner .practitioner-role {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  text-align: center;
}

.card-article {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-article .article-eyebrow {
  margin-bottom: var(--space-1);
}

.card-article .article-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading-sm);
}

.card-article .article-title a {
  text-decoration: none;
  color: inherit;
}

.card-article .article-title a:hover {
  text-decoration: underline;
}

.card-article .article-excerpt {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.card-article .article-meta {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-top: auto;
}



/* components/field.css */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field label {
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  color: var(--text-primary);
}

.field .field-helper {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.field .field-error {
  font-size: var(--fs-meta);
  color: var(--thread-human);
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select {
  border-color: var(--thread-human);
}



/* components/breadcrumb.css */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-meta);
  color: var(--text-muted);
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-1);
  color: var(--border-subtle);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb li:last-child {
  color: var(--text-secondary);
}



/* components/pagination.css */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  cursor: pointer;
  transition: all 150ms ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--bg-sunken);
  color: var(--text-primary);
}

.pagination-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}



/* components/tag-list.css */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
}

.tag-list .tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-meta);
  padding: 0.2rem 0.5rem;
  background-color: var(--bg-sunken);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.tag-list .tag[data-thread="theory"] {
  background-color: var(--thread-theory-tint);
  color: var(--thread-theory);
  border-color: var(--thread-theory-tint);
}

.tag-list .tag[data-thread="practice"] {
  background-color: var(--thread-practice-tint);
  color: var(--thread-practice);
  border-color: var(--thread-practice-tint);
}

.tag-list .tag[data-thread="tech"] {
  background-color: var(--thread-tech-tint);
  color: var(--thread-tech);
  border-color: var(--thread-tech-tint);
}

.tag-list .tag[data-thread="human"] {
  background-color: var(--thread-human-tint);
  color: var(--thread-human);
  border-color: var(--thread-human-tint);
}



/* components/nav.css */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: var(--fw-heading);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 5.5rem;
}

.nav-links {
  display: none;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 920px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  font-size: var(--fs-meta);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
  transition: color 150ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--text-primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 18rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: calc(var(--space-2) + 0.5rem) var(--space-2) var(--space-2);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  display: block;
  padding: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 150ms ease;
}

.nav-dropdown-item:hover {
  background-color: var(--bg-sunken);
}

.nav-dropdown-item-title {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-heading);
  color: var(--text-primary);
}

.nav-dropdown-item-desc {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 920px) {
  .nav-mobile-toggle {
    display: none;
  }
}

@media (min-width: 920px) {
  .nav-inner,
  .nav-logo img {
    height: 7.5rem;
  }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  background-color: var(--bg-base);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--gutter);
  box-sizing: border-box;
  overflow-y: auto;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer-close {
  align-self: flex-end;
  width: 2rem;
  height: 2rem;
  border: none;
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: var(--space-4);
  padding: 0;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.nav-drawer-links a {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--text-primary);
  text-decoration: none;
}

/* Compatibility for pages that render the shared JS header. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .content-wrapper {
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 5.5rem;
  gap: var(--space-4);
}

.site-logo img {
  display: block;
  width: auto;
  height: 5.5rem;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-header .site-nav a {
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  color: var(--text-secondary);
  text-decoration: none;
}

.site-header .site-nav a:hover,
.site-header .site-nav a.active {
  color: var(--text-primary);
}

.site-nav-toggle,
.site-mobile-nav {
  display: none;
}

.site-nav-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-base);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform 150ms ease, opacity 150ms ease;
}

.site-nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-mobile-nav {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-4) var(--gutter);
  background: var(--bg-base);
  flex-direction: column;
  gap: var(--space-3);
}

.site-mobile-nav.open {
  display: flex;
}

.site-mobile-nav a {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header .site-nav {
    display: none;
  }

  .site-header .site-nav-toggle {
    display: flex;
  }
}



/* components/footer.css */
.footer {
  background-color: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-6) var(--gutter) var(--space-5);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-brand-logo {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  font-weight: var(--fw-heading);
  color: var(--text-primary);
}

.footer-brand-tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: var(--lh-ui);
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-meta);
  color: var(--text-muted);
}



/* components/hero.css */
.hero {
  padding: var(--space-7) var(--gutter) var(--space-6);
  background-color: var(--bg-base);
}

.hero-plain {
  position: relative;
  overflow: hidden;
}

.hero-brand-mark {
  position: relative;
  overflow: hidden;
}

.hero-brand-mark-img {
  position: absolute;
  z-index: 0;
  width: min(42vw, 560px);
  max-width: none;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.hero-brand-mark-img[data-position="right"] {
  right: max(-10vw, -140px);
  bottom: max(-16vw, -220px);
}

.hero-brand-mark-img[data-position="left"] {
  left: max(-10vw, -140px);
  bottom: max(-14vw, -190px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero .eyebrow {
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: var(--fs-h1);
  font-family: var(--font-serif);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h1);
  line-height: var(--lh-heading-xl);
  color: var(--text-primary);
  max-width: 14ch;
}

.hero .lede {
  margin-top: var(--space-3);
  max-width: 52ch;
}

.hero .hero-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.hero-action-separator {
  color: var(--text-muted);
  opacity: 0.4;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hero-facts-compact {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.hero-fact-icon[data-thread="theory"] {
  background: var(--thread-theory-tint);
  color: var(--thread-theory);
}

.hero-fact-icon[data-thread="practice"] {
  background: var(--thread-practice-tint);
  color: var(--thread-practice);
}

.hero-fact-icon[data-thread="tech"] {
  background: var(--thread-tech-tint);
  color: var(--thread-tech);
}

.hero-fact-icon[data-thread="human"] {
  background: var(--thread-human-tint);
  color: var(--thread-human);
}

.hero-fact-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-button);
}

@media (max-width: 767px) {
  .hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
  }

  .hero .lede {
    margin-top: var(--space-4);
  }

  .hero-facts {
    gap: var(--space-3);
  }

  .hero-fact {
    width: 100%;
  }

  .hero-brand-mark-img {
    width: min(86vw, 420px);
    opacity: 0.045;
  }

  .hero-brand-mark-img[data-position="right"] {
    right: -44vw;
    bottom: -18vw;
  }

  .hero-brand-mark-img[data-position="left"] {
    left: -48vw;
    bottom: -18vw;
  }
}

.hero-article {
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
}

.hero-article h1 {
  max-width: 20ch;
}

.hero-thread {
  position: relative;
}

.hero-thread::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--border-subtle);
}

.hero-thread[data-thread="theory"]::after {
  background-color: var(--thread-theory);
}

.hero-thread[data-thread="practice"]::after {
  background-color: var(--thread-practice);
}

.hero-thread[data-thread="tech"]::after {
  background-color: var(--thread-tech);
}

.hero-thread[data-thread="human"]::after {
  background-color: var(--thread-human);
}

.credential-hero {
  padding-top: var(--space-6);
}

.credential-hero-inner {
  display: grid;
  gap: var(--space-5);
}

.credential-hero-copy {
  max-width: 680px;
}

.credential-hero h1 {
  max-width: 13ch;
}

.credential-hero-panel {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.credential-hero-panel .hero-facts {
  margin: 0;
  gap: var(--space-3);
}

.credential-hero-panel .hero-fact {
  width: 100%;
}

.credential-hero-panel .btn {
  align-self: flex-start;
}

@media (min-width: 920px) {
  .credential-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: end;
  }

  .credential-hero-panel {
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--thread-practice);
    background: var(--bg-raised);
  }

  .credential-hero-panel[data-thread="tech"] {
    border-top-color: var(--thread-tech);
  }

  .credential-hero-panel[data-thread="human"] {
    border-top-color: var(--thread-human);
  }

  .credential-hero-panel .btn {
    width: 100%;
    justify-content: center;
  }
}



/* components/section.css */
.section {
  padding: var(--space-6) var(--gutter);
}

.section-alt {
  background-color: var(--bg-sunken);
}

.section-text .section-inner {
  max-width: var(--max-width-text);
}

.section-text .section-inner,
.article-body,
.cl-body,
.legal-wrap,
.content-wrapper {
  max-width: min(var(--max-width-text), 64ch) !important;
}

.section-inner > p {
  max-width: var(--max-width-text);
  line-height: var(--lh-body);
}

.legal-body p,
.legal-body li {
  max-width: var(--max-width-text);
}

.section-text p {
  line-height: var(--lh-body);
  margin-bottom: var(--space-3);
}

.section-text h2 {
  margin-bottom: var(--space-3);
}

.section-text ol,
.section-text ul {
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.section-text li {
  line-height: var(--lh-body);
  margin-bottom: var(--space-2);
}

.section-text dl {
  margin-bottom: var(--space-3);
}

.section-text dt {
  font-weight: var(--fw-button);
  margin-bottom: var(--space-1);
}

.section-text dd {
  color: var(--text-secondary);
  margin-left: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-wide .section-inner {
  max-width: var(--max-width-wide);
}

.section-header {
  margin-bottom: var(--space-5);
}

.section-header .eyebrow {
  margin-bottom: var(--space-2);
}

.section-header h2 {
  margin-top: var(--space-2);
}

.section-header .section-lede,
.section-header .section-subtitle {
  margin-top: var(--space-3);
}

.section-inner > .eyebrow,
.text-col > .eyebrow {
  display: block;
  margin-bottom: var(--space-2);
}

.section-inner > .eyebrow + h2,
.section-inner > .eyebrow + .section-heading-narrow,
.text-col > .eyebrow + h2 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.section-inner > h2 + .section-intro,
.section-inner > .section-heading-narrow + .section-intro,
.text-col > h2 + p {
  margin-top: var(--space-2);
}

.section-inner > h2 + p {
  margin-top: var(--space-3);
}

.section-inner > .grid + p,
.section-inner > .home-nav-index + p {
  margin-top: var(--space-5);
}

.section-header-balanced {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h2);
  line-height: var(--lh-heading-xl);
}

.section-subtitle {
  font-size: var(--fs-lede);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  max-width: 52ch;
}

.section-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.section-note {
  margin-top: var(--space-3);
  font-size: var(--fs-meta);
  color: var(--text-secondary);
}

.section-lede {
  max-width: var(--max-width-text);
  color: var(--text-secondary);
}

.section-heading-narrow {
  max-width: 760px;
}

.section-intro {
  color: var(--text-secondary);
  max-width: var(--max-width-text);
  margin-bottom: var(--space-5);
}

.section-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1040px;
}

@media (min-width: 768px) {
  .section-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-list {
  padding-left: var(--space-4);
  line-height: 1.75;
  margin-top: var(--space-3);
}

.section-list-compact {
  padding-left: var(--space-4);
  line-height: 1.75;
  margin-top: var(--space-2);
}

.section-small-note {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: var(--space-3);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.step-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--fs-small);
  font-weight: var(--fw-heading);
  flex-shrink: 0;
}

.step-index[data-thread="theory"] {
  background: var(--thread-theory-tint);
  color: var(--thread-theory);
}

.step-index[data-thread="practice"] {
  background: var(--thread-practice-tint);
  color: var(--thread-practice);
}

.step-index[data-thread="tech"] {
  background: var(--thread-tech-tint);
  color: var(--thread-tech);
}

.step-index[data-thread="human"] {
  background: var(--thread-human-tint);
  color: var(--thread-human);
}

.step-item p {
  line-height: var(--lh-body);
  margin: 0;
  padding-top: 4px;
}



/* components/grid.css */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid > * {
  min-width: 0;
}

.grid-spaced {
  margin-top: var(--space-4);
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-4 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.grid-books {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.grid-compact {
  gap: var(--space-3);
}

.grid-narrow {
  max-width: 760px;
}

.grid-directory {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
  .grid-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .grid-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* components/article-body.css */
.article-body {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-serif);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.article-body h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h2);
  line-height: var(--lh-heading-xl);
}

.article-body h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading-sm);
}

.article-body h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-ui);
  line-height: var(--lh-heading-sm);
}

.article-body p {
  line-height: var(--lh-body);
  margin-bottom: var(--space-3);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

.article-body li {
  margin-bottom: var(--space-1);
}

.article-body blockquote {
  border-left: 3px solid var(--border-subtle);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-4) 0;
  background-color: var(--bg-sunken);
  border-radius: var(--radius-sm);
}

.article-body blockquote p {
  font-size: var(--fs-lede);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-5) 0;
}

.article-body a {
  color: var(--thread-theory);
  text-decoration: underline;
}

.article-body a:hover {
  opacity: 0.8;
}

.article-body strong {
  font-weight: var(--fw-button);
}

.article-body code {
  font-family: monospace;
  font-size: var(--fs-small);
  background-color: var(--bg-sunken);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.article-body pre {
  background-color: var(--bg-sunken);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-3);
}

.article-body pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}



/* components/article-citation.css */
.article-citation {
  margin-top: var(--space-8);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--thread-theory);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}

.article-citation-title {
  margin: 0 0 var(--space-2);
  color: var(--thread-theory);
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.article-citation cite {
  display: block;
  color: var(--text-primary);
  font-style: normal;
  line-height: var(--lh-body);
  overflow-wrap: anywhere;
  user-select: all;
}



/* components/prose-stack.css */
.prose-stack {
  max-width: var(--max-width-text);
}

.prose-stack > * + * {
  margin-top: var(--space-3);
}

.prose-stack p,
.prose-stack li {
  line-height: var(--lh-body);
}

.prose-stack p {
  max-width: var(--max-width-text);
  margin-bottom: 0;
}

.prose-stack ul,
.prose-stack ol {
  padding-left: var(--space-4);
  margin-bottom: 0;
}



/* components/thread-band.css */
.thread-band {
  padding: var(--space-6) var(--gutter);
  background-color: var(--bg-base);
  border-top: 3px solid var(--border-subtle);
}

.thread-band[data-thread="theory"] {
  background-color: var(--thread-theory-tint);
  border-top-color: var(--thread-theory);
}

.thread-band[data-thread="practice"] {
  background-color: var(--thread-practice-tint);
  border-top-color: var(--thread-practice);
}

.thread-band[data-thread="tech"] {
  background-color: var(--thread-tech-tint);
  border-top-color: var(--thread-tech);
}

.thread-band[data-thread="human"] {
  background-color: var(--thread-human-tint);
  border-top-color: var(--thread-human);
}

.thread-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.thread-band .section-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h2);
  line-height: var(--lh-heading-xl);
}



/* components/cta-block.css */
.cta-block {
  background-color: var(--bg-sunken);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-7) var(--gutter);
}

.cta-block-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-block .eyebrow {
  margin-bottom: var(--space-2);
}

.cta-block h2 {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-h2);
  margin-bottom: var(--space-3);
}

.cta-block p {
  font-size: var(--fs-lede);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.cta-block .cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}



/* components/form-shell.css */
.form-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.form-shell-header {
  margin-bottom: var(--space-5);
}

.form-shell-header h1 {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: var(--fw-heading);
}

.form-shell-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-shell-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-shell-section-title {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: var(--fw-ui);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: var(--lh-ui);
  margin-bottom: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-actions {
  margin-top: var(--space-2);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}



/* components/testimonials.css */
.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 900px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid-count-1 {
    max-width: 720px;
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-grid-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.testimonial-card {
  margin: 0;
  padding: var(--space-3);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border-left: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.testimonial-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
}

.testimonial-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--thread-practice);
  background: var(--thread-practice-tint);
  font-weight: var(--fw-ui);
}

.testimonial-person-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card figcaption strong {
  color: var(--text-primary);
}





/* templates/index.css */

/* templates/t1-home.css */
/* Home page template */

.home-hero-mark {
  position: absolute;
  right: max(-180px, -8vw);
  top: 50%;
  width: min(58vw, 720px);
  height: auto;
  opacity: 0.16;
  transform: translateY(-48%);
  pointer-events: none;
  z-index: 0;
}

.home-hero-motif {
  right: max(-120px, -5vw);
  width: min(46vw, 560px);
  opacity: 0.09;
}

.hero-plain .hero-inner {
  position: relative;
  z-index: 1;
}

.home-thread-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--thread-theory-tint), transparent 34%),
    linear-gradient(180deg, var(--bg-base), var(--bg-sunken));
}

.home-thread-band::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  background: url('/images/mn-element/element-left-small.png') center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.home-threads-grid .card-thread {
  height: 100%;
}

.home-questions h2 {
  margin-bottom: var(--space-3);
}

.home-questions-intro {
  max-width: 64ch;
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.home-questions .grid-spaced {
  margin-top: 0;
}

.home-questions .card-thread {
  position: relative;
  overflow: hidden;
}

.home-questions .card-thread > :not(.home-question-motif) {
  position: relative;
  z-index: 1;
}

.home-question-motif {
  position: absolute;
  z-index: 0;
  right: -2.5rem;
  bottom: -2.75rem;
  width: 9rem;
  height: auto;
  opacity: 0.055;
  pointer-events: none;
}

.home-questions-summary {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.home-situation-note {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.home-situation-note .section-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  max-width: 980px !important;
}

.home-situation-note h2 {
  margin-bottom: 0;
}

.home-situation-note p {
  margin-bottom: var(--space-2);
}

.home-wayfinding {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
  background: var(--bg-base);
}

.home-nav-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0;
}

.home-nav-index-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 150ms ease;
}

.home-nav-index-item:hover {
  opacity: 0.72;
}

.home-nav-index-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-ui);
  color: var(--text-muted);
  padding-top: 0.25rem;
}

.home-nav-index-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading-sm);
  margin-bottom: var(--space-1);
}

.home-nav-index-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.home-tools {
  background:
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base) 46%, var(--thread-tech-tint) 46%, var(--thread-tech-tint) 100%);
}

.home-tools .card {
  padding: var(--space-4);
  box-shadow: 0 18px 40px rgba(26, 24, 20, 0.08);
}

.home-tools .thread-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
}

.home-tools .thread-icon[data-thread="practice"] {
  background: var(--thread-practice-tint);
}

.home-tools .thread-icon[data-thread="theory"] {
  background: var(--thread-theory-tint);
}

@media (max-width: 767px) {
  .home-hero-mark {
    right: -140px;
    top: auto;
    bottom: -120px;
    width: 420px;
    opacity: 0.1;
    transform: none;
  }

  .home-hero-motif {
    right: -120px;
    bottom: -96px;
    width: 340px;
  }

  .home-thread-band {
    background:
      linear-gradient(180deg, var(--bg-base), var(--bg-sunken));
  }

  .home-tools {
    background: var(--bg-base);
  }

  .home-situation-note,
  .home-wayfinding {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .home-situation-note .section-inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .home-situation-note h2 {
    margin-bottom: 0;
  }
}



/* templates/t2-article.css */
/* Article page template */

.article-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.article-meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--fs-meta);
  color: var(--text-muted);
}



/* templates/t3-catalog.css */
/* Catalog page template */

.catalog-filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.catalog-group {
  margin-top: var(--space-6);
}

.catalog-group:first-child {
  margin-top: 0;
}

.catalog-group .eyebrow {
  margin-bottom: var(--space-3);
  display: block;
}



/* templates/t4-directory.css */
/* Directory page template */

.directory-filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.directory-count {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-left: auto;
}



/* templates/t5-lineage.css */
/* Lineage/research page template */

.citation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 768px) {
  .citation-grid {
    grid-template-columns: 1fr 1fr;
  }
}



/* templates/t6-form.css */
/* Form page template */

.form-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: var(--space-6) 0;
}

.form-page .form-shell {
  width: 100%;
}





