/* Shared styles for case-study and thinking sub-pages */
:root {
  --cream: #EDEAD8;
  --cream-deep: #E2DEC8;
  --ink: #0F3530;
  --ink-soft: #2C4A45;
  --teal: #1B7F7A;
  --teal-deep: #135C58;
  --blue: #2A5F87;
  --sage: #C8DBC1;
  --mist: #97A89F;
  --line: rgba(15,53,48,0.18);

  --content-max: 880px;
  --pad-x: 80px;
  --pad-x-sm: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(27,127,122,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(42,95,135,0.05) 0%, transparent 40%);
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad-x);
  backdrop-filter: blur(8px);
  background: rgba(237,234,216,0.78);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot { color: var(--teal); }
.back-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.back-link:hover { color: var(--teal); transform: translateX(-3px); }

/* ARTICLE */
article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px var(--pad-x) 120px;
  position: relative; z-index: 2;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--teal);
}

h1.article-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
h1.article-title em { font-weight: 300; color: var(--teal); font-style: italic; }

.deck {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 50px;
  max-width: 720px;
}

.meta-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.meta-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  display: block; margin-bottom: 4px;
}
.meta-item .value {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

/* HEADLINE STATS BAR */
.headline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--cream-deep);
  margin-bottom: 60px;
  box-shadow: 6px 6px 0 var(--ink);
}
.headline-stat {
  padding: 24px 22px;
  border-right: 1px dashed var(--line);
}
.headline-stat:last-child { border-right: none; }
.headline-stat-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  font-size: 38px;
  line-height: 1; letter-spacing: -0.03em;
  color: var(--teal);
  margin-bottom: 8px;
}
.headline-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* PROSE */
.prose h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 60px 0 24px;
  position: relative;
  padding-left: 24px;
}
.prose h2::before {
  content: '◆';
  position: absolute;
  left: 0; top: 12px;
  color: var(--teal);
  font-size: 14px;
}
.prose h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 16px;
  letter-spacing: -0.015em;
}
.prose p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.65;
}
.prose p strong {
  font-weight: 500;
  background: linear-gradient(transparent 60%, var(--sage) 60%);
}
.prose em { font-style: italic; }
.prose ul, .prose ol {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0; top: 6px;
  color: var(--teal);
}
.prose ol { counter-reset: list; }
.prose ol li { counter-increment: list; }
.prose ol li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0; top: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
}

/* PULL QUOTE / CALLOUT */
.pull {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  letter-spacing: -0.01em;
}

.callout {
  background: var(--cream-deep);
  border: 1px solid var(--ink);
  padding: 28px 32px;
  margin: 40px 0;
  position: relative;
  transform: rotate(-0.4deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.callout-body {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

/* FOOTER CTA */
.footer-cta {
  margin-top: 100px;
  padding: 60px 50px;
  background: var(--ink);
  color: var(--cream);
  position: relative;
}
.footer-cta h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.footer-cta h3 em { color: var(--sage); font-style: italic; }
.footer-cta p {
  font-size: 16px;
  color: var(--mist);
  max-width: 480px;
  margin-bottom: 28px;
}
.footer-cta-actions {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 24px;
  border: 1.5px solid var(--cream);
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  transition: all 0.2s;
}
.cta-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.cta-btn.ghost { background: transparent; color: var(--cream); }
.cta-btn.ghost:hover { background: var(--cream); color: var(--ink); }

/* TINY FOOTER */
.tiny-footer {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 40px;
}

@media (max-width: 720px) {
  :root { --pad-x: var(--pad-x-sm); }
  nav { padding: 14px var(--pad-x); }
  article { padding: 40px var(--pad-x) 80px; }
  .pull { font-size: 22px; padding-left: 18px; }
  .footer-cta { padding: 40px 28px; }
}
