:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292e33;
  --bg-surface-hover: #32383e;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-secondary: #0d9488;
  --border-subtle: rgba(229, 231, 235, 0.12);
  --border-highlight: rgba(20, 184, 166, 0.45);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 25px -5px rgba(20, 184, 166, 0.35);
  --radius: 4px;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-size: 16px;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease-kinetic);
}

.text-link, .article-body a, .footer-links a {
  display: inline-block;
  color: var(--accent-primary);
  border-bottom: 1px solid rgba(20, 184, 166, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease-kinetic), color 0.25s var(--ease-kinetic);
}

.text-link::after, .article-body a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.text-link:hover::after, .article-body a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #0f1715;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic), background-color 0.25s ease;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
  color: #090d0c;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading-width {
  max-width: 70ch;
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: relative;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0 0.75rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  display: inline-block;
}

.nav-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.main-nav a:hover::after, .main-nav a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.35rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero Split */
.hero-section {
  padding: 4rem 0 5rem;
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.08), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* Clipped Surface Transitions */
.surface-band {
  background-color: var(--bg-surface);
  clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding: 5.5rem 0;
  margin: 1rem 0;
}

/* Attention Thread Pathway Layout */
.pathway-thread {
  position: relative;
  padding-left: 3.25rem;
  margin: 3rem 0;
}

.pathway-thread::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(229, 231, 235, 0.15) 85%, transparent);
}

.pathway-node {
  position: relative;
  padding-bottom: 4rem;
}

.pathway-node:last-child {
  padding-bottom: 1rem;
}

.node-marker {
  position: absolute;
  left: -3.25rem;
  top: 0.15rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(20, 184, 166, 0.25);
}

/* Icon-led Rows (No Cards) */
.practice-rows {
  border-top: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}

.practice-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, padding-left 0.25s var(--ease-kinetic);
}

.practice-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
  padding-left: 0.85rem;
}

.row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.row-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Expandable Cultural Context & Reflection Prompts */
details.context-drawer {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  margin: 1.25rem 0;
}

details.context-drawer summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

details.context-drawer summary::-webkit-details-marker { display: none; }

details.context-drawer summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

details.context-drawer[open] summary::after {
  content: "−";
}

.drawer-body {
  padding-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reflection-prompt {
  border-left: 4px solid var(--accent-primary);
  background-color: rgba(41, 46, 51, 0.65);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-primary);
}

.reflection-prompt span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.preview-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  margin-top: 1rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #16181c;
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .menu-toggle { display: inline-flex; }
  .nav-row {
    display: none;
    padding-top: 0.75rem;
  }
  .nav-row.is-open {
    display: block;
  }
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .practice-row {
    grid-template-columns: 36px 1fr;
  }
  .row-meta {
    grid-column: 2;
  }
  .pathway-thread {
    padding-left: 2.6rem;
  }
  .pathway-thread::before {
    left: 15px;
  }
  .node-marker {
    left: -2.6rem;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .surface-band { padding: 4rem 0; }
}

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