/* =========================================================
   RRS BLOG — THE DATA LOG
   Same neo-brutal design language as ranjeetskanda.com:
   yellow #ffde66 + ink #1f1f1f, hard shadows, mono accents.
   ========================================================= */

:root {
  --ink:        #1f1f1f;
  --charcoal:   #3d3d3d;
  --smoke:      #5a5a5a;
  --steel:      #8a8a8a;
  --paper:      #f4eedb;
  --cream:      #faf6e8;
  --bone:       #ece4cb;
  --yellow:     #ffde66;
  --yellow-deep:#e6b800;
  --yellow-soft:#fff3b0;
  --coral:      #ff7a5c;
  --mint:       #6ee7c4;
  --lilac:      #c8b5ff;
  --sky:        #7cc4ff;

  --shadow-hard:    6px 6px 0 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 0 var(--ink);

  --border:       3px solid var(--ink);
  --border-thin:  2px solid var(--ink);

  --font-ui:      "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31,31,31,0.07) 1px, transparent 0);
  background-size: 22px 22px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--smoke); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap--article { max-width: 900px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: var(--border);
}
.header__row1 {
  display: flex;
  align-items: stretch;
  border-bottom: var(--border);
}
.brand {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: var(--yellow);
  border-right: var(--border);
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.brand__mark {
  width: 50px; height: 50px;
  background: var(--ink); color: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.45em; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__role {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cta-top {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.cta-top:hover { background: var(--charcoal); }
.cta-top .arrow {
  width: 20px; height: 20px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
}

.header__row2 {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav {
  display: flex;
  flex: 1;
  overflow-x: auto;
}
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-right: 2px solid var(--charcoal);
  white-space: nowrap;
}
.nav a .num { color: var(--yellow-deep); font-size: 10px; }
.nav a:hover { background: var(--charcoal); color: var(--yellow); }
.nav a.is-active { background: var(--yellow); color: var(--ink); }
.nav a.is-active .num { color: var(--ink); }
.nav-burger { display: none; }
.nav__scrim { display: none; }

.nav-search {
  display: flex; align-items: stretch;
  border-left: 2px solid var(--charcoal);
}
.nav-search input {
  background: var(--ink); color: var(--cream);
  border: none;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  width: 180px;
}
.nav-search input::placeholder { color: var(--steel); }
.nav-search input:focus { outline: none; background: var(--charcoal); }
.nav-search button {
  background: var(--yellow); color: var(--ink);
  border: none; border-left: 2px solid var(--charcoal);
  padding: 0 16px;
  font-weight: 800; font-size: 14px;
}
.nav-search button:hover { background: var(--yellow-soft); }

/* =========================================================
   SECTIONS / HEADINGS
   ========================================================= */
.section { padding: 64px 0; }
.section--cream { background: var(--cream); border-top: var(--border); }

.sec-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sec-head__num {
  font-family: var(--font-mono);
  font-weight: 800; font-size: 14px;
  background: var(--ink); color: var(--yellow);
  padding: 8px 12px;
  border: 3px solid var(--ink);
  letter-spacing: 0.06em;
}
.sec-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sec-head__meta {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--smoke);
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}
.sec-head__meta .dash { width: 36px; height: 3px; background: var(--ink); display: inline-block; }

/* =========================================================
   BUTTONS / CHIPS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-ui);
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); background: var(--yellow-soft); color: var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: var(--cream); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--mint); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--paper); }
.btn .arrow {
  width: 20px; height: 20px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.btn:hover .arrow { transform: rotate(-30deg); }

.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: var(--cream);
  border: var(--border-thin);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.chip--ink { background: var(--ink); color: var(--yellow); }

.tagchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  background: var(--cream);
  border: var(--border-thin);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: lowercase;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.tagchip:hover { background: var(--yellow); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--ink); }
.tagchip__count {
  background: var(--ink); color: var(--yellow);
  padding: 1px 7px;
  font-size: 10px;
}
.tagcloud { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }

/* =========================================================
   BLOG HERO (home)
   ========================================================= */
.bloghero {
  padding: 56px 0;
  border-bottom: var(--border);
  background: var(--cream);
}
.bloghero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.bloghero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 20px;
}
.bloghero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.bloghero__title .accent { color: var(--yellow-deep); }
.bloghero__lead {
  margin: 22px 0 0;
  font-size: 18px;
  max-width: 52ch;
  color: var(--charcoal);
  font-weight: 500;
}
.bloghero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================================================
   STAT CARDS  (shared: hero, posts, :::stats blocks)
   ========================================================= */
.stat {
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px;
  min-width: 0;
}
.stat--ink    { background: var(--ink); color: var(--cream); }
.stat--yellow { background: var(--yellow); }
.stat--coral  { background: var(--coral); }
.stat--mint   { background: var(--mint); }
.stat--lilac  { background: var(--lilac); }
.stat--sky    { background: var(--sky); }
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.stat__lbl {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--smoke);
  margin-top: 8px;
}
.stat--ink .stat__lbl { color: var(--bone); }
.stat--yellow .stat__lbl, .stat--coral .stat__lbl,
.stat--mint .stat__lbl, .stat--lilac .stat__lbl, .stat--sky .stat__lbl { color: var(--charcoal); }

/* =========================================================
   POST CARDS
   ========================================================= */
.pcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pcard {
  display: flex; flex-direction: column;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
  min-width: 0;
}
.pcard:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 0 var(--ink); }
.pcard:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 0 var(--ink); }
.pcard__band { height: 12px; border-bottom: var(--border); background: var(--yellow); }
.pcard--yellow .pcard__band { background: var(--yellow); }
.pcard--coral  .pcard__band { background: var(--coral); }
.pcard--mint   .pcard__band { background: var(--mint); }
.pcard--lilac  .pcard__band { background: var(--lilac); }
.pcard--sky    .pcard__band { background: var(--sky); }
.pcard--ink    .pcard__band { background: var(--ink); }
.pcard__cover { border-bottom: var(--border); max-height: 320px; overflow: hidden; }
.pcard__cover img { width: 100%; object-fit: cover; }
.pcard__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__meta {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--smoke);
  display: flex; gap: 8px; align-items: center;
}
.pcard__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.pcard--big .pcard__title { font-size: clamp(26px, 3.4vw, 40px); }
.pcard__stat {
  display: flex; align-items: baseline; gap: 12px;
  border: var(--border-thin);
  box-shadow: var(--shadow-hard-sm);
  padding: 10px 14px;
  align-self: flex-start;
}
.pcard__statnum {
  font-family: var(--font-mono);
  font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em;
}
.pcard__statlbl {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal);
}
.pcard__desc { margin: 0; font-size: 14px; color: var(--charcoal); flex: 1; }
.pcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--bone);
}
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--bone);
  padding: 3px 8px;
}
.pcard__more {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.pcard:hover .pcard__more { color: var(--yellow-deep); }

/* =========================================================
   ARCHIVE
   ========================================================= */
.archive-year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-bottom: 40px; }
.archive-year__label {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--yellow-deep);
  -webkit-text-stroke: 2px var(--ink);
  line-height: 1;
  position: sticky; top: 140px;
  align-self: start;
}
.archive-list { display: grid; gap: 12px; }
.archive-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 18px;
  background: var(--cream);
  border: var(--border-thin);
  box-shadow: var(--shadow-hard-sm);
  padding: 14px 18px;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.archive-row:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 0 var(--ink); background: var(--yellow-soft); }
.archive-row__date {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase;
  color: var(--smoke);
}
.archive-row__title { font-weight: 700; font-size: 16px; }
.archive-row__stat {
  font-family: var(--font-mono);
  font-weight: 800; font-size: 14px;
  background: var(--yellow);
  border: var(--border-thin);
  padding: 2px 10px;
}
.archive-row__meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--smoke);
  white-space: nowrap;
}

/* =========================================================
   PAGER
   ========================================================= */
.pager { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.pager a {
  font-family: var(--font-mono);
  font-weight: 800; font-size: 13px;
  padding: 9px 14px;
  border: var(--border-thin);
  background: var(--cream);
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none;
}
.pager a:hover { background: var(--yellow-soft); }
.pager a.is-on { background: var(--ink); color: var(--yellow); }

/* =========================================================
   ARTICLE
   ========================================================= */
.article__hero { border-bottom: var(--border); padding: 48px 0 40px; background: var(--cream); }
.hero--yellow { background: var(--yellow); }
.hero--coral  { background: var(--coral); }
.hero--mint   { background: var(--mint); }
.hero--lilac  { background: var(--lilac); }
.hero--sky    { background: var(--sky); }
.hero--ink    { background: var(--ink); color: var(--cream); }
.hero--ink .article__title { color: var(--yellow); }
.hero--ink .chip { background: var(--charcoal); color: var(--cream); border-color: var(--cream); }
.hero--ink .chip--ink { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.draftbanner {
  background: var(--ink); color: var(--coral);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px;
  margin-bottom: 24px;
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
}
.draftbanner a { color: var(--yellow); }

.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.article__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.article__lead {
  margin: 20px 0 0;
  font-size: 19px; font-weight: 500;
  color: var(--charcoal);
  max-width: 60ch;
}
.hero--ink .article__lead { color: var(--bone); }
.article__herostat {
  display: inline-flex; align-items: baseline; gap: 16px;
  margin-top: 26px;
  padding: 16px 22px;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard);
}
.article__heronum {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.article__herolbl {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal);
  max-width: 26ch;
}
.article__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.article__cover {
  margin: 36px 0 0;
  border: var(--border);
  box-shadow: var(--shadow-hard);
}
.article__cover img { width: 100%; }

.article__content { padding: 44px 0 8px; font-size: 17.5px; line-height: 1.75; }
.article__content > :first-child { margin-top: 0; }
.article__content h1,
.article__content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--ink);
}
.article__content h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 40px 0 14px;
}
.article__content h4, .article__content h5, .article__content h6 {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 32px 0 12px;
}
.article__content p { margin: 0 0 22px; }
.article__content a { color: var(--ink); font-weight: 700; text-decoration: underline 2.5px var(--yellow-deep); text-underline-offset: 3px; }
.article__content a:hover { background: var(--yellow-soft); }
.article__content mark { background: var(--yellow); padding: 1px 5px; border: 1.5px solid var(--ink); font-weight: 600; }
.article__content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bone);
  border: 1.5px solid var(--ink);
  padding: 2px 6px;
}
.article__content .codeblock {
  background: var(--ink); color: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0 0 26px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}
.article__content .codeblock code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.article__content .codeblock[data-lang]::before {
  content: attr(data-lang);
  position: absolute; top: 0; right: 0;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px;
  border-left: var(--border-thin); border-bottom: var(--border-thin);
}
.article__content blockquote {
  margin: 0 0 26px;
  padding: 18px 24px;
  background: var(--cream);
  border: var(--border);
  border-left-width: 10px;
  box-shadow: var(--shadow-hard-sm);
  font-weight: 500;
}
.article__content blockquote p:last-child { margin-bottom: 0; }
.article__content ul, .article__content ol { margin: 0 0 22px; padding-left: 26px; }
.article__content li { margin-bottom: 8px; }
.article__content li::marker { font-weight: 800; color: var(--yellow-deep); }
.article__content hr {
  border: none;
  height: 4px; background: var(--ink);
  margin: 44px auto;
  width: 120px;
}
.article__content .md-figure, .article__content img { margin: 0 auto; }
.article__content .md-figure {
  margin: 0 0 26px;
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  background: var(--cream);
}
.article__content .md-figure img { width: 100%; }
.article__content .md-figure figcaption,
.ig-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  padding: 10px 14px;
  border-top: var(--border-thin);
  background: var(--yellow-soft);
}
.tablewrap { overflow-x: auto; margin: 0 0 26px; border: var(--border); box-shadow: var(--shadow-hard-sm); }
.article__content table { border-collapse: collapse; width: 100%; background: var(--cream); font-size: 15px; }
.article__content th {
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.article__content td { padding: 11px 16px; border-top: 2px solid var(--bone); }
.article__content tbody tr:hover { background: var(--yellow-soft); }

.article__end {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 8px;
  border-top: 4px solid var(--ink);
  margin-top: 24px;
}
.article__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 28px 0 56px;
}
.article__navcard {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  padding: 16px 20px;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.article__navcard:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 0 var(--ink); background: var(--yellow-soft); }
.article__navcard--r { text-align: right; }
.article__navdir {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--smoke);
}
.article__navtitle { font-weight: 800; }

/* =========================================================
   INFOGRAPHIC BLOCKS — the heart of the blog
   ========================================================= */
.ig { margin: 34px 0; }
.ig__title {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow);
  display: inline-block;
  padding: 7px 13px;
  margin-bottom: 16px;
}

/* stats grid */
.ig-stats { display: grid; gap: 14px; }
.ig-stats.cols-1 { grid-template-columns: 1fr; }
.ig-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ig-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ig-stats.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .ig-stats.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* big number */
.ig-bignum {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  padding: 30px 34px;
  background: var(--yellow);
}
.bignum--yellow { background: var(--yellow); }
.bignum--coral  { background: var(--coral); }
.bignum--mint   { background: var(--mint); }
.bignum--lilac  { background: var(--lilac); }
.bignum--sky    { background: var(--sky); }
.bignum--ink    { background: var(--ink); color: var(--yellow); }
.bignum__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.bignum__lbl {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.bignum--ink .bignum__lbl { color: var(--bone); }

/* bar / progress charts */
.ig-bar {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--cream);
  padding: 24px;
}
.bar { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 14px; margin-bottom: 14px; }
.bar:last-child { margin-bottom: 0; }
.bar__label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar__track {
  height: 30px;
  border: var(--border-thin);
  background: var(--paper);
  position: relative;
}
.bar__fill {
  height: 100%;
  border-right: var(--border-thin);
  background: var(--yellow);
  transition: width 0.9s cubic-bezier(.2,.7,.2,1);
}
.bar__fill[style*="width:100"] { border-right: none; }
.fill--yellow { background: var(--yellow); }
.fill--coral  { background: var(--coral); }
.fill--mint   { background: var(--mint); }
.fill--lilac  { background: var(--lilac); }
.fill--sky    { background: var(--sky); }
.fill--ink    { background: var(--ink); }
.bar__value {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  text-align: right;
}

/* line chart */
.ig-line {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--cream);
  padding: 24px;
}
.ig-line svg { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--bone); stroke-width: 2; }
.lc-area { fill: var(--yellow); opacity: 0.45; }
.lc-line { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round; }
.lc-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 3.5; }
.lc-dot:hover { fill: var(--coral); }
.lc-xlbl, .lc-ylbl {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 700;
  fill: var(--charcoal);
}

/* donut */
.ig-donut {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--cream);
  padding: 24px;
}
.ig-donut__body { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.ig-donut svg { width: 200px; height: 200px; flex-shrink: 0; transform: rotate(-90deg); }
.dn-legend { display: grid; gap: 10px; flex: 1; min-width: 200px; }
.dn-key { display: flex; align-items: center; gap: 12px; }
.dn-swatch {
  width: 18px; height: 18px;
  border: var(--border-thin);
  flex-shrink: 0;
}
.sw--yellow { background: var(--yellow); }
.sw--coral  { background: var(--coral); }
.sw--mint   { background: var(--mint); }
.sw--lilac  { background: var(--lilac); }
.sw--sky    { background: var(--sky); }
.sw--ink    { background: var(--ink); }
.dn-name { font-family: var(--font-mono); font-size: 13px; font-weight: 700; flex: 1; }
.dn-pct {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  background: var(--ink); color: var(--yellow);
  padding: 2px 9px;
}

/* timeline */
.ig-timeline { display: grid; gap: 0; }
.tl__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0 18px 0;
  position: relative;
  border-left: 4px solid var(--ink);
  padding-left: 24px;
  margin-left: 8px;
}
.tl__item::before {
  content: "";
  position: absolute;
  left: -12px; top: 26px;
  width: 14px; height: 14px;
  background: var(--yellow);
  border: var(--border-thin);
  border-radius: 50%;
}
.tl__when {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.04em;
  align-self: start;
  justify-self: start;
  padding: 5px 11px;
  border: var(--border-thin);
  box-shadow: var(--shadow-hard-sm);
  background: var(--yellow);
}
.chip--yellow { background: var(--yellow); }
.chip--coral  { background: var(--coral); }
.chip--mint   { background: var(--mint); }
.chip--lilac  { background: var(--lilac); }
.chip--sky    { background: var(--sky); }
.tl__head { font-weight: 800; font-size: 17px; }
.tl__desc { color: var(--charcoal); font-size: 15px; margin-top: 4px; }

/* compare */
.ig-compare {
  border: var(--border);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.cmp__heads { display: grid; grid-template-columns: 1fr 1fr; }
.cmp__head {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 18px;
  text-align: center;
}
.cmp__head--l { background: var(--coral); border-right: var(--border-thin); border-bottom: var(--border); }
.cmp__head--r { background: var(--mint); border-bottom: var(--border); }
.cmp__row { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.cmp__row:nth-child(odd) { background: var(--paper); }
.cmp__cell { padding: 13px 18px; font-size: 15px; }
.cmp__cell--l { border-right: var(--border-thin); }

/* pull quote */
.ig-quote {
  border: var(--border);
  border-left-width: 12px;
  box-shadow: var(--shadow-hard);
  background: var(--yellow);
  padding: 30px 34px;
  position: relative;
}
.ig-quote__mark {
  position: absolute; top: -26px; right: 18px;
  font-family: var(--font-display);
  font-size: 90px; font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.ig-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ig-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  font-style: normal;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ig-quote cite::before { content: "— "; }

/* figure */
.ig-figure {
  margin: 34px 0;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--cream);
}
.ig-figure img { width: 100%; }

/* callout */
.ig-callout {
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px 24px;
  background: var(--yellow-soft);
  font-size: 16px;
}
.ig-callout p { margin: 0 0 10px; }
.ig-callout p:last-child { margin-bottom: 0; }
.callout--yellow { background: var(--yellow-soft); }
.callout--coral  { background: #ffd9cf; }
.callout--mint   { background: #d9f8ec; }
.callout--lilac  { background: #eae3ff; }
.callout--sky    { background: #ddefff; }
.callout--ink    { background: var(--ink); color: var(--cream); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink); color: var(--cream);
  border-top: var(--border);
  padding: 48px 0 36px;
  margin-top: 64px;
}
.footer__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--yellow);
}
.footer__role {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 8px;
  color: var(--bone);
}
.footer__about {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bone);
  font-weight: 500;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col a {
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  color: var(--cream);
}
.footer__col a:hover { color: var(--yellow); }
.footer__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 11px 15px;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--yellow-deep);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.footer__bottom {
  max-width: 1280px; margin: 36px auto 0;
  padding: 22px 32px 0;
  border-top: 2px solid var(--charcoal);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: var(--steel);
}

/* =========================================================
   REVEAL / MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1020px) {
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .bloghero__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .pcards { grid-template-columns: 1fr; }
  .brand__role { display: none; }
  .cta-top { padding: 0 16px; }
  .cta-top span:first-child { display: none; }

  .header__row2 { flex-wrap: wrap; }
  .nav-burger {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: none;
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 13px 18px;
  }
  .nav-burger__bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .nav-burger__bars span { width: 18px; height: 3px; background: var(--yellow); display: block; }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 2px solid var(--charcoal);
  }
  .nav.is-open { display: flex; }
  .nav a { border-right: none; border-bottom: 2px solid var(--charcoal); }
  .nav-search { margin-left: auto; border-left: none; }
  .nav-search input { width: 120px; }

  .archive-year { grid-template-columns: 1fr; gap: 10px; }
  .archive-year__label { position: static; }
  .archive-row { grid-template-columns: 1fr; gap: 6px; }
  .archive-row__meta { display: none; }
  .bar { grid-template-columns: 90px 1fr 56px; gap: 8px; }
  .bar__label { font-size: 11px; }
  .tl__item { grid-template-columns: 1fr; gap: 8px; }
  .cmp__cell, .cmp__head { padding: 10px 12px; font-size: 13.5px; }
  .article__nav { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .bloghero__stats { grid-template-columns: 1fr 1fr; }
  .article__content { font-size: 16.5px; }
}
