/* ==========================================================
   DaheDigital — styles.css (main)
   Font stack: Cormorant Garamond (headings) + Plus Jakarta Sans (body)
   Rationale: classical serif tension against a geometric sans — precision + authority
   Prefix: tfsp9-
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

/* tokens */
:root {
  /* colors — electric blue on clean white, secondary warm yellow */
  --clr-bg:           #ffffff;
  --clr-surface:      #f6f8fc;
  --clr-border:       #e2e8f0;
  --clr-text:         #0d1117;
  --clr-text-muted:   #5a6478;
  --clr-accent:       #1e64ff;
  --clr-accent-hover: #1451d6;
  --clr-yellow:       #f5c842;
  --clr-yellow-light: #fffbe6;
  --clr-error:        #d94040;

  /* typography */
  --ff-heading: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 72px;
  --sp-3xl: 112px;

  /* layout */
  --content-w: 1120px;
  --content-narrow: 720px;
  --header-h: 64px;

  /* logo */
  --logo-w: 160px;
  --logo-h: 36px;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.13);

  /* transitions */
  --tr-fast: 0.18s ease;
  --tr-med:  0.3s ease;

  /* z-index */
  --z-header:       100;
  --z-mobile:       200;
  --z-cookie:       300;
  --z-back-to-top:  150;
}

/* base */
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }
p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }
a { text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clr-accent); }

/* layout */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

main {
  padding-top: var(--header-h);
  flex: 1;
}

.section {
  padding: var(--sp-3xl) 0;
}
.section--sm {
  padding: var(--sp-2xl) 0;
}
.section--surface {
  background: var(--clr-surface);
}

.section-label {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}
.section-title {
  margin-bottom: var(--sp-md);
}
.section-intro {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-bottom: var(--sp-xl);
  line-height: 1.7;
}

/* breadcrumb */
.breadcrumb {
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-xl);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  align-items: center;
  list-style: none;
}
.breadcrumb ol li {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.breadcrumb ol li::after {
  content: '›';
  color: var(--clr-border);
}
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--tr-fast);
}
.breadcrumb ol li a:hover { color: var(--clr-accent); }
.breadcrumb ol li[aria-current] { color: var(--clr-text); font-weight: 500; }

/* prose — article body */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text);
}
.prose h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: var(--sp-2xl) 0 var(--sp-md);
}
.prose h3 {
  font-size: 1.2rem;
  margin: var(--sp-xl) 0 var(--sp-sm);
}
.prose p { margin-bottom: var(--sp-md); }
.prose ul, .prose ol {
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-md);
  list-style: initial;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-xs); }
.prose blockquote {
  border-left: 3px solid var(--clr-accent);
  padding: var(--sp-sm) var(--sp-lg);
  margin: var(--sp-xl) 0;
  background: var(--clr-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--clr-text-muted);
}
.prose a {
  color: var(--clr-accent);
  text-decoration: underline;
}
.prose strong { font-weight: 600; }
.prose code {
  font-size: 0.88em;
  background: var(--clr-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* article hero */
.article-hero {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-2xl);
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* page hero — typography variant (no image) */
.page-hero {
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-yellow-light) 0%, var(--clr-surface) 60%, var(--clr-bg) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}
.page-hero__title {
  margin-bottom: var(--sp-md);
}
.page-hero__sub {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* inline tag pill */
.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--clr-yellow-light);
  color: #7a5800;
  text-decoration: none;
}

/* reading progress */
#reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--clr-accent);
  z-index: var(--z-header);
  transition: width 0.1s linear;
}

/* cookie */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-cookie);
  background: var(--clr-text);
  color: #fff;
  padding: var(--sp-md) var(--sp-lg);
  display: none;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  justify-content: space-between;
  transform: translateY(100%);
  animation: slideUp 0.3s ease forwards;
}
#cookie-banner.visible {
  display: flex;
}
#cookie-banner p {
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
  opacity: 0.88;
}
#cookie-banner p a {
  color: var(--clr-yellow);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}
#cookie-accept, #cookie-decline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background var(--tr-fast), color var(--tr-fast);
}
#cookie-accept {
  background: var(--clr-yellow);
  color: var(--clr-text);
}
#cookie-accept:hover { background: #e6b800; }
#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
#cookie-decline:hover { color: #fff; border-color: #fff; }

/* scroll reveal */
.sr-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* animations */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-fadein {
  animation: fadeIn 0.6s ease both;
}

/* homepage specifics */
.home-hero {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}
.home-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: end;
}
.home-hero__text {}
.home-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}
.home-hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-lg);
}
.home-hero__title em {
  font-style: italic;
  color: var(--clr-text-muted);
}
.home-hero__sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
}
.home-hero__cta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* problem selector widget */
.problem-selector {
  padding: var(--sp-xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  align-self: end;
}
.problem-selector__title {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}
.problem-selector__options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.problem-option {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--clr-bg);
  transition: border-color var(--tr-fast), background var(--tr-fast);
  text-align: left;
}
.problem-option:hover,
.problem-option.active {
  border-color: var(--clr-accent);
  background: var(--clr-surface);
}
.problem-option__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--clr-accent);
}
.problem-option__text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}
.problem-option__text span {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.problem-selector__answer {
  display: none;
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  background: var(--clr-yellow-light);
  border: 1px solid var(--clr-yellow);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #5a3e00;
  line-height: 1.6;
}
.problem-selector__answer.visible { display: block; }
.problem-selector__answer a {
  color: var(--clr-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* counter stats */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-2xl);
}
.stat-item {
  padding: var(--sp-xl);
  background: var(--clr-bg);
  text-align: center;
}
.stat-item__number {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--clr-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-xs);
}
.stat-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* process tabs */
.process-tabs {
  margin-bottom: var(--sp-2xl);
}
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-xl);
  overflow-x: auto;
}
.tab-btn {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--sp-sm) var(--sp-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--clr-text-muted);
  white-space: nowrap;
  transition: color var(--tr-fast), border-color var(--tr-fast);
  margin-bottom: -1px;
}
.tab-btn.active,
.tab-btn:hover {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.tab-panel__text h3 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
}
.tab-panel__text p {
  color: var(--clr-text-muted);
  line-height: 1.7;
}
.tab-panel__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-surface);
}
.tab-panel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* accordion FAQ */
.faq-list {
  border-top: 1px solid var(--clr-border);
}
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text);
  gap: var(--sp-md);
  transition: color var(--tr-fast);
}
.faq-question:hover { color: var(--clr-accent); }
.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--clr-accent);
  transition: transform var(--tr-fast);
}
.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-bottom: var(--sp-lg);
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* services page */
.service-block {
  padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--clr-border);
}
.service-block:last-child { border-bottom: none; }
.service-block__header {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--sp-2xl);
  align-items: start;
  margin-bottom: var(--sp-xl);
}
.service-block__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  display: block;
}
.service-block__title {
  font-size: 2rem;
}
.service-block__audience {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: var(--sp-md);
}
.service-block__scope {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.service-block__scope strong {
  display: block;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.service-includes {
  padding-left: var(--sp-md);
  list-style: disc;
  margin: var(--sp-md) 0;
}
.service-includes li {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xs);
  line-height: 1.6;
}
.scope-note {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  background: var(--clr-yellow-light);
  border: 1px solid var(--clr-yellow);
  border-radius: var(--radius-sm);
  padding: var(--sp-sm) var(--sp-md);
  margin-top: var(--sp-md);
}

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-sm);
}
.contact-item {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  margin-bottom: var(--sp-lg);
}
.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clr-accent);
}
.contact-item__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--clr-text-muted);
  display: block;
  margin-bottom: 2px;
}
.contact-item__value {
  font-size: 0.9375rem;
  color: var(--clr-text);
  text-decoration: none;
}
.contact-item__value a { color: var(--clr-accent); text-decoration: underline; }

/* legal pages */
.legal-content {
  padding: var(--sp-2xl) 0;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: var(--sp-2xl) 0 var(--sp-sm);
}
.legal-content h3 {
  font-size: 1.1rem;
  margin: var(--sp-lg) 0 var(--sp-xs);
}
.legal-content p, .legal-content li {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}
.legal-content ul { padding-left: var(--sp-lg); list-style: disc; }
.legal-content li { margin-bottom: var(--sp-xs); }
.legal-updated {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xl);
  padding: 4px 12px;
  background: var(--clr-surface);
  border-radius: var(--radius-pill);
}

/* about page */
.author-bio {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-xl);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  margin-bottom: var(--sp-lg);
}
.author-bio__initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.author-bio__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}
.author-bio__role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}
.author-bio__text {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-sm);
}
.author-bio__link {
  font-size: 0.8rem;
  color: var(--clr-accent);
  text-decoration: underline;
}

/* dispatches (blog) */
.dispatches-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-2xl);
}
.dispatches-main {}
.dispatches-sidebar {
  border-left: 1px solid var(--clr-border);
  padding-left: var(--sp-xl);
}
.sidebar-section { margin-bottom: var(--sp-2xl); }
.sidebar-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.sidebar-links a {
  font-size: 0.9rem;
  color: var(--clr-text);
  text-decoration: none;
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--tr-fast);
}
.sidebar-links a:hover { color: var(--clr-accent); }

/* post header */
.post-header {
  padding: var(--sp-2xl) 0 var(--sp-xl);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-2xl);
}
.post-header__meta {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.post-header__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: var(--sp-md);
}
.post-header__sub {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* post layout with TOC sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--sp-2xl);
  align-items: start;
}
.post-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-lg));
  font-size: 0.82rem;
}
.post-toc h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
}
.post-toc a {
  display: block;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid var(--clr-border);
  padding-left: var(--sp-sm);
  transition: color var(--tr-fast), border-color var(--tr-fast);
  line-height: 1.5;
}
.post-toc a:hover {
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
}

/* related reading */
.related-reading {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-2xl);
  border-top: 1px solid var(--clr-border);
}
.related-reading h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-lg);
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}
.related-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--clr-text);
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.related-link:hover {
  border-color: var(--clr-accent);
  background: var(--clr-surface);
  color: var(--clr-accent);
}
.related-link span {
  font-size: 0.875rem;
  font-weight: 500;
}
.related-link svg {
  width: 16px;
  height: 16px;
  color: var(--clr-accent);
  flex-shrink: 0;
}

/* 404 and utility */
.util-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
  min-height: 60vh;
}

/* responsive */
@media (max-width: 900px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .dispatches-grid { grid-template-columns: 1fr; }
  .dispatches-sidebar { border-left: none; border-top: 1px solid var(--clr-border); padding-left: 0; padding-top: var(--sp-xl); }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
  .service-block__header { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip .stat-item { border-bottom: 1px solid var(--clr-border); }
}
@media (max-width: 600px) {
  .section { padding: var(--sp-2xl) 0; }
  .section--sm { padding: var(--sp-xl) 0; }
  .home-hero { padding: var(--sp-2xl) 0; }
  .page-hero { padding: var(--sp-2xl) 0 var(--sp-xl); }
  .author-bio { flex-direction: column; }
  .tab-nav { gap: 0; }
  .tab-btn { padding: var(--sp-sm) var(--sp-md); font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #reading-progress { transition: none; }
  html { scroll-behavior: auto; }
}
