:root {
  --paper: #f3efe5;
  --paper-2: #fffaf0;
  --ink: #0d0d0d;
  --muted: #625e56;
  --acid: #dfff45;
  --orange: #ff5a36;
  --blue: #3971ff;
  --pink: #ff4fa0;
  --purple: #985cff;
  --max: 1220px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: white; border-bottom: 4px solid var(--acid); }
.header-inner { --masthead-height: clamp(52px, 6.5vw, 84px); max-width: var(--max); min-height: calc(var(--masthead-height) + 18px); margin: auto; padding: 4px 18px 0; display: flex; align-items: center; gap: 28px; overflow: hidden; }
.brand { flex: 0 0 auto; height: var(--masthead-height); display: flex; align-items: center; text-decoration: none; font-weight: 950; font-size: calc(var(--masthead-height) * 1.1); letter-spacing: -.08em; line-height: .9; white-space: nowrap; }
.brand-zuck { color: var(--acid); }
.brand-my { color: white; }
.brand-musk { color: var(--orange); }
.header-cast { flex: 1 1 auto; min-width: 0; height: var(--masthead-height); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.header-cast img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 2px 0 rgba(255,255,255,.12)); }
.tip-link { flex: 0 0 auto; margin-left: auto; border: 1px solid white; padding: 11px 15px; text-decoration: none; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.tip-link:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }

.ticker { overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--acid); }
.ticker-track { width: max-content; padding: 7px 0; font: 900 .71rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; animation: ticker 34s linear infinite; }
.ticker-track span { margin-right: 42px; }
.ticker-track span::after { content: "//"; margin-left: 42px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.shell { max-width: var(--max); margin: 0 auto; padding: 22px 18px 70px; }
.stage-banner { display: flex; justify-content: space-between; gap: 20px; padding: 9px 11px; margin-bottom: 18px; border: 2px solid var(--ink); background: #fff1a7; font: 800 .7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.hero-lite { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 245px; grid-template-areas: "kicker note" "headline note" "dek note"; gap: 8px 32px; padding: clamp(24px, 5vw, 58px); border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.hero-lite::after { content: ""; position: absolute; width: 160px; height: 160px; right: -72px; bottom: -78px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }
.hero-kicker { grid-area: kicker; margin: 0; font: 900 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.hero-lite h1 { grid-area: headline; max-width: 850px; margin: 3px 0 0; font: 950 clamp(3rem, 8vw, 7rem)/.8 Inter, sans-serif; letter-spacing: -.09em; text-transform: uppercase; }
.hero-dek { grid-area: dek; max-width: 790px; margin: 16px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 850; line-height: 1.24; }
.hero-note { grid-area: note; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px; background: var(--ink); color: white; border-left: 9px solid var(--orange); font-size: .86rem; font-weight: 720; line-height: 1.4; }
.hero-note strong { color: var(--acid); font: 950 1.35rem/1 Inter, sans-serif; }

.feed-tools { display: flex; gap: 8px; margin: 30px 0 18px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.feed-tools::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 0; background: var(--paper-2); padding: 8px 14px; cursor: pointer; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.feed { display: grid; gap: 18px; }
.story-card { --accent: var(--orange); position: relative; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.story-card::before { content: ""; display: block; height: 9px; background: var(--accent); border-bottom: 2px solid var(--ink); }
.story-card[hidden] { display: none; }
.theme-meta { --accent: var(--blue); }
.theme-musk { --accent: var(--orange); }
.theme-huang { --accent: var(--acid); }
.theme-gates { --accent: var(--pink); }
.theme-social { --accent: var(--purple); }
.theme-bezos { --accent: #36c4aa; }
.card-link { display: grid; grid-template-columns: 245px minmax(0, 1fr) 48px; min-height: 238px; text-decoration: none; }
.story-media { position: relative; min-width: 0; border-right: 2px solid var(--ink); overflow: hidden; background: #d8d2c7; }
.story-media img { width: 100%; height: 100%; min-height: 238px; display: block; object-fit: cover; object-position: 50% 28%; filter: saturate(.9) contrast(1.06); transition: transform .22s ease, filter .22s ease; }
.story-card:hover .story-media img { transform: scale(1.025); filter: saturate(1) contrast(1.08); }
.media-credit { position: absolute; left: 7px; right: 7px; bottom: 6px; padding: 5px 6px; background: rgba(0,0,0,.78); color: white; font-size: .54rem; line-height: 1.2; opacity: 0; transition: opacity .2s ease; }
.story-card:hover .media-credit, .story-card:focus-within .media-credit { opacity: 1; }
.story-copy { padding: 20px 22px 22px; }
.eyebrow { margin: 0 0 10px; font: 850 .66rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.story-card h2 { margin: 0; font-size: clamp(1.55rem, 3.3vw, 2.35rem); line-height: .95; letter-spacing: -.055em; }
.dek { margin: 12px 0 0; color: #36342f; font-size: .95rem; line-height: 1.36; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 15px; }
.pill { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 7px; font-size: .62rem; font-weight: 780; }
.score { background: #eae4da; }
.desk-stamp { display: grid; place-items: center; border-left: 2px solid var(--ink); background: var(--accent); font: 950 .7rem/.9 Inter, sans-serif; letter-spacing: .08em; text-align: center; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; }

.rail { position: sticky; top: 96px; display: grid; gap: 14px; }
.rail-card { border: 2px solid var(--ink); background: var(--paper-2); padding: 15px; }
.rail-card h2 { margin: 0 0 10px; font-size: .96rem; text-transform: uppercase; letter-spacing: -.02em; }
.rail-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.rail-kicker { margin-bottom: 7px !important; color: var(--orange) !important; font: 900 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .1em; text-transform: uppercase; }
.network-card { background: var(--ink); color: white; box-shadow: 4px 4px 0 var(--orange); }
.network-card h2 { color: var(--acid); font-size: 1.12rem; line-height: 1.05; }
.network-card ul { display: grid; gap: 13px; margin: 16px 0 0; padding: 0; list-style: none; }
.network-card li { border-top: 1px solid #454545; }
.network-link { position: relative; display: block; padding: 12px 0 2px; text-decoration: none; }
.network-link[href]:hover strong { color: var(--acid); }
.network-identity { display: flex; align-items: center; gap: 9px; padding-right: 63px; }
.network-identity img { width: 42px; height: 42px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.network-identity strong { display: block; font-size: .82rem; line-height: 1.05; }
.network-identity small { display: block; margin-top: 4px; color: #a9a9a9; font: 750 .57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.network-status { position: absolute; top: 16px; right: 0; color: var(--orange); font: 850 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; white-space: nowrap; }
.network-card li p { margin: 7px 0 0 51px; color: #c7c7c7; font-size: .7rem; line-height: 1.35; }
.ad-slot { min-height: 145px; display: grid; place-items: center; border-style: dashed; text-align: center; color: #77736b; background: transparent; }
.ad-slot strong { display: block; color: var(--ink); }
.desk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.desk-list a { display: flex; justify-content: space-between; text-decoration: none; font-weight: 780; border-bottom: 1px solid #d6d0c4; padding-bottom: 7px; }

.story-page { max-width: 860px; margin: 0 auto; }
.story-page .eyebrow { margin-top: 18px; }
.story-page h1 { margin: 14px 0; font: 950 clamp(2.7rem, 8vw, 5.9rem)/.87 Inter, sans-serif; letter-spacing: -.075em; }
.story-page .lede { font-size: 1.2rem; line-height: 1.42; font-weight: 700; }
.story-hero-image { margin: 26px 0 14px; border: 3px solid var(--ink); background: var(--ink); }
.story-hero-image img { width: 100%; max-height: 520px; display: block; object-fit: cover; object-position: center 25%; }
.story-hero-image figcaption { padding: 6px 9px; color: #c8c8c8; font-size: .62rem; }
.story-scores { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-block: 2px solid var(--ink); }
.story-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.72; }
.sources { margin-top: 34px; padding: 20px; border: 2px solid var(--ink); background: white; }
.sources h2 { margin-top: 0; }
.sources li + li { margin-top: 8px; }
.back-link { display: inline-block; margin-top: 28px; font-weight: 850; }
.credit-list { margin: 26px 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.credit-list li { padding: 14px 0; border-bottom: 1px solid #aaa49a; line-height: 1.45; }

.submit-page { max-width: 680px; margin: auto; }
.submit-page h1 { font-size: clamp(2.7rem, 8vw, 5rem); letter-spacing: -.07em; line-height: .9; }
.submit-form { display: grid; gap: 12px; padding: 22px; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); background: white; }
.submit-form label { font-weight: 850; }
.submit-form input { width: 100%; border: 2px solid var(--ink); padding: 13px; background: var(--paper-2); }
.submit-form button { border: 2px solid var(--ink); padding: 13px; background: var(--acid); font-weight: 900; cursor: pointer; }
.submit-result { min-height: 1.4em; font-size: .85rem; font-weight: 700; }

.site-footer { background: var(--ink); color: white; padding: 28px 18px; }
.footer-inner { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-inner p { margin: 0; max-width: 620px; color: #bdbdbd; font-size: .76rem; line-height: 1.5; }
.footer-inner a { color: var(--acid); font-size: .75rem; white-space: nowrap; }

@media (max-width: 900px) {
  .header-inner { gap: 18px; }
  .hero-lite { grid-template-columns: 1fr; grid-template-areas: "kicker" "headline" "dek" "note"; }
  .hero-note { margin-top: 14px; min-height: 120px; }
  .content-grid { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { --masthead-height: clamp(34px, 9vw, 48px); gap: 6px; padding: 4px 12px 0; }
  .header-cast { justify-content: flex-end; }
  .tip-link { display: none; }
  .shell { padding-inline: 12px; }
  .stage-banner { display: block; }
  .stage-banner span { display: block; margin-top: 4px; }
  .hero-lite { padding: 26px 18px; box-shadow: 5px 5px 0 var(--ink); }
  .hero-lite h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-dek { font-size: 1.02rem; }
  .card-link { grid-template-columns: 42% minmax(0, 1fr); min-height: 230px; }
  .story-media { border-right: 2px solid var(--ink); }
  .story-media img { min-height: 230px; }
  .story-copy { padding: 15px 13px 16px; }
  .story-card h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .dek { font-size: .82rem; }
  .desk-stamp { display: none; }
  .media-credit { display: none; }
  .meta-row .pill:nth-child(n+4) { display: none; }
  .rail { grid-template-columns: 1fr; }
  .footer-inner { display: grid; }
}

@media (max-width: 430px) {
  .card-link { grid-template-columns: 38% minmax(0, 1fr); min-height: 220px; }
  .story-media img { min-height: 220px; }
  .story-card h2 { font-size: 1.28rem; }
  .story-copy .dek { display: none; }
  .meta-row { margin-top: 10px; }
}

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