/* ═══════════════════════════════════════════
   PROMPT ENGINES LAB NOTES
   taste-skill compliant · design-variance:8
   motion-intensity:6 · visual-density:4
   ═══════════════════════════════════════════ */

:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-subtle: #0f0f12;
  --border: #27272a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #71717a;
  --accent: #F04D26;
  --accent-hover: #d94420;
  --accent-dim: rgba(240, 77, 38, 0.1);
  --accent-glow: rgba(240, 77, 38, 0.25);
  --radius: 1.25rem;
  --radius-sm: 0.625rem;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

/* ── Scrollbar ── */
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Selection ── */
::selection { background: rgba(240, 77, 38, 0.4); color: #fff; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Grain texture on fixed pseudo-element (perf-safe) ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   TOPBAR — Liquid glass refraction
   ═══════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-inner {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.3s var(--ease);
}

.brand:hover { opacity: 0.7; }
.brand span { color: var(--accent); }

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-4);
  text-decoration: none;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.nav a:hover { color: var(--text); }

/* ── Nav dropdown ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.nav-dropdown > span {
  color: var(--text-4);
  cursor: pointer;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.3s var(--ease);
  user-select: none;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown > span::after {
  content: " ▾";
  font-size: 9px;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}

.nav-dropdown:hover > span::after,
.nav-dropdown.is-open > span::after {
  transform: rotate(180deg);
}

.nav-dropdown:hover > span,
.nav-dropdown:focus-within > span,
.nav-dropdown.is-open > span { color: var(--text); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block !important;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-3);
  text-decoration: none;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   HERO — Asymmetric split (DESIGN_VARIANCE:8)
   Left-aligned content, right status panel
   ═══════════════════════════════════════════ */
.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 16ch;
  color: var(--text);
}

.hero-lead {
  color: var(--text-3);
  font-size: 17px;
  max-width: min(48ch, 100%);
  line-height: 1.65;
}

/* Hero aside — status indicators */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-stat {
  background: var(--bg-elevated);
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hero-stat-number {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 48px 0 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  gap: 16px;
}

.section h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   FEATURED GRID — Asymmetric 2fr/1fr
   ═══════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   POST GRID — 2-column
   ═══════════════════════════════════════════ */
.post-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ═══════════════════════════════════════════
   POST CARD
   ═══════════════════════════════════════════ */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}

.post-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent-dim),
    0 16px 40px -12px rgba(0, 0, 0, 0.5);
}

.post-card:active {
  transform: translateY(0) scale(0.985);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-meta .tag {
  color: var(--accent);
  font-weight: 500;
}

.post-card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.post-featured h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.post-card p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
  margin-top: auto;
}

/* ═══════════════════════════════════════════
   ARCHIVE LIST — divide-y, no card boxes
   ═══════════════════════════════════════════ */
.archive-list {
  border-top: 1px solid var(--border);
}

.archive-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}

.archive-item:hover {
  padding-left: 8px;
}

.archive-item:hover h3 {
  color: var(--accent);
}

.archive-meta {
  color: var(--text-4);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  white-space: nowrap;
}

.archive-item h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}

/* ═══════════════════════════════════════════
   STAGGER ANIMATION — sequential reveal
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger > * {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.8); }
}

/* ═══════════════════════════════════════════
   ARTICLE PAGES
   ═══════════════════════════════════════════ */
.article {
  padding: 56px 0 72px;
}

.article .meta-row {
  color: var(--text-4);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article h1 {
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  max-width: 18ch;
}

.article .dek {
  color: var(--text-3);
  font-size: 18px;
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

.content {
  max-width: 720px;
}

.content p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 65ch;
}

.content h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.content ul {
  margin: 12px 0 18px 20px;
}

.content li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}

.content li::marker {
  color: var(--accent);
}

.content strong {
  font-weight: 600;
  color: var(--text);
}

.content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ═══════════════════════════════════════════
   FIGURES & VISUALS
   ═══════════════════════════════════════════ */
.figure {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.visual {
  min-height: 170px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.figure figcaption {
  padding: 12px 16px;
  color: var(--text-4);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.visual-code {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  white-space: pre-line;
  line-height: 1.75;
}

.visual-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  padding: 20px;
}

.visual-bars i {
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent), rgba(240, 77, 38, 0.3));
}

.visual-diagram {
  position: relative;
  overflow: hidden;
}

.visual-diagram::before,
.visual-diagram::after {
  content: "";
  position: absolute;
  background: var(--accent);
  opacity: 0.2;
}

.visual-diagram::before {
  left: 8%; right: 8%; top: 50%; height: 1px;
}

.visual-diagram::after {
  top: 8%; bottom: 8%; left: 50%; width: 1px;
}

.visual-gradient {
  background:
    radial-gradient(circle at 24% 30%, rgba(240, 77, 38, 0.2), transparent 40%),
    radial-gradient(circle at 76% 60%, rgba(240, 77, 38, 0.08), transparent 45%),
    var(--bg);
}

.visual-matrix {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  white-space: pre-line;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   ARTICLE NAV
   ═══════════════════════════════════════════ */
.article-nav {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.article-nav a {
  color: var(--text-4);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}

.article-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
  color: var(--text-4);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-aside {
    flex-direction: row;
  }

  .hero-stat { flex: 1; }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Nav: horizontal scroll on tablet/mobile */
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    gap: 8px;
    min-height: auto;
  }

  .nav {
    gap: 6px 12px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a,
  .nav-dropdown > span {
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 100px;
    left: 16px;
    right: 16px;
    min-width: auto;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
    overflow: hidden;
  }

  .topbar-inner {
    min-height: auto;
  }

  .hero { padding: 40px 0 28px; }

  .hero h1 { font-size: clamp(28px, 7vw, 40px); }

  .hero-lead {
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-aside {
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
  }

  .hero-stat {
    padding: 10px 14px;
    gap: 8px;
  }

  .hero-stat-link .stat-eyebrow {
    font-size: 10px;
    min-width: 70px;
  }

  .hero-stat-link .stat-text {
    font-size: 12px;
  }

  .section { padding: 36px 0; }

  .section-header h2 { font-size: 20px; }

  .post-card {
    padding: 18px;
  }

  .post-card h3 {
    font-size: 18px;
  }

  .post-card p {
    font-size: 14px;
  }

  .mode-cell {
    padding: 0.75rem 1rem;
  }

  .mode-cell .symbol {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: inline;
    margin-right: 0.5rem;
  }

  .mode-cell .label {
    display: inline;
    margin-bottom: 0;
    font-size: 14px;
  }

  .mode-cell .desc {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  .article .dek { font-size: 16px; }
  .content p { font-size: 16px; }

  .article-content {
    padding: 0 16px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .nav-links {
    gap: 6px 12px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links li {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════
   READING PROGRESS BAR
   Fixed to top, accent color, smooth fill
   ═══════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   CONTENT MODES GRID
   ═══════════════════════════════════════════ */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
}

.mode-cell {
  background: var(--bg-elevated);
  padding: 1.25rem;
}

.mode-cell .symbol {
  font-family: var(--mono);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mode-cell .label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mode-cell .desc {
  font-size: 0.8rem;
  color: var(--text-4);
}

/* ═══════════════════════════════════════════
   BAR CHART
   ═══════════════════════════════════════════ */
.bar-chart {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bar-chart-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
  margin-bottom: 1rem;
}

.bar-chart-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  min-width: 140px;
  text-align: right;
}

.bar-track {
  flex: 1;
  background: var(--bg-subtle);
  border-radius: 3px;
  height: 20px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
}

.bar-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
  min-width: 24px;
}

/* ═══════════════════════════════════════════
   SECTION LINK
   ═══════════════════════════════════════════ */
.section-link {
  color: var(--text-4);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}

.section-link:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   HERO STAT LINKS
   ═══════════════════════════════════════════ */
.hero-stat-link {
  text-decoration: none;
  transition: background 0.2s;
}

.hero-stat-link .stat-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-stat-link .stat-text {
  font-size: 13px;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════
   ARTICLES INDEX — FEATURED
   ═══════════════════════════════════════════ */
.articles-featured {
  margin-bottom: 2rem;
}

.articles-featured .post-card {
  max-width: 100%;
}

.articles-featured .post-meta {
  margin-bottom: 10px;
}

.category-group {
  margin-bottom: 0;
}

.category-group-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .bar-label {
    min-width: 100px;
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(240, 77, 38, 0.08) 0%, rgba(11, 18, 32, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.newsletter-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.newsletter-content p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  min-width: 320px;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-input::placeholder {
  color: var(--text-4);
}

.newsletter-button {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.newsletter-button:hover {
  background: var(--accent-hover);
}

.newsletter-button:active {
  transform: scale(0.98);
}

@media (max-width: 720px) {
  .newsletter-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-form {
    min-width: auto;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════
   NAV LINKS (Article pages) — DEPRECATED
   Use .nav class instead for consistency
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   ARTICLE CONTENT CONTAINER
   ═══════════════════════════════════════════ */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-meta {
  color: var(--text-4);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-date { color: var(--text-4); }

.article-tag {
  color: var(--accent);
  font-weight: 500;
}

.article-lead {
  color: var(--text-3);
  font-size: 18px;
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   DATA TABLE (Article comparisons)
   ═══════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--bg-elevated);
}

.data-table td {
  color: var(--text-2);
  line-height: 1.5;
}

.data-table tbody tr:hover {
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════
   ARTICLE HIGHLIGHT BOX
   ═══════════════════════════════════════════ */
.article-highlight {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-highlight p {
  margin: 0;
  color: var(--text);
}

/* ═══════════════════════════════════════════
   ARTICLE NOTE BOX
   ═══════════════════════════════════════════ */
.article-note {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-note p {
  margin: 0;
  color: var(--text-3);
}

.article-note a {
  color: var(--accent);
  text-decoration: none;
}

.article-note a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   ARTICLE FOOTER
   ═══════════════════════════════════════════ */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

.article-footer p {
  margin: 8px 0;
}

.article-footer a {
  color: var(--text-3);
  text-decoration: none;
}

.article-footer a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   ARTICLE CONCLUSION
   ═══════════════════════════════════════════ */
.article-conclusion {
  font-style: italic;
  color: var(--text-3);
  margin: 32px 0;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════
   ARTICLE VERSION SELECTOR
   ═══════════════════════════════════════════ */
.article-versions {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.article-versions-top {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.version-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-4);
  margin-right: 0.5rem;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  background: var(--bg-subtle);
  transition: all 0.2s ease;
}

.version-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.version-badge.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  cursor: default;
}
