:root {
  color-scheme: light;
  --bg: #f2eadb;
  --bg-strong: #fff9ec;
  --surface: rgba(255, 250, 239, 0.86);
  --surface-strong: rgba(29, 39, 39, 0.94);
  --text: #1c2726;
  --muted: #3f4a43;
  --faint: #687268;
  --line: rgba(29, 39, 39, 0.22);
  --primary: #17472d;
  --primary-soft: rgba(23, 71, 45, 0.15);
  --positive: #bf3d29;
  --positive-soft: rgba(191, 61, 41, 0.15);
  --warning: #c88a2a;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hero-image: url("assets/young-bulls-profile.png");
  --page-bg:
    radial-gradient(circle at 12% 4%, rgba(191, 61, 41, 0.11), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(23, 71, 45, 0.12), transparent 24rem),
    repeating-linear-gradient(28deg, rgba(29, 39, 39, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, var(--bg-strong), var(--bg));
  --hero-overlay: linear-gradient(90deg, rgba(255, 249, 236, 0.98), rgba(255, 249, 236, 0.9) 58%, rgba(255, 249, 236, 0.78));
  --hero-pattern:
    radial-gradient(circle at 82% 54%, rgba(191, 61, 41, 0.2) 0 2px, transparent 3px),
    repeating-linear-gradient(120deg, rgba(29, 39, 39, 0.05) 0 1px, transparent 1px 20px);
  --hero-pattern-size: 24px 24px, auto;
  --button-radius: 999px;
  --content-max: 1180px;
}

body[data-design="noir"] {
  color-scheme: light;
  --bg: #f1eadc;
  --bg-strong: #fff9ec;
  --surface: rgba(255, 249, 236, 0.88);
  --surface-strong: rgba(17, 18, 22, 0.94);
  --text: #111216;
  --muted: #5a554d;
  --faint: #8b8172;
  --line: rgba(17, 18, 22, 0.28);
  --primary: #b62d22;
  --primary-soft: rgba(182, 45, 34, 0.14);
  --positive: #111216;
  --positive-soft: rgba(17, 18, 22, 0.1);
  --warning: #d19a2a;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --shadow: 0 18px 0 rgba(17, 18, 22, 0.16);
  --font-body: Georgia, "Times New Roman", serif;
  --font-display: Georgia, "Times New Roman", serif;
  --page-bg:
    repeating-linear-gradient(0deg, rgba(17, 18, 22, 0.035) 0 1px, transparent 1px 11px),
    linear-gradient(90deg, #fff9ec, #efe4d0);
  --hero-overlay: linear-gradient(90deg, rgba(255, 249, 236, 0.95), rgba(255, 249, 236, 0.72) 54%, rgba(255, 249, 236, 0.2));
  --hero-pattern: repeating-linear-gradient(90deg, rgba(17, 18, 22, 0.18) 0 1px, transparent 1px 18px);
  --hero-pattern-size: auto;
  --button-radius: 2px;
}

body[data-design="terminal"] {
  --bg: #020604;
  --bg-strong: #000000;
  --surface: rgba(0, 18, 12, 0.92);
  --surface-strong: rgba(3, 31, 23, 0.98);
  --text: #d7ffe4;
  --muted: #81b79a;
  --faint: #557262;
  --line: rgba(133, 255, 181, 0.2);
  --primary: #28ff82;
  --primary-soft: rgba(40, 255, 130, 0.14);
  --positive: #ffe45c;
  --positive-soft: rgba(255, 228, 92, 0.12);
  --warning: #ffb000;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow: 0 0 0 1px rgba(40, 255, 130, 0.2);
  --font-body: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-display: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --page-bg:
    linear-gradient(rgba(40, 255, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 255, 130, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #020604, #00120c);
  --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 16, 11, 0.86) 58%, rgba(0, 0, 0, 0.42));
  --hero-pattern: repeating-linear-gradient(0deg, rgba(40, 255, 130, 0.13) 0 1px, transparent 1px 7px);
  --hero-pattern-size: auto;
  --button-radius: 0;
}

body[data-design="atlas"] {
  color-scheme: light;
  --bg: #ece1cc;
  --bg-strong: #f8f0df;
  --surface: rgba(255, 249, 237, 0.78);
  --surface-strong: rgba(8, 44, 54, 0.92);
  --text: #12313b;
  --muted: #59665f;
  --faint: #8c927e;
  --line: rgba(18, 49, 59, 0.22);
  --primary: #0f7182;
  --primary-soft: rgba(15, 113, 130, 0.14);
  --positive: #b65d2c;
  --positive-soft: rgba(182, 93, 44, 0.14);
  --warning: #b65d2c;
  --radius-sm: 6px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --shadow: 0 18px 60px rgba(50, 42, 28, 0.22);
  --font-body: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --page-bg:
    linear-gradient(120deg, rgba(15, 113, 130, 0.07), transparent 42%),
    repeating-linear-gradient(35deg, rgba(18, 49, 59, 0.04) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #f8f0df, #e6d4b7);
  --hero-overlay: linear-gradient(90deg, rgba(248, 240, 223, 0.92), rgba(248, 240, 223, 0.68) 50%, rgba(248, 240, 223, 0.26));
  --hero-pattern: repeating-linear-gradient(135deg, rgba(18, 49, 59, 0.09) 0 1px, transparent 1px 22px);
  --hero-pattern-size: auto;
  --button-radius: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  background-size: auto, auto, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-strong) 80%, transparent);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.1;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  letter-spacing: 0;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid rgba(23, 71, 45, 0.34);
  border-radius: 50%;
  background: var(--hero-image) center / cover;
  box-shadow: 0 10px 28px rgba(23, 71, 45, 0.2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav a {
  padding: 8px 0;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: calc(100svh - 76px);
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(34px, 6vw, 64px);
  background:
    var(--hero-overlay),
    linear-gradient(135deg, var(--bg-strong), var(--bg));
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    var(--hero-pattern);
  background-size: var(--hero-pattern-size);
  mask-image: linear-gradient(90deg, #000 0 44%, transparent 78%);
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-inner,
.hero-art,
.signal-board {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 820px;
}

.hero-art {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  width: min(38vw, 470px);
  min-width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 71, 45, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 249, 236, 0.08), rgba(255, 249, 236, 0.08)),
    var(--hero-image) center / cover;
  box-shadow: 0 22px 70px rgba(23, 71, 45, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--positive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  color: var(--bg-strong);
  box-shadow: 0 16px 44px var(--primary-soft);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 249, 236, 0.72);
}

.signal-board {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 236, 0.88);
  box-shadow: 0 18px 56px rgba(23, 71, 45, 0.12);
  backdrop-filter: blur(12px);
}

.signal-board span,
.signal-board strong {
  display: block;
}

.signal-board strong {
  margin: 8px 0;
  font-size: 1.65rem;
  line-height: 1;
}

.board-label,
.signal-board span:last-of-type {
  color: var(--muted);
  font-size: 0.88rem;
}

.meter {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 71, 45, 0.12);
}

.meter i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--positive));
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.7vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 72%, white 0%);
  background: var(--primary-soft);
  color: var(--text);
}

.featured-post {
  margin-bottom: 22px;
}

.featured-card,
.post-card,
.command-panel,
.growth-steps article,
.trust-grid article,
.article-toc,
.author-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.search-box {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 18px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 249, 236, 0.76);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  min-height: 340px;
  overflow: hidden;
}

.featured-copy,
.featured-meta {
  padding: clamp(22px, 4vw, 38px);
}

.featured-copy h3 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.featured-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.featured-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at top right, var(--positive-soft), transparent 20rem),
    var(--surface-strong);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.sample-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sample-badge {
  color: #07111f;
  background: var(--warning);
}

.read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-strong);
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 54%, white 0%);
  background: var(--surface-strong);
}

.post-card h3 {
  margin: 14px 0 12px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.post-card p,
.post-meta,
.queue-item p,
.growth-steps p,
.command-panel p,
.trust-grid p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.design-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.design-option {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.design-option:hover,
.design-option:focus-visible,
.design-option.selected {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.design-option strong,
.design-option span:not(.swatch) {
  display: block;
}

.design-option strong {
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

.design-option span:not(.swatch) {
  color: var(--muted);
  line-height: 1.55;
}

.swatch {
  display: block;
  width: 100%;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.signal-swatch {
  background:
    radial-gradient(circle at 72% 48%, #fff9ec 0 18%, transparent 19%),
    linear-gradient(135deg, #fff9ec, #17472d 52%, #bf3d29);
}

.wire-swatch {
  background:
    repeating-linear-gradient(0deg, rgba(17, 18, 22, 0.22) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #fff9ec, #111216 54%, #b62d22);
}

.ledger-swatch {
  background:
    linear-gradient(rgba(40, 255, 130, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 255, 130, 0.24) 1px, transparent 1px),
    linear-gradient(135deg, #020604, #28ff82 48%, #ffe45c);
  background-size: 14px 14px, 14px 14px, auto;
}

.atlas-swatch {
  background:
    repeating-linear-gradient(35deg, rgba(18, 49, 59, 0.18) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #f8f0df, #0f7182 58%, #b65d2c);
}

.autopilot-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.command-panel {
  padding: 24px;
}

.command-panel h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.command-panel code {
  display: block;
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--positive);
  line-height: 1.55;
  white-space: pre-wrap;
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.queue-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.queue-item strong {
  display: block;
  margin-bottom: 8px;
}

.growth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.growth-steps article {
  padding: 24px;
}

.growth-steps span {
  color: var(--positive);
  font-weight: 900;
}

.growth-steps h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
}

.section-heading.compact {
  max-width: 690px;
}

.section-heading.compact h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 24px;
}

.trust-grid strong {
  font-size: 1.18rem;
}

.trust-grid a {
  width: fit-content;
  color: var(--primary);
  font-weight: 900;
}

.subscribe-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 88% 22%, var(--positive-soft), transparent 18rem),
    var(--surface-strong);
  color: var(--bg-strong);
  box-shadow: 0 22px 70px rgba(23, 71, 45, 0.18);
}

.subscribe-panel h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.subscribe-panel p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 249, 236, 0.78);
  line-height: 1.7;
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-form label {
  color: rgba(255, 249, 236, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subscribe-form div {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 50px;
  border: 1px solid rgba(255, 249, 236, 0.25);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 249, 236, 0.12);
  color: var(--bg-strong);
  outline: none;
}

.subscribe-form input::placeholder {
  color: rgba(255, 249, 236, 0.48);
}

.subscribe-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--positive);
  color: var(--bg-strong);
  font-weight: 900;
}

.subscribe-form > p {
  margin: 0;
  color: rgba(255, 249, 236, 0.68) !important;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--text);
}

.article-header {
  position: sticky;
}

.article-main {
  min-height: calc(100svh - 76px);
  padding: clamp(46px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.article-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.article-shell h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.article-deck {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 28px;
}

.share-bar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-bar a,
.share-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 249, 236, 0.76);
  color: var(--text);
  font-weight: 800;
}

.share-bar a:hover,
.share-bar a:focus-visible,
.share-bar button:hover,
.share-bar button:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.article-toc {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 20px;
}

.article-toc strong {
  color: var(--positive);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.article-toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-toc a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  border-color: var(--primary);
  color: var(--text);
}

.article-body {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.article-body section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.takeaways {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.takeaways h2 {
  margin-bottom: 12px;
}

.rankings {
  display: grid;
  gap: 28px;
  margin: 34px 0;
}

.ranking-block {
  min-width: 0;
}

.ranking-block h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.ranking-block > p {
  max-width: 790px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.ranking-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-table th,
.ranking-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-table th {
  color: var(--positive);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ranking-table td {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.rank-cell {
  width: 72px;
  color: var(--text) !important;
  font-weight: 900;
}

.player-cell {
  width: 260px;
}

.player-cell strong,
.player-cell span {
  display: block;
}

.player-cell strong {
  color: var(--text);
  font-size: 1rem;
}

.player-cell span {
  margin-top: 5px;
  color: var(--faint);
}

.author-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 36px 0;
  padding: 22px;
}

.author-avatar {
  width: 78px;
  aspect-ratio: 1;
  border: 2px solid rgba(23, 71, 45, 0.24);
  border-radius: 50%;
  background: var(--hero-image) center / cover;
}

.author-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.author-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.related-posts {
  margin-top: 44px;
}

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

.about-main {
  padding: clamp(46px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.42fr);
  gap: clamp(26px, 5vw, 60px);
  max-width: var(--content-max);
  margin: 0 auto;
}

.about-copy h1 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.about-copy p,
.about-copy li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.about-copy section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.about-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface);
}

.about-panel strong,
.about-panel a {
  display: block;
}

.about-panel a {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 900;
}

body[data-design="pulse"] .hero-shell {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
}

body[data-design="pulse"] .featured-card {
  box-shadow: var(--shadow);
}

body[data-design="noir"] .site-header {
  min-height: 86px;
  border-bottom: 2px solid var(--text);
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent);
  backdrop-filter: none;
}

body[data-design="noir"] .brand-mark {
  border-radius: 0;
  background: url("assets/young-bulls-profile.png") center / cover;
  box-shadow: none;
}

body[data-design="noir"] .hero-shell {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(92svh - 86px);
  border-bottom: 2px solid var(--text);
}

body[data-design="noir"] .hero-shell::after {
  opacity: 0.45;
  mask-image: none;
}

body[data-design="noir"] .hero-inner {
  max-width: 980px;
}

body[data-design="noir"] h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 10vw, 9.2rem);
  line-height: 0.86;
}

body[data-design="noir"] .hero-copy {
  max-width: 740px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

body[data-design="noir"] .signal-board {
  display: grid;
  grid-template-columns: minmax(130px, 0.3fr) minmax(220px, 0.4fr) minmax(220px, 0.3fr);
  gap: 18px;
  max-width: 980px;
  padding: 18px 0;
  border-width: 2px 0;
  border-color: var(--text);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-design="noir"] .meter {
  grid-column: 1 / -1;
  background: rgba(17, 18, 22, 0.18);
}

body[data-design="noir"] .section {
  border-bottom: 2px solid var(--line);
}

body[data-design="noir"] .featured-card {
  grid-template-columns: 1fr;
  min-height: auto;
  border-width: 2px 0;
  border-radius: 0;
  background: transparent;
}

body[data-design="noir"] .featured-meta {
  background: var(--text);
  color: var(--bg-strong);
}

body[data-design="noir"] .featured-meta p,
body[data-design="noir"] .featured-meta .tag {
  color: #f7efdf;
}

body[data-design="noir"] .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-design="noir"] .post-card,
body[data-design="noir"] .queue-item,
body[data-design="noir"] .growth-steps article,
body[data-design="noir"] .command-panel {
  border-width: 2px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-design="terminal"] .site-header {
  min-height: 64px;
  background: rgba(0, 0, 0, 0.9);
}

body[data-design="terminal"] .brand-mark {
  border-radius: 0;
  background: url("assets/young-bulls-profile.png") center / cover;
  box-shadow: 0 0 0 1px var(--primary);
}

body[data-design="terminal"] .hero-shell {
  min-height: calc(88svh - 64px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

body[data-design="terminal"] .hero-shell::after {
  opacity: 0.55;
  mask-image: none;
}

body[data-design="terminal"] h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

body[data-design="terminal"] .hero-copy,
body[data-design="terminal"] .section-heading p:not(.eyebrow),
body[data-design="terminal"] .featured-copy p,
body[data-design="terminal"] .post-card p {
  font-size: 0.98rem;
}

body[data-design="terminal"] .signal-board {
  border-color: var(--primary);
  background: rgba(0, 18, 12, 0.92);
  box-shadow: 0 0 0 1px rgba(40, 255, 130, 0.16), 0 0 36px rgba(40, 255, 130, 0.08);
}

body[data-design="terminal"] .featured-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
}

body[data-design="terminal"] .featured-meta {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

body[data-design="terminal"] .post-grid {
  grid-template-columns: 1fr;
}

body[data-design="terminal"] .post-card {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr) minmax(180px, 0.28fr);
  gap: 18px;
  border-left: 3px solid var(--primary);
}

body[data-design="terminal"] .post-card .post-meta {
  display: block;
}

body[data-design="terminal"] .tag,
body[data-design="terminal"] .sample-badge {
  border: 1px solid var(--line);
  border-radius: 0;
}

body[data-design="atlas"] .site-header {
  background: rgba(248, 240, 223, 0.82);
}

body[data-design="atlas"] .brand-mark {
  border-radius: 35% 65% 40% 60%;
  background: url("assets/young-bulls-profile.png") center / cover;
  box-shadow: 0 12px 36px rgba(15, 113, 130, 0.22);
}

body[data-design="atlas"] .hero-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  align-items: center;
  min-height: calc(90svh - 76px);
  background-position: center;
}

body[data-design="atlas"] .hero-shell::after {
  opacity: 0.6;
  mask-image: linear-gradient(90deg, #000 0 60%, transparent 92%);
}

body[data-design="atlas"] h1 {
  max-width: 840px;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: 0.94;
}

body[data-design="atlas"] .hero-copy {
  max-width: 670px;
  color: #314b51;
}

body[data-design="atlas"] .featured-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

body[data-design="atlas"] .featured-meta {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    var(--surface-strong);
}

body[data-design="atlas"] .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-design="atlas"] .post-card:nth-child(3n + 1) {
  min-height: 360px;
}

@media (max-width: 980px) {
  .hero-shell,
  .featured-card,
  .autopilot-layout {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .signal-board {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-art {
    width: min(76vw, 380px);
    min-width: 0;
  }

  .post-grid,
  .design-options,
  .queue-list,
  .growth-steps,
  .trust-grid,
  .related-grid,
  .about-shell,
  .subscribe-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-shell {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-inner,
  .hero-copy,
  .signal-board {
    width: 100%;
    max-width: none;
  }

  .hero-art {
    align-self: center;
    width: min(86vw, 330px);
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.5rem);
  }

  .post-grid,
  .design-options,
  .queue-list,
  .growth-steps,
  .trust-grid,
  .related-grid,
  .about-shell,
  .subscribe-panel {
    grid-template-columns: 1fr;
  }

  .author-card {
    grid-template-columns: 1fr;
  }

  .subscribe-form div {
    flex-direction: column;
  }
}
