@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --couch: #0E0D0E;     /* page */
  --panel: #171516;     /* raised surfaces */
  --panel-2: #1F1C1C;
  --line: #2C2827;
  --cream: #F3ECD6;
  --dim: #A79F8A;
  --orange: #F6A33A;
  --rust: #C77B23;
  --red: #E2473B;
  --blue: #36A9F4;
  --ink: #121212;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
html { background: var(--couch); color: var(--cream); font: 400 17px/1.6 var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--orange); color: var(--ink); padding: 8px 12px; z-index: 99; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.couch { width: 58px; height: auto; flex: none; overflow: visible; }
.logo-words { font: 400 21px/1 var(--display); letter-spacing: .01em; white-space: nowrap; display: flex; align-items: center; }
.logo-the { color: var(--cream); }
.logo-gpt { background: var(--orange); color: var(--ink); padding: 4px 8px 3px; margin-left: 7px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0,0,0,.45); display: inline-block; }
.logo:hover .logo-gpt { transform: rotate(-6deg); }
@media (prefers-reduced-motion: no-preference) { .logo-gpt { transition: transform .2s ease; } }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(14,13,14,.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 32px; height: 74px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--cream); background: var(--panel); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--text); text-decoration: none; border-radius: 999px; padding: 11px 18px; border: 0; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn-yt { background: var(--orange); color: var(--ink); box-shadow: 0 3px 0 var(--rust); }
.btn-yt:hover { background: #FFB24F; }
.btn-yt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rust); }
.btn-lg { font-size: 17px; padding: 15px 24px; }

/* ---------- small pieces ---------- */
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--dim); font-weight: 600; }
.chip { font: 700 13px/1 var(--text); padding: 6px 10px; border-radius: 7px; background: var(--orange); color: var(--ink); }
.chip-security { background: var(--red); color: #fff; }
.chip-outages { background: var(--blue); }
.chip-business, .chip-policy { background: var(--cream); }
.kicker { color: var(--cream); font-weight: 700; }
.flag { display: inline-flex; align-items: center; gap: 7px; font: 700 13px/1 var(--text); padding: 6px 10px; border-radius: 7px; }
.flag-breaking { background: rgba(226,71,59,.16); color: #FF7A6E; border: 1px solid rgba(226,71,59,.5); }
.flag-breaking i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(226,71,59,.7); }
@media (prefers-reduced-motion: no-preference) { .flag-breaking i { animation: pulse 1.6s infinite; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(226,71,59,0); } 100% { box-shadow: 0 0 0 0 rgba(226,71,59,0); } }
.flag-draft { background: #4A1F1B; color: #FFB3AB; }
.card-foot { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--dim); font-size: 14px; font-weight: 600; }
.card-foot svg { width: 17px; height: 17px; color: var(--orange); }
.card-foot .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin: 0 6px; }
.sec-title { font: 400 22px/1.1 var(--display); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.sec-title::before { content: ""; width: 22px; height: 14px; background: var(--orange); border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 2px 0 var(--rust); }

/* ---------- breaking bar ---------- */
.breaking { background: linear-gradient(90deg, rgba(226,71,59,.22), rgba(226,71,59,.06)); border-bottom: 1px solid rgba(226,71,59,.35); }
.breaking .wrap { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.breaking a { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breaking a:hover { text-decoration: underline; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; padding: 40px 0 56px; }
.lead-img img, .card-img img, .side-list img, .story-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--panel); }
.lead-img { display: block; margin-bottom: 22px; border-radius: var(--r); box-shadow: 0 24px 60px -30px rgba(246,163,58,.35); }
.lead h1 { font: 400 clamp(32px, 3.4vw, 50px)/1.06 var(--display); letter-spacing: -.01em; margin: 16px 0 0; text-wrap: balance; }
.lead h1 a, .card h3 a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat; }
.lead h1 a:hover, .card h3 a:hover { background-size: 100% 3px; }
@media (prefers-reduced-motion: no-preference) { .lead h1 a, .card h3 a { transition: background-size .3s ease; } }
.lead-dek { font-size: 20px; line-height: 1.5; color: #D9D2BE; margin: 16px 0 0; max-width: 40em; }
.side { border-left: 1px solid var(--line); padding-left: 36px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; text-decoration: none; padding: 12px; margin: 0 -12px; border-radius: 12px; }
.side-list a:hover { background: var(--panel); }
.side-list img { border-radius: 9px; }
.side-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 8px; }
.side-meta .chip { font-size: 12px; padding: 4px 8px; }
.side-title { font: 700 17px/1.3 var(--text); display: block; }
.side-title .flag { margin-right: 6px; vertical-align: 2px; }

/* ---------- cards ---------- */
.latest, .more { padding: 8px 0 56px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card-img { display: block; margin-bottom: 16px; }
.card-img img { transition: transform .3s ease; }
.card:hover .card-img img { transform: translateY(-3px); }
.card h3 { font: 700 21px/1.28 var(--text); margin: 12px 0 0; letter-spacing: -.005em; }
.card-dek { color: var(--dim); margin: 10px 0 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- watch band ---------- */
.band { background: radial-gradient(120% 140% at 100% 0%, rgba(246,163,58,.20), transparent 55%), var(--panel); border-block: 1px solid var(--line); margin: 8px 0 0; }
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 64px 0; }
.band h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.05 var(--display); margin: 0; text-wrap: balance; }
.band p { color: #D9D2BE; font-size: 19px; margin: 16px 0 28px; max-width: 30em; }
.band-video { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.band-video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.band-video .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; background: var(--orange); color: var(--ink); border-radius: 50%; }
.band-video .play svg { width: 40px; height: 40px; }

/* ---------- trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 64px 0; }
.trust-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.trust-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(246,163,58,.12); color: var(--orange); }
.trust-icon svg { width: 24px; height: 24px; }
.trust h3 { font: 400 20px/1.15 var(--display); margin: 18px 0 8px; }
.trust p { color: var(--dim); margin: 0; font-size: 16px; }

/* ---------- empty state ---------- */
.hero-empty { text-align: center; padding: 96px 0 40px; display: flex; flex-direction: column; align-items: center; }
.couch-hero { width: 200px; margin-bottom: 36px; filter: drop-shadow(0 20px 40px rgba(246,163,58,.3)); }
.hero-empty h1 { font: 400 clamp(38px, 6vw, 76px)/1.02 var(--display); margin: 0; max-width: 13em; text-wrap: balance; }
.hero-empty p { color: var(--dim); font-size: 20px; margin: 20px 0 32px; }
.hero-empty p a { color: var(--orange); }

/* ---------- story ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
.progress i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.story-head { padding: 48px 0 0; }
.story-head h1 { font: 400 clamp(34px, 4.6vw, 58px)/1.05 var(--display); letter-spacing: -.01em; margin: 18px 0 0; text-wrap: balance; }
.story-dek { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: #D9D2BE; margin: 20px 0 0; }
.byline { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; padding: 18px 0; border-block: 1px solid var(--line); flex-wrap: wrap; }
.byline-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; flex: none; }
.byline-mark .couch { width: 30px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.byline-text strong { font-size: 15px; }
.byline-text > span { color: var(--dim); display: flex; flex-wrap: wrap; gap: 0 14px; }
.share { margin-left: auto; display: flex; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--cream); font: 600 14px var(--text); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--orange); color: var(--orange); }
.share svg { width: 18px; height: 18px; }
.story-cover { margin-top: 34px; margin-bottom: 0; }
.story-cover img { border-radius: 18px; }
.story-body { padding-bottom: 40px; }
.why { margin: 40px 0 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 12px; }
.why h2 { font: 700 15px/1 var(--text); color: var(--orange); margin: 0 0 10px; }
.why p { margin: 0; font-size: 19px; line-height: 1.55; }
.prose { margin-top: 34px; font-size: 18.5px; line-height: 1.72; color: #ECE5CF; }
.prose h2 { font: 400 28px/1.15 var(--display); margin: 48px 0 14px; color: var(--cream); }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--orange); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: #fff; }
.episode { margin-top: 44px; }
.episode h2, .sources h2 { font: 400 26px/1.1 var(--display); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.sources h2 svg { width: 28px; height: 28px; color: var(--orange); }
.video { position: relative; aspect-ratio: 16/9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.sources { margin-top: 56px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.sources > p { color: var(--dim); font-size: 16px; margin: 0 0 22px; }
.receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.receipts a {
  display: grid; gap: 3px; text-decoration: none; color: var(--ink); background: var(--cream); padding: 14px 18px 22px;
  --tear: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  -webkit-mask: var(--tear); mask: var(--tear); transform: rotate(-.6deg);
}
.receipts li:nth-child(2n) a { transform: rotate(.5deg); }
.receipts a:hover { transform: rotate(0) translateX(4px); }
@media (prefers-reduced-motion: no-preference) { .receipts a { transition: transform .15s ease; } }
.r-outlet { font-weight: 700; font-size: 15px; }
.r-title { font-size: 16px; line-height: 1.35; }
.r-domain { font-size: 13px; font-weight: 700; color: var(--rust); }
.disclosure { margin-top: 32px; color: var(--dim); font-size: 15px; }
.disclosure a { color: var(--orange); }
.about .story-head { padding-top: 56px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #0A090A; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding: 48px 0 56px; align-items: start; }
.footer-brand p, .footer-note { color: var(--dim); font-size: 15px; margin: 16px 0 0; }
.footer-note { margin: 0; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  html { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .masthead-row { height: 64px; gap: 12px; }
  .nav { display: none; }
  .btn-yt:not(.btn-lg) { margin-left: auto; padding: 10px 14px; }
  .couch { width: 46px; }
  .logo-words { font-size: 17px; }
  .hero { padding-top: 20px; }
  .lead-dek { font-size: 18px; }
  .side-list a { grid-template-columns: 104px 1fr; gap: 12px; }
  .side-title { font-size: 15.5px; }
  .grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; padding: 40px 0; }
  .band-grid { padding: 44px 0; }
  .share button span { display: none; }
  .share { margin-left: 0; }
  .prose { font-size: 17.5px; }
  .sources { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .btn-yt:not(.btn-lg) span { display: none; } }
