/* ==========================================================================
   Cohort Institute - Shared Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #F9FAFB;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-cta-bg: #1F2937;
  --color-error: #DC2626;
  --color-error-bg: #FEE2E2;
  --color-error-border: #FECACA;
  --color-success: #10B981;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-body: 1.6;
  --line-height-heading: 1.15;
  --measure: 65ch;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  /* Layout */
  --container-width: 900px;
  --container-narrative: 820px;
  --container-narrow: 720px;
  --border-radius: 12px;
  --border-radius-lg: 24px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

h1 {
  font-size: 48px;
  font-weight: 800;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

p {
  max-width: var(--measure);
}

/* Vertical rhythm */
p + p {
  margin-top: var(--space-3);
}

h2 + p {
  margin-top: var(--space-2);
}

ul, ol {
  margin-top: var(--space-3);
  padding-left: 20px;
  max-width: var(--measure);
}

li + li {
  margin-top: var(--space-2);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Eyebrow/kicker text */
.kicker {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

/* Hero kicker - institutional credential, not decoration */
.section-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9CA3AF;
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

/* Vertical spacing utilities */
.stack > * + * {
  margin-top: var(--space-4);
}

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

/* Text utilities */
.text-muted {
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-narrative {
  max-width: var(--container-narrative);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.section {
  padding: var(--space-9) var(--space-5);
}

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

.section-cta {
  background: var(--color-cta-bg);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Reading Modes - Explicit Layout Boundaries
   -------------------------------------------------------------------------- */

/* Narrative mode: left-aligned prose, narrow measure */
.mode-narrative {
  text-align: left;
}

.mode-narrative .container {
  margin-left: auto;
  margin-right: auto;
}

/* Reflective mode: centered, quieter, clear break from narrative */
.mode-reflective {
  text-align: center;
  padding: var(--space-6) var(--space-5);
}

.mode-reflective .container {
  margin-left: auto;
  margin-right: auto;
}

.mode-reflective p {
  margin-left: auto;
  margin-right: auto;
}

/* Action mode: full commitment, different visual language */
.mode-action {
  text-align: left;
}

.section-cta h2,
.section-cta p {
  color: #FFFFFF;
}

.section-cta .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Hero Layout - Thesis Statement, Not a Pitch
   -------------------------------------------------------------------------- */
.section-hero {
  /* Asymmetric: let the statement exhale before next section */
  padding: var(--space-9) var(--space-5);
  padding-bottom: var(--space-9);
}

/* Hero divider - punctuation, not decoration */
.section-hero::after {
  content: "";
  display: block;
  max-width: var(--container-narrative);
  margin: var(--space-9) auto 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Headline authority through restraint */
.hero-headline {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

/* Subhead as supporting context, not second headline */
.hero-subhead {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  font-size: 20px;
  line-height: 1.6;
  color: #9CA3AF;
}

/* CTA de-promoted: available, not urgent */
.hero-cta {
  margin-top: var(--space-7);
}

.hero-cta .btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.hero-cta .btn:hover {
  background: rgba(59, 130, 246, 0.08);
}

/* Spacing utility */
.mt-6 {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   Flow Layouts (Vertical Rhythm)
   -------------------------------------------------------------------------- */
.flow > * + * {
  margin-top: var(--space-5);
}

.flow-lg > * + * {
  margin-top: var(--space-5);
}

/* Muted number markers for ordered content */
.kicker-muted {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

/* Inline step numbers - same baseline as heading, muted weight */
.step-num {
  font-weight: 400;
  color: var(--color-muted);
}

/* How It Works - typographic flow, no cards */
.flow-lg h3 {
  margin-bottom: var(--space-3);
}

.flow-lg p {
  color: var(--color-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Diagnostic Moment - Quiet Interruption
   -------------------------------------------------------------------------- */
.diagnostic-moment {
  padding: var(--space-8) var(--space-5);
}

.diagnostic-moment p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   Use Cases - Situational, Not Categorical
   -------------------------------------------------------------------------- */
.section-bridge {
  padding: var(--space-7) var(--space-5);
}

.use-case-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 58ch;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

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

.use-case p {
  color: var(--color-muted);
  margin: 0;
}

.use-case-label {
  color: var(--color-text);
  font-weight: 500;
}

/* Inline Thinking link - editorial aside within narrative */
.thinking-link {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 52ch;
}

.thinking-link a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.thinking-link a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Aside Section - Quiet Clarification
   -------------------------------------------------------------------------- */
.section-aside {
  padding: var(--space-6) var(--space-5);
}

.aside-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.aside-footnote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 52ch;
  margin: var(--space-4) auto 0;
  text-align: center;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Data Practice Footnote - Minimal, Subordinate
   -------------------------------------------------------------------------- */
.section-footnote {
  /* Padding handled by .mode-reflective */
}

.footnote-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Pilot CTA Section - Calm Invitation Layout
   -------------------------------------------------------------------------- */

/* Two-column grid on desktop, single column on mobile */
.pilot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pilot-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: start;
  }
}

/* Left column: quiet context with clear focal point */
.pilot-context {
  color: rgba(255, 255, 255, 0.85);
}

/* Kicker in CTA - muted, tight to heading */
.pilot-context .kicker {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-2);
}

.pilot-context h2 {
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

/* Supporting text - recedes visually */
.pilot-context .pilot-intro {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  margin-bottom: var(--space-2);
}

/* Focal point - the emotional anchor */
.pilot-context .pilot-anchor {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.5;
  max-width: 28ch;
  margin-bottom: var(--space-5);
}

/* Subtle divider at top of CTA section */
.section-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-7);
}

/* --------------------------------------------------------------------------
   Deliverables List - Flush Left, Quiet Bullets
   -------------------------------------------------------------------------- */
.deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverables li {
  padding: var(--space-2) 0;
  padding-left: 1.25em;
  position: relative;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

/* Bullet aligned to text baseline, flush with column edge */
.deliverables li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Pilot Form Card - Available, Not Dominant
   -------------------------------------------------------------------------- */
.pilot-form-card {
  background: var(--color-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: var(--space-5);
  max-width: 340px;
}

@media (min-width: 768px) {
  .pilot-form-card {
    margin-left: auto;
  }
}

/* Tighter form spacing within pilot card */
.pilot-form-card .form-group {
  margin-bottom: var(--space-3);
}

/* Labels align flush left */
.pilot-form-card label {
  display: block;
  margin-bottom: var(--space-1);
}

/* Deliberate submit - desaturated, smaller, not promotional */
.pilot-form-card .btn-submit {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: 15px;
  font-weight: 500;
  background: #4B5563;
  border: none;
  margin-top: var(--space-4);
}

.pilot-form-card .btn-submit:hover {
  background: #374151;
}

/* Form microcopy */
.pilot-form-card .form-note {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-large {
  min-height: 52px;
  padding: var(--space-4) var(--space-6);
  font-size: 18px;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
}

.btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #D1D5DB;
  border-radius: var(--border-radius);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

/* Honeypot field - visually hidden but accessible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Messages (Error/Success)
   -------------------------------------------------------------------------- */
.error-box {
  display: none;
  padding: var(--space-3) var(--space-4);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--border-radius);
  color: var(--color-error);
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.error-box.visible {
  display: block;
}

.success-box {
  padding: var(--space-5);
  text-align: center;
}

.success-box h3 {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-card);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Details/Summary (Expandable)
   -------------------------------------------------------------------------- */
details {
  margin-bottom: var(--space-5);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  padding: var(--space-3) 0;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+ ";
}

details[open] summary::before {
  content: "- ";
}

details > div {
  padding: var(--space-4) 0;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: white;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 768px) {
  .section {
    padding: var(--space-7) var(--space-5);
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section {
    padding: var(--space-7) var(--space-4);
  }

  .btn-large {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Article/Essay Pages - Reading Mode Typography
   -------------------------------------------------------------------------- */

/* Reading progress indicator - thin bar at top of viewport */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Article header - wordmark + reading time */
.article-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.article-header-bar a {
  color: var(--color-muted);
  text-decoration: none;
}

.article-header-bar a:hover {
  color: var(--color-accent);
}

.site-wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Breadcrumb - back to section */
.article-breadcrumb {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

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

.article-breadcrumb a:hover {
  color: var(--color-accent);
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}

/* TLDR summary - key takeaway before content */
.article-tldr {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.02);
  border-left: 2px solid rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-6);
  max-width: 58ch;
}

.article-tldr strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 40px;
  height: 40px;
  background: var(--color-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scroll-top:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-muted);
}

.scroll-top:hover svg {
  stroke: var(--color-text);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    transition: none;
  }

  .scroll-top {
    transition: none;
  }
}

/* Article shell - the main container for essay pages */
.article-shell {
  padding: var(--space-7) var(--space-5);
  padding-bottom: var(--space-9);
}

/* Breadcrumb navigation - quiet, functional */
.breadcrumb {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

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

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

/* Article title - authoritative but not shouting */
.article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

/* Article deck - the thesis summary under the title */
.article-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

/* Prose container - long-form reading rhythm */
.prose {
  font-size: 18px;
  line-height: 1.7;
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}

.prose h2:first-child {
  margin-top: 0;
}

/* Prose links - visible but not distracting */
.prose a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-muted);
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* Table of contents - inline, not sticky */
.toc {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

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

.toc-list a {
  font-size: 15px;
  color: var(--color-muted);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--color-accent);
}

/* Subtle horizontal rule separator */
.rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: var(--space-6) 0;
}

/* Responsive adjustments for articles */
@media (max-width: 768px) {
  .article-shell {
    padding: var(--space-6) var(--space-5);
  }

  .article-title {
    font-size: 28px;
  }

  .article-deck {
    font-size: 17px;
  }

  .prose {
    font-size: 17px;
  }

  .prose h2 {
    font-size: 20px;
    margin-top: var(--space-6);
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 26px;
  }

  .prose h2 {
    font-size: 19px;
  }
}

/* --------------------------------------------------------------------------
   Thinking Index - Editorial List
   -------------------------------------------------------------------------- */
.thinking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.thinking-item {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.thinking-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thinking-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.thinking-title a {
  color: var(--color-text);
  text-decoration: none;
}

.thinking-title a:hover {
  color: var(--color-accent);
}

.thinking-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Continue Reading - End of Article Navigation
   -------------------------------------------------------------------------- */
.continue-reading {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.continue-reading-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.continue-reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.continue-reading-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.continue-reading-item a:hover .continue-reading-title {
  color: var(--color-primary);
}

.continue-reading-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-1);
  transition: color 0.15s ease;
}

.continue-reading-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Reduced Motion (Accessibility)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
