/* CDN fonts for Drive / remote open; local @font-face still used when fonts/ present */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Merriweather:wght@800&display=swap');

/* Investigatable : Design System v3 (Frozen mist) site example */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Merriweather-ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-Semibold.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
}

:root {
  --olive: #7C7D75;
  --cool: #ADACA7;
  --cream: #FCF8D8;
  --silver: #D9DADF;
  --orange: #DD700B;
  --ink: #5a5b55;
  --paper: #FCF8D8;
  --paper-tint: color-mix(in srgb, var(--cream) 92%, var(--silver));
  --white: #ffffff;
  --radius: 13px;
  --radius-sm: 999px;
  --shadow: 0 1px 2px rgba(124, 125, 117, 0.07), 0 10px 28px rgba(124, 125, 117, 0.09);
  --max: 1120px;
  --font-display: 'Merriweather', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Geometric media (desk grid) */
  --mist-grid:
    linear-gradient(color-mix(in srgb, var(--olive) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--olive) 10%, transparent) 1px, transparent 1px);
  --mist-diag:
    repeating-linear-gradient(
      -32deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--orange) 14%, transparent) 11px,
      color-mix(in srgb, var(--orange) 14%, transparent) 12px
    );
  --mist-ladder:
    repeating-linear-gradient(
      180deg,
      transparent 0 18px,
      color-mix(in srgb, var(--olive) 16%, transparent) 18px 19px
    );
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--olive);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.5em;
}
h1 { color: var(--orange); /* burnt orange page titles; wordmark stays olive */ }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 3.75rem 0; }
.section-tight { padding: 2.75rem 0; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: 0.65rem;
}

/* Nav : cream Frozen mist bar; brand lockup + links vertically centered */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }

/* HTML/CSS LOCKED wordmark: tagline → top rule → word → bottom split rule */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: min(100%, 20rem);
  line-height: 1;
  --brand-word-size: 2.5rem; /* 40px : width-matches readable DIKIW */
  --brand-tag-size: 0.65625rem; /* 10.5px */
  --brand-rule: 1.5px;
  --brand-g-left: 47.74%;
  --brand-g-gap: 11.29%;
  --brand-g-right: 40.97%;
}
.brand-tagline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--brand-tag-size);
  color: var(--olive);
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.brand-tagline .brand-dot {
  color: var(--orange);
  padding: 0 0.05em;
  font-weight: 500;
}
.brand-rule {
  display: block;
  height: var(--brand-rule);
  width: 100%;
  background: var(--orange);
  flex-shrink: 0;
}
.brand-rule-top {
  margin-top: 0.35rem;
  margin-bottom: calc(var(--brand-word-size) * 0.06);
}
.brand-word {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--brand-word-size);
  color: var(--olive); /* wordmark stays olive : not page H1 orange */
  letter-spacing: -0.01em;
  line-height: 1;
  padding-bottom: 0.18em;
  margin: 0;
}
.brand-rule-bot {
  display: grid;
  grid-template-columns: var(--brand-g-left) var(--brand-g-gap) var(--brand-g-right);
  height: var(--brand-rule);
  width: 100%;
  background: transparent;
  margin-top: calc(var(--brand-word-size) * -0.14);
  position: relative;
  z-index: 0;
}
.brand-rule-bot::before,
.brand-rule-bot::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--orange);
}
.brand-rule-bot::before { grid-column: 1; }
.brand-rule-bot::after { grid-column: 3; }

.footer-brand .brand-lockup {
  --brand-word-size: 2rem;
  --brand-tag-size: 0.625rem;
  margin-bottom: 0.75rem;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--olive);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--olive);
  line-height: 1;
  padding: 0.35rem 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  color: var(--olive);
  cursor: pointer;
}

/* Buttons & chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: #c56209; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--olive);
  border-color: var(--cool);
}
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); background: var(--white); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.72rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.chip-rising { background: var(--orange); color: var(--white); }
.chip-active { background: var(--olive); color: var(--white); }
.chip-contained { background: var(--silver); color: var(--olive); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}
.card-soft {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 80%, var(--olive));
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: none;
}

/* Hero : cream Frozen mist */
.hero {
  padding: 3.75rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 55% at 88% 8%, color-mix(in srgb, var(--white) 70%, transparent), transparent),
    radial-gradient(ellipse 45% 40% at 4% 85%, color-mix(in srgb, var(--silver) 40%, transparent), transparent),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--ink);
  max-width: 36rem;
  margin-bottom: 1.65rem;
}
.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.hero-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.hero-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--orange) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--orange);
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.8rem;
  color: var(--cool);
}
.hero-notes span::before {
  content: '✓ ';
  color: var(--orange);
  font-weight: 600;
}

/* Elevated featured report card */
.hero-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.45rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 62%, var(--orange) 62%, var(--orange) 100%);
}
.hero-panel .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.95rem;
  gap: 0.75rem;
}
.hero-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}
.hero-panel > p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.55;
}
.hero-panel-graphic {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 72px;
  height: 72px;
  opacity: 0.55;
  pointer-events: none;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--silver);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--olive);
}
.stat span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cool);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Pillars / path cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.pillar:hover {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--silver));
  box-shadow: var(--shadow);
}
.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 70%, var(--olive));
  color: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.pillar-icon.numbered {
  border-radius: var(--radius-sm);
  width: auto;
  min-width: 42px;
  padding: 0 0.65rem;
  background: color-mix(in srgb, var(--cream) 70%, var(--white));
  color: var(--orange);
}
.pillar h3 { font-size: 1.15rem; }
.pillar p { font-size: 0.95rem; color: var(--ink); margin-bottom: 1rem; flex: 1; }
.pillar a { font-weight: 600; text-decoration: none; font-size: 0.9rem; margin-top: auto; }

/* Section headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.55rem, 2.5vw, 1.95rem); margin: 0; }
.section-head p { margin: 0.35rem 0 0; color: var(--cool); max-width: 32rem; font-family: var(--font-ui); }

/* Article cards : blog grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.article-card-media {
  aspect-ratio: 16 / 10;
  background-color: color-mix(in srgb, var(--cream) 55%, var(--silver));
  background-image:
    var(--mist-diag),
    var(--mist-grid);
  background-size: auto, 22px 22px;
  display: grid;
  place-items: center;
  position: relative;
}
.article-card-media.mist-a {
  background-color: color-mix(in srgb, var(--cream) 70%, var(--white));
  background-image: var(--mist-ladder), var(--mist-grid);
  background-size: auto, 20px 20px;
}
.article-card-media.mist-b {
  background-color: color-mix(in srgb, var(--silver) 35%, var(--cream));
  background-image:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--orange) 18%, transparent), transparent 42%),
    var(--mist-diag),
    var(--mist-grid);
  background-size: auto, auto, 24px 24px;
}
.article-card-media.mist-c {
  background-color: color-mix(in srgb, var(--silver) 45%, var(--white));
  background-image:
    linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--olive) 12%, transparent) 48% 52%, transparent 52%),
    var(--mist-grid);
  background-size: auto, 18px 18px;
}
.article-card-media.has-photo {
  background-image: none;
  background-color: var(--silver);
  padding: 0;
  overflow: hidden;
  place-items: stretch;
}
.article-card-media.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-card-media.has-photo .tag {
  z-index: 1;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--olive) 25%, transparent);
}
.article-card-media.has-photo .media-code { display: none; }
.article-card-media .tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.article-card-media .media-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--olive);
  opacity: 0.45;
  letter-spacing: 0.04em;
}
.article-card-body { padding: 1.2rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--ink);
  flex: 1;
  margin-bottom: 0.85rem;
  font-family: var(--font-ui);
}
.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cool);
}

/* Featured strip */
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-media {
  min-height: 280px;
  position: relative;
  background-color: color-mix(in srgb, var(--cream) 40%, var(--olive));
  background-image:
    linear-gradient(160deg, color-mix(in srgb, var(--olive) 78%, #3d3e38), color-mix(in srgb, var(--olive) 88%, var(--cream))),
    var(--mist-ladder),
    var(--mist-grid);
  background-size: auto, auto, 28px 28px;
  background-blend-mode: normal, soft-light, soft-light;
  color: var(--cream);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured-media::after {
  content: '';
  position: absolute;
  inset: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}
.featured-media .eyebrow { color: color-mix(in srgb, var(--cream) 70%, var(--orange)); position: relative; z-index: 1; }
.featured-media h2 { color: var(--cream); font-size: clamp(1.45rem, 2.4vw, 1.9rem); position: relative; z-index: 1; letter-spacing: -0.015em; }
.featured-media p { position: relative; z-index: 1; }
.featured-body {
  padding: 1.85rem 1.85rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.featured-body h3 {
  margin-top: 0.75rem;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.featured-body > p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.65rem 0 0;
  line-height: 1.55;
}
.featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.15rem 0 1.25rem;
}
.featured-stats div {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 75%, transparent);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
}
.featured-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--orange);
}
.featured-stats span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tutorials */
.tutorial-list {
  display: grid;
  gap: 0.8rem;
}
.tutorial-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 76px;
}
.tutorial-row:hover {
  border-color: color-mix(in srgb, var(--orange) 35%, var(--silver));
  box-shadow: var(--shadow);
  color: inherit;
}
.tutorial-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--orange);
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 70%, var(--olive));
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.tutorial-row h3 { font-size: 1.05rem; margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.tutorial-row p { margin: 0; font-size: 0.88rem; color: var(--cool); font-family: var(--font-ui); }

/* Legacy subscribe-band styles (unused on live pages) */
.subscribe-band {
  background: var(--olive);
  color: var(--cream);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.35rem 2.4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.subscribe-band h2 { color: var(--cream); margin-bottom: 0.5rem; }
.subscribe-band p { color: color-mix(in srgb, var(--cream) 80%, transparent); margin-bottom: 0; }
.subscribe-band .hero-form input {
  background: var(--white);
  border-color: transparent;
}

/* Page headers (blog) */
.page-hero {
  padding: 2.65rem 0 1.85rem;
  border-bottom: 1px solid var(--silver);
  background: var(--cream);
}
.page-hero h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 0.45rem; letter-spacing: -0.02em; }
.page-hero p { max-width: 36rem; color: var(--ink); margin: 0; font-family: var(--font-ui); }

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  padding: 2.35rem 0 3.75rem;
  align-items: start;
}
.prose { max-width: 42rem; }
.prose h1 { letter-spacing: -0.02em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.85rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .card-soft { margin: 1.35rem 0; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 80%, var(--olive));
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--olive);
}
.sidebar { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1rem; }
.related a {
  display: block;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--silver);
  color: inherit;
}
.related a:last-child { border-bottom: 0; }
.related a strong { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--olive); margin-bottom: 0.2rem; }
.related a span { font-size: 0.8rem; color: var(--cool); font-family: var(--font-mono); }


/* Article inline figure (float right of prose on desktop) */
.article-figure {
  float: right;
  clear: right;
  width: min(42%, 280px);
  margin: 0.15rem 0 1.35rem 1.5rem;
  padding: 0;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.article-figure figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--cool);
  font-family: var(--font-ui);
}
.article-figure figcaption .credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.prose::after {
  content: "";
  display: table;
  clear: both;
}
.prose .sources,
.prose ol.sources {
  font-size: 0.92rem;
  padding-left: 1.2rem;
}
.prose .sources li,
.prose ol.sources li {
  margin-bottom: 0.7rem;
}
.prose .sources a {
  word-break: break-word;
}
.prose a.cite {
  font-size: 0.75em;
  color: var(--cool);
  text-decoration: none;
  margin-left: 0.1em;
}
.prose a.cite:hover { color: var(--orange); }
.prose .deck {
  font-size: 1.05rem;
  color: var(--olive);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--silver);
  background: var(--white);
  padding: 2.75rem 0 1.85rem;
  margin-top: 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-grid h4 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: 0.85rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { text-decoration: none; font-size: 0.9rem; }
.footer-brand .brand-lockup { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; color: var(--cool); max-width: 22rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--silver);
  font-size: 0.8rem;
  color: var(--cool);
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 500;
}

/* Category pills on blog */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
}
.cat-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--olive);
}
.cat-pill:hover, .cat-pill.is-active {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}

/* Steps for tutorials */
.steps { counter-reset: step; display: grid; gap: 0.9rem; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--silver) 70%, var(--olive));
  display: grid;
  place-items: center;
}

/* Band helpers */
.band-white {
  background: var(--white);
  border-block: 1px solid var(--silver);
}

@media (max-width: 900px) {
  .hero-grid, .featured, .subscribe-band, .article-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .pillars, .article-grid { grid-template-columns: 1fr; }
  /* Slim header: one Articles link + Contact stay visible; Menu unused */
  .nav-links { display: flex; gap: 0.85rem; flex-shrink: 0; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-toggle { display: none; }
  .featured-media { min-height: 200px; }
  .sidebar { position: static; }
  .brand-lockup {
    --brand-word-size: 1.85rem;
    --brand-tag-size: 0.5625rem;
    max-width: 14.5rem;
  }
  .nav {
    min-height: 72px;
    padding: 0.5rem 0;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .nav > nav { margin-left: auto; }
  .hero-panel-graphic { width: 56px; height: 56px; opacity: 0.4; }

  .article-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-lockup {
    --brand-word-size: 1.55rem;
    --brand-tag-size: 0.5rem;
    max-width: 11.5rem;
  }
  .brand-tagline { letter-spacing: 0; }
  .nav { gap: 0.5rem; min-height: 64px; }
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-actions .btn-sm { padding: 0.45rem 0.7rem; font-size: 0.7rem; }
}
