/* Interest Desk — companion site.
 *
 * Same face as the videos (Archivo / Inter / JetBrains Mono, near-black, one
 * green), different medium. Two rules the video frames do not have to obey and
 * this does: body type is set for reading rather than for a headline, and the
 * comparison table has to survive a 375px screen, which is where most of this
 * traffic will land.
 *
 * No JavaScript anywhere on this site. Nothing here needs it.
 *
 * font-display: swap, NOT block — block is correct for a frame renderer that
 * must not swap mid-capture, and on a page it means invisible text until the
 * font arrives. See site.py.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2");
}

:root {
  --bg: #07090d;
  --surface: #12161d;
  --ink: #ffffff;
  /* Body grey is lighter than the video's --muted: 7d8b9a is fine for a label
     on a 1080p frame and thin for a paragraph read at arm's length. */
  --body: #b9c4cf;
  --muted: #8593a1;
  --accent: #00e07a;
  --negative: #ff6b6b;
  --rule: #232b36;

  --display: "Archivo", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --shell: 1080px;
  --gap: 24px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gap);
}

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--accent);
  color: #04150c;
  text-decoration: none;
}

/* --- masthead ------------------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-rule {
  width: 34px;
  height: 3px;
  background: var(--accent);
}
.masthead nav {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* 44px minimum touch target, which a 14px inline link is not on its own. */
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--ink); }
.masthead nav a[aria-current="page"] { color: var(--accent); }

/* --- type ---------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.hero { padding: 92px 0 64px; }
.hero-line,
.episode-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.9rem);
  font-weight: 900;
}
.lede {
  max-width: 62ch;
  margin: 28px 0 0;
  font-size: clamp(1.06rem, 2vw, 1.31rem);
  color: var(--body);
}

.section-head {
  margin: 0 0 32px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- method strip -------------------------------------------------------- */

.method {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0;
}
.method-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.method-item p { margin: 0; max-width: 46ch; }
.method-key {
  margin: 0 0 10px !important;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

/* --- episode list -------------------------------------------------------- */

.episodes { padding: 72px 0 96px; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-card {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.episode-card:last-child { border-bottom: 1px solid var(--rule); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tag {
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--accent);
  text-transform: uppercase;
}
.card-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-dek { margin: 0; max-width: 66ch; }
.card-products {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
}

/* --- episode page -------------------------------------------------------- */

.episode-head { padding: 80px 0 44px; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 56px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pending {
  margin: 0 0 56px;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

.point, .block, .verdict { padding: 8px 0 40px; }
.point h2, .block h2, .verdict h2, .prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
}
.point p, .verdict p { margin: 0; max-width: 66ch; }

.verdict {
  margin-top: 24px;
  padding: 36px 0 40px;
  border-top: 3px solid var(--accent);
}

.disclosure {
  margin: 26px 0 0;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

/* --- tables -------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
thead th {
  padding: 0 18px 14px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
tbody th, tbody td, tfoot th, tfoot td {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-weight: 400;
}
tbody th { color: var(--ink); font-weight: 700; }

.calc tbody th { max-width: 34rem; }
.calc-note {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.figure {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}
.figure.negative { color: var(--negative); }
.calc tfoot th, .calc tfoot td {
  border-bottom: 0;
  border-top: 3px solid var(--accent);
  padding-top: 22px;
}
.calc tfoot th { font-family: var(--display); font-weight: 900; font-size: 20px; }
.figure.total { color: var(--accent); font-size: 30px; font-weight: 900; }

/* --- sources ------------------------------------------------------------- */

.sources-note { margin: 0 0 24px; max-width: 60ch; color: var(--muted); }
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.source-list li {
  padding: 20px 22px;
  background: var(--surface);
  border-left: 3px solid var(--rule);
}
.source-list p { margin: 0; }
.source-name { font-weight: 700; color: var(--ink); }
.source-issuer { font-size: 15px; color: var(--muted); }
.source-link {
  margin-top: 10px !important;
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.source-date {
  margin-top: 6px !important;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* --- prose page ---------------------------------------------------------- */

.prose { padding: 80px 0 96px; max-width: 760px; }
.prose h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.prose h2 { margin: 48px 0 14px; }
.prose p { max-width: 66ch; }

/* --- footer -------------------------------------------------------------- */

.footer {
  margin-top: 40px;
  padding: 48px 0 72px;
  border-top: 1px solid var(--rule);
}
.footer .disclosure { margin-top: 0; max-width: 72ch; }
.fine {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 72ch;
}
.fine a { color: var(--muted); }

/* --- responsive ---------------------------------------------------------- */

@media (min-width: 720px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
  .source-list { grid-template-columns: repeat(2, 1fr); }
}

/* Below this the comparison table stops being a table and becomes one card per
 * account, each cell labelled from its column header. A horizontal scrollbar
 * would technically work and would hide half the comparison off-screen, which
 * defeats the point of a comparison. */
@media (max-width: 719px) {
  :root { --gap: 20px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr {
    display: block;
    margin-bottom: 18px;
    padding: 6px 20px 14px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
  }
  .compare tbody th, .compare tbody td {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
  .compare tbody th { font-size: 19px; border-bottom-width: 2px; }
  .compare tbody tr td:last-child { border-bottom: 0; }
  .compare tbody td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 0 auto;
  }
  .compare tbody td { text-align: right; }
  .calc tbody th, .calc tbody td { padding-right: 0; }
  .figure { font-size: 19px; }
  .figure.total { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
