/* =======================================================================
   HexRoast — coffee, in hex.
   Global stylesheet. Loaded by every page.
   ======================================================================= */

:root {
  --bg: #0a0908;
  --bg-elevated: #14110f;
  --bg-card: #1a1612;
  --border: #2a2521;
  --border-bright: #3d362f;
  --text: #f5f1e8;
  --text-muted: #8a8178;
  --text-faint: #5a534b;
  --accent: #ff5722;
  --accent-dim: #c44018;
  --terminal: #4ade80;
  --cyan: #22d3ee;
  --crema: #d4a574;

  /* Category colors — used for chips, hex pills, borders */
  --c-brew: #d4a574;
  --c-build: #ff5722;
  --c-culture: #22d3ee;
  --c-community: #4ade80;

  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background grain texture — faint, no vignette (vs. reference) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =======================================================================
   Utility classes
   ======================================================================= */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Hex chip — signature element throughout the site */
.hex-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.hex-chip::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--chip, var(--accent));
  display: block;
  flex-shrink: 0;
}

/* =======================================================================
   Top nav — sticky, left-aligned logo, distinct from reference's centered masthead
   ======================================================================= */
.topnav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark .hash {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  margin-right: 4px;
  text-shadow: 0 0 12px rgba(255, 87, 34, 0.6);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.nav-links a {
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-cta {
  border: 1px solid var(--border-bright);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* =======================================================================
   Hero — left-aligned, not centered (unlike reference)
   ======================================================================= */
.hero {
  padding: 96px 0 100px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 55%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  flex-wrap: wrap;
}
.hero-meta-sep { color: var(--border-bright); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.hero-title .line1 { display: block; color: var(--text); }
.hero-title .line2 {
  display: block;
  font-style: italic;
  color: var(--crema);
  margin-top: -0.05em;
}
.hero-title .line2::after {
  content: '.';
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.75;
}
.hero-sub b { color: var(--text); font-weight: 500; }
.hero-sub code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =======================================================================
   Buttons
   ======================================================================= */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  border: 1px solid var(--border-bright);
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }

/* =======================================================================
   Palette strip — HexRoast's signature element, unique to this brand
   ======================================================================= */
.palette {
  margin-top: 72px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.palette-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.palette-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--terminal);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--terminal);
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
}
.swatch {
  background: var(--bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.swatch-color {
  width: 100%;
  height: 28px;
  background: var(--sw);
}
.swatch-name { font-size: 13px; color: var(--text); font-weight: 500; }
.swatch-hex { font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; margin-top: auto; }

/* =======================================================================
   Section structure
   ======================================================================= */
.section { padding: 100px 0; border-top: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-top: 12px;
}
.section-title em { color: var(--crema); font-style: italic; }
.section-view-all {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-view-all:hover { color: var(--crema); }

/* =======================================================================
   Manifesto / prose block
   ======================================================================= */
.prose-block {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}
.prose-block p { margin-bottom: 24px; }
.prose-block p b { color: var(--text); font-weight: 500; }
.prose-block code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
}

/* =======================================================================
   Featured card (homepage + category pages)
   — distinct from reference: side-by-side code preview + text
   ======================================================================= */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.featured-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 87, 34, 0.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34, 211, 238, 0.15), transparent 50%),
    linear-gradient(135deg, #1a1612 0%, #0a0908 100%);
  border-right: 1px solid var(--border);
  min-height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}
.featured-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--terminal);
  z-index: 2;
  position: relative;
  padding: 40px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.featured-code .c { color: var(--text-faint); }
.featured-code .k { color: var(--accent); }
.featured-code .s { color: var(--crema); }
.featured-code .h { color: var(--cyan); }
.featured-content { padding: 48px 40px; }
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid var(--chip, var(--accent));
  color: var(--chip, var(--accent));
  margin-bottom: 24px;
  text-transform: uppercase;
}
.featured-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--chip, var(--accent));
}
.featured-title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-weight: 400;
}
.featured-title em { color: var(--crema); font-style: italic; }
.featured-title a { color: inherit; transition: color 0.2s; }
.featured-title a:hover { color: var(--accent); }
.featured-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.featured-meta {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: gap 0.2s;
}
.read-link:hover { gap: 16px; }

/* =======================================================================
   Article card grid — the primary layout (vs. reference's timeline)
   ======================================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-elevated);
  padding: 0;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
.card:hover { background: var(--bg-card); }
.card:hover .card-cover { opacity: 0.9; }
.card:hover .card-title { color: var(--accent); }

.card-cover {
  height: 90px;
  background: var(--cover, var(--accent));
  position: relative;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
}
.card-cover-hex {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 700;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-cat::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cover, var(--accent));
  flex-shrink: 0;
}
.card-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.card-title em { color: var(--crema); font-style: italic; }
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-meta-sep { color: var(--border-bright); }

/* =======================================================================
   Newsletter block — terminal prompt aesthetic
   ======================================================================= */
.newsletter {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent 60%);
  pointer-events: none;
}
.nl-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.nl-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.nl-title em { color: var(--crema); font-style: italic; }
.nl-form { position: relative; z-index: 2; }
.nl-prompt {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.nl-prompt span { color: var(--terminal); }
.nl-input-wrap {
  display: flex;
  border: 1px solid var(--border-bright);
  background: var(--bg);
}
.nl-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.nl-input::placeholder { color: var(--text-faint); }
.nl-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0 28px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.nl-submit:hover { background: var(--crema); }
.nl-fine {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 16px;
  line-height: 1.6;
}

/* =======================================================================
   Footer — plain, with build version (vs. reference's handwritten sig)
   ======================================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 100px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-brand .hash { color: var(--accent); font-style: normal; }
.footer-tag {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.footer-hex {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: 0.05em;
}
.footer-bottom .mono-ts { color: var(--terminal); }

/* =======================================================================
   Article page — body typography
   ======================================================================= */
.article-head { padding: 64px 0 40px; }
.breadcrumb {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb .cat-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--chip, var(--accent));
}
h1.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
h1.article-title em { color: var(--crema); font-style: italic; }
.article-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}
.article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-meta .item { display: flex; align-items: center; gap: 8px; }
.article-meta .item b { color: var(--text); font-weight: 500; }
.article-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terminal);
  box-shadow: 0 0 6px var(--terminal);
}
.article-meta .hex-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chip, var(--accent));
}
.article-meta .hex-meta::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--chip, var(--accent));
}

/* Article body */
article.post-body {
  padding: 48px 0 64px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
article.post-body > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
article.post-body p { margin-bottom: 24px; }
article.post-body p b { color: var(--crema); font-weight: 500; }
article.post-body p em { color: var(--text); font-style: italic; }
article.post-body p code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}
article.post-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 64px auto 20px;
  color: var(--text);
}
article.post-body h2 .num {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
article.post-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 40px auto 16px;
  color: var(--crema);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
article.post-body h3 .hex-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
}
article.post-body h3 .hex-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--chip, var(--accent));
}

/* Code blocks in articles */
article.post-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--terminal);
  overflow-x: auto;
  margin: 32px auto;
}
article.post-body pre .c { color: var(--text-faint); }
article.post-body pre .k { color: var(--accent); }
article.post-body pre .s { color: var(--crema); }
article.post-body pre .f { color: var(--cyan); }
article.post-body pre .h { color: var(--cyan); }

/* Pullquote */
article.post-body .pullquote {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 48px auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
article.post-body .pullquote::before {
  content: '\201C';
  display: block;
  font-size: 64px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 20px;
}

/* Spec table */
article.post-body .spec {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 24px 28px;
  margin: 32px auto;
  font-size: 13px;
}
article.post-body .spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
article.post-body .spec-row:last-child { border-bottom: none; }
article.post-body .spec-key {
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: var(--mono);
}
article.post-body .spec-val { color: var(--text); line-height: 1.7; }
article.post-body .spec-val b { color: var(--accent); font-weight: 500; }

/* Callout */
article.post-body .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 28px;
  margin: 40px auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
article.post-body .callout-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--mono);
}
article.post-body .callout em { color: var(--text); font-style: italic; }

/* Arrow list */
article.post-body ul.arrow-list {
  list-style: none;
  padding: 0;
  margin: 24px auto;
}
article.post-body ul.arrow-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
article.post-body ul.arrow-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent);
}
article.post-body ul.arrow-list li b { color: var(--text); font-weight: 500; }

/* Article CTA */
.article-cta {
  max-width: 780px;
  margin: 72px auto 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent 60%);
  pointer-events: none;
}
.cta-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.cta-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.cta-title em { color: var(--crema); font-style: italic; }
.cta-title .hash { color: var(--accent); font-style: normal; }
.cta-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
  position: relative;
  z-index: 2;
}
.cta-desc code {
  background: var(--bg);
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
}

/* Tags */
.tags-section {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.tags-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: var(--mono);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* =======================================================================
   Category / index page heros — smaller, more utilitarian
   ======================================================================= */
.cat-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.cat-hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cat-hero-label .chip {
  width: 14px;
  height: 14px;
  background: var(--chip);
}
.cat-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-style: italic;
  color: var(--crema);
}
.cat-hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}
.cat-hero-desc b { color: var(--text); font-weight: 500; }

/* =======================================================================
   Responsive
   ======================================================================= */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-visual {
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .newsletter { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
    gap: 32px;
  }
  .footer-bottom { padding: 32px 20px 0; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 72px; }
  .section { padding: 64px 0; }
  article.post-body .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .article-cta { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .card-grid { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
  .topnav-inner { padding: 14px 20px; }
  .nav-cta { font-size: 10px; padding: 6px 12px; }
}
