/* AI Creator Digest — https://aicreatordigest.com
   Design system per handoff: minimalist retro-blog. Single column, hairline
   dividers, no cards/shadows/rounded corners/gradients. Inter only. */

:root {
  --bg: #ffffff;
  --bg-alt: #faf8f3;

  --line: #e8e5dc;
  --line-dotted: #e2dfd5;
  --line-dotted-strong: #d8d4c8;

  --ink: #151412;
  --body: #24231f;
  --secondary: #66625a;
  --tertiary: #8a867b;
  --faint: #a6a296;
  --mid: #4a473f;
  --quote-ink: #1c1b18;

  --accent: #b5602b;
  --accent-hover: #c97a42;

  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 760px;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--body);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--accent);
  color: #ffffff;
}

img {
  max-width: 100%;
}

hr,
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--bg);
  padding: 8px 12px;
  border: 1px solid var(--accent);
}

/* ------------------------------------------------------------------ Header */

.site-header {
  padding: 56px 0 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.wordmark .title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark .tag {
  font-size: 12.5px;
  color: var(--tertiary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 20px;
  margin: 26px 0 22px;
  font-size: 13px;
}
.site-nav .spacer {
  flex: 1;
}
.site-nav .issue {
  color: var(--faint);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- Main */

main {
  padding-bottom: 8px;
}

section.band {
  padding: 40px 0 8px;
}

.section-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.section-head .spacer {
  flex: 1;
}
.section-head .more {
  font-size: 12.5px;
  white-space: nowrap;
}

/* -------------------------------------------------------------------- Hero */

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

.hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero p {
  margin: 0 0 20px;
  color: var(--secondary);
  max-width: 66ch;
  text-wrap: pretty;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--tertiary);
}

/* ------------------------------------------------------- Playlist grid (2-col) */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cell {
  background: var(--bg);
  padding: 20px 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cell:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.cell .topic {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.cell h3 {
  font-size: 15.5px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  color: var(--ink);
}
.cell p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  text-wrap: pretty;
}
.cell .meta {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 2px;
}

/* -------------------------------------------------------------------- Rows */

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dotted var(--line-dotted);
  cursor: pointer;
  color: inherit;
}
.row:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.rows > :last-child {
  border-bottom: none;
}

.row--video {
  grid-template-columns: 74px 1fr 84px;
}
.row--creator {
  grid-template-columns: 1fr 1fr 88px;
  padding: 13px 0;
  cursor: default;
}
.row--plvideo {
  grid-template-columns: 34px 1fr 70px;
  padding: 18px 0;
}

.row .date,
.row .index {
  font-size: 12px;
  color: var(--faint);
}
.row .index {
  font-size: 12.5px;
}

.row .stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row--plvideo .stack {
  gap: 5px;
}

.row .title {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dotted-strong);
}
.row .subline {
  font-size: 12.5px;
  color: var(--tertiary);
}
.row .summary {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 64ch;
  text-wrap: pretty;
}

.row .readtime {
  font-size: 12px;
  color: var(--accent);
  text-align: right;
}

.row--creator .name {
  font-size: 14.5px;
  color: var(--ink);
}
.row--creator .focus {
  font-size: 12.5px;
  color: var(--tertiary);
}
.row--creator .count {
  font-size: 12px;
  color: var(--faint);
  text-align: right;
}

/* ------------------------------------------------------------ Newsletter box */

.newsletter {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  padding: 24px;
}
.newsletter .heading {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.newsletter p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--secondary);
  max-width: 60ch;
}
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter input {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-dotted-strong);
  padding: 10px 12px;
  width: 240px;
  max-width: 100%;
  outline: none;
}
.newsletter input:focus {
  border-color: var(--accent);
}
.newsletter button {
  font-family: var(--sans);
  font-size: 13px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
}
.newsletter button:hover {
  background: var(--accent-hover);
}
.newsletter .note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 10px;
}

/* -------------------------------------------------------------- Page header */

.page-head {
  padding: 34px 0 0;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------- Player */
/* Shown only when the video's owner permits embedding. A facade until clicked:
   the page requests nothing from YouTube until the reader asks for the video,
   which keeps a digest fast and avoids handing over a visit nobody chose. */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 34px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-facade {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}
.player-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player-facade .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(21, 20, 18, 0.72);
  transition: background 0.15s ease;
}
/* A plain triangle rather than the YouTube mark: this is our control, and it
   should not imply YouTube endorses the page. */
.player-facade .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #ffffff;
}
.player-facade:hover .play {
  background: var(--accent);
}
.player-facade:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ Avatars */
/* A creator's own channel picture. Present only when we actually resolved one,
   so the absence of an image is a real absence rather than a placeholder
   standing in for a person. Circular is the one rounded shape on the site,
   because a square portrait next to a name reads as a product photo. */

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.avatar--lg {
  width: 52px;
  height: 52px;
}

/* The directory card becomes a two-column grid only when there is a picture,
   so cards without one keep their full text width instead of an empty inset. */
.creator-card.has-avatar {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.creator-card.has-avatar .avatar {
  margin-top: 2px;
}

/* ------------------------------------------------------- Directory filters */
/* Shown only once there are enough creators to browse rather than simply
   read, so the controls never outweigh what they control. */

.filters {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.filter-search {
  flex: 1 1 260px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-dotted-strong);
  padding: 9px 12px;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.filter-search:focus {
  border-color: var(--accent);
}
.filter-search::placeholder {
  color: var(--faint);
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--tertiary);
}
.filter-sort select {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-dotted-strong);
  padding: 8px 10px;
  outline: none;
  border-radius: 0;
}
.filter-sort select:focus {
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--secondary);
  background: var(--bg);
  border: 1px solid var(--line-dotted-strong);
  padding: 6px 11px;
  cursor: pointer;
  border-radius: 0;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.chip .n {
  color: var(--faint);
  margin-left: 4px;
  font-size: 11.5px;
}
.chip.active .n {
  color: rgba(255, 255, 255, 0.75);
}

.filter-count {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--faint);
}

/* ------------------------------------------------------------ Creator cards */

.creator-card {
  display: block;
  padding: 18px 0;
  border-bottom: 1px dotted var(--line-dotted);
  color: inherit;
  text-decoration: none;
}
.creator-card:hover {
  background: var(--bg-alt);
}
.rows > .creator-card:last-child {
  border-bottom: none;
}

.creator-card .name {
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dotted-strong);
}
.creator-card .subline {
  font-size: 12.5px;
  color: var(--tertiary);
}
.creator-card .bio {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 68ch;
  text-wrap: pretty;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
/* Named topic-tag rather than tag: .wordmark .tag is the site tagline, and a
   bare .tag rule put a border box around the masthead. */
.topic-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--tertiary);
  border: 1px solid var(--line);
  padding: 3px 8px;
  text-decoration: none;
}
a.topic-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.topic-tag .n {
  color: var(--faint);
  margin-left: 3px;
}

@media (max-width: 560px) {
  .filter-row {
    gap: 10px;
  }
  .filter-sort {
    width: 100%;
    justify-content: space-between;
  }
}

/* A jump-to-the-moment link. Present only where the passage was matched
   against the real caption track, so a missing one means "not located",
   never "not important". */
.at-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dotted var(--accent);
}
.at-link:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
}

/* Chris's own response to a key point. Deliberately distinct from the body
   copy above it: this is the one place inside an AI-drafted section where the
   words are his, and a reader should never have to wonder which is which. */
.point-thought {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mid);
  text-wrap: pretty;
}
.point-thought .who {
  display: inline-block;
  margin-right: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The grounding paragraph under the key takeaway. Slightly larger and looser
   than body copy so it reads as an introduction rather than as the first
   section of the article. */
.exec-summary {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mid);
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}

.crumb {
  font-size: 12.5px;
  margin-bottom: 22px;
  cursor: pointer;
}

/* Shown instead of the breadcrumb when this page is rendering an unpublished
   draft inside the review editor. */
.crumb.preview-flag {
  display: inline-block;
  cursor: default;
  color: var(--accent);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px dashed var(--accent);
  padding: 4px 10px;
}

.page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 44ch;
  line-height: 1.4;
  text-wrap: pretty;
}

.page-head .dek {
  margin: 0 0 22px;
  color: var(--secondary);
  max-width: 68ch;
  text-wrap: pretty;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12.5px;
  color: var(--tertiary);
}
.meta-row .v {
  color: var(--mid);
}
.meta-row.pad-bottom {
  padding-bottom: 30px;
}

/* ------------------------------------------------------------- Credit block */

.credit {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  /* Flex rather than a fixed 2-column grid: the creator avatar is optional,
     so this block has to sit correctly with two children or three. */
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
.credit .who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.credit .who .name {
  font-size: 14.5px;
  color: var(--ink);
}
.credit .who .sub {
  font-size: 12.5px;
  color: var(--tertiary);
}
.credit .watch {
  flex: none;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Callout */

.callout {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 20px;
  margin-bottom: 40px;
}
.callout .label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.callout p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Deliberately NOT accent-colored — this is Chris's own commentary, not
   AI-generated content, and should read as visually distinct at a glance. */
.callout.editor-note {
  border-left-color: var(--mid);
  background: var(--bg-alt);
  padding: 16px 20px;
  margin-top: -6px;
}
.callout.editor-note .label {
  color: var(--mid);
}
.callout.editor-note p {
  font-size: 15px;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------- Sections */

.article-section {
  margin-bottom: 40px;
}
.article-section .section-label {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.key-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.key-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px;
}
.key-point .n {
  font-size: 12.5px;
  color: var(--faint);
  padding-top: 4px;
}
.key-point h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 7px;
  line-height: 1.5;
}
.key-point p {
  margin: 0;
  color: var(--secondary);
  max-width: 68ch;
  text-wrap: pretty;
}

.tactics {
  display: flex;
  flex-direction: column;
}
.tactic {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dotted var(--line-dotted);
}
.tactics > :last-child {
  border-bottom: none;
}
.tactic .kind {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.tactic .title {
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 5px;
}
.tactic p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 62ch;
  text-wrap: pretty;
}

.quotes {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--quote-ink);
  max-width: 60ch;
  text-wrap: pretty;
}
.quote .at {
  font-size: 12px;
  color: var(--faint);
}

.connect {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.connect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 13.5px;
}
.connect-row .who {
  color: var(--ink);
  font-weight: 500;
}
.connect-row .role {
  color: var(--faint);
  font-weight: 400;
  font-size: 12.5px;
}
.connect-row .links {
  color: var(--tertiary);
  font-size: 12.5px;
}
.connect-row .links a {
  color: var(--accent);
}

.article-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 12.5px;
  color: var(--tertiary);
}

/* --------------------------------------------------------- Consensus guide */

.consensus {
  border: 1px solid var(--line-dotted-strong);
  padding: 26px;
}
.consensus-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.consensus-head h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.consensus-head .spacer {
  flex: 1;
}
.consensus-head .meta {
  font-size: 11.5px;
  color: var(--faint);
}
.consensus > p {
  margin: 0 0 26px;
  color: var(--mid);
  max-width: 72ch;
  text-wrap: pretty;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding-top: 22px;
  border-top: 1px dotted var(--line-dotted-strong);
}
.split-col .split-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 14px;
}
.split-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
}
.split-item .marker {
  font-weight: 600;
}
.split-item.agree {
  color: var(--mid);
}
.split-item.agree .marker {
  color: var(--accent);
}
.split-item.disagree {
  color: var(--secondary);
}
.split-item.disagree .marker {
  color: var(--faint);
}

/* --------------------------------------------------------------- Search */

.searchbar {
  width: 100%;
  font: inherit;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-dotted-strong);
  padding: 10px 12px;
  margin-bottom: 22px;
}
.searchbar:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------------------------------------------------------------- Empty */

.empty {
  padding: 30px 0;
  color: var(--secondary);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.loading {
  color: var(--faint);
  padding: 20px 0;
}

/* ------------------------------------------------------------------- Prose */
/* Used only on About / How I Synthesize, which are fetched from repo markdown. */

.prose {
  padding: 8px 0 20px;
  max-width: 66ch;
}
.prose h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 16px;
  color: var(--body);
}
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
  color: var(--body);
}
.prose blockquote {
  margin: 20px 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--mid);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 1px 5px;
}

/* -------------------------------------------------------------------- 404 */

.error-page {
  padding: 60px 0 100px;
}
.error-page h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.error-page p {
  color: var(--secondary);
  font-size: 15px;
  margin: 0 0 22px;
  max-width: 60ch;
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--faint);
}
.site-footer .spacer {
  flex: 1;
}
.site-footer a {
  color: var(--accent);
}

/* ------------------------------------------------------------------ Mobile */

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .row--video {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .row--video .date {
    order: -1;
  }
  .row--video .readtime {
    text-align: left;
  }
  .row--creator {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .row--creator .count {
    text-align: left;
  }
  .row--plvideo {
    grid-template-columns: 24px 1fr;
  }
  .row--plvideo .readtime {
    grid-column: 2;
    text-align: left;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .credit {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ------------------------------------------------------------------ *
 * Noir mode
 *
 * A reading mode for the pillar pages. Everything here is a token
 * override plus a small number of typographic shifts; no layout moves,
 * because the design's rules still apply in the dark. No cards, no
 * shadows, no rounded corners, no gradients except the one light streak
 * across the masthead, which earns its place by being the only one.
 * ------------------------------------------------------------------ */

:root[data-mode="noir"] {
  --bg: #0c0c0e;
  --bg-alt: #131317;

  --line: #262629;
  --line-dotted: #2b2b2f;
  --line-dotted-strong: #35353a;

  --ink: #ece7dc;
  --body: #c6c1b6;
  --secondary: #8d887d;
  --tertiary: #6f6a61;
  --faint: #56524b;
  --mid: #a29d92;
  --quote-ink: #f0ebe0;

  --accent: #d9913f;
  --accent-hover: #eda954;
}

:root[data-mode="noir"] body {
  background: var(--bg);
}

/* The one gradient: light through a window, across the masthead only. */
:root[data-mode="noir"] .site-header {
  position: relative;
}
:root[data-mode="noir"] .site-header::before {
  content: "";
  position: absolute;
  inset: -24px -40px auto -40px;
  height: 120px;
  pointer-events: none;
  background: repeating-linear-gradient(
    172deg,
    rgba(217, 145, 63, 0.055) 0px,
    rgba(217, 145, 63, 0.055) 7px,
    transparent 7px,
    transparent 22px
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

:root[data-mode="noir"] .page-head .eyebrow {
  letter-spacing: 0.16em;
}

:root[data-mode="noir"] .page-head .dek {
  font-style: italic;
}

/* Hardboiled prose runs short and hits often. Give the paragraphs room
   so the fragments read as deliberate rather than cramped. */
:root[data-mode="noir"] .prose p {
  line-height: 1.75;
}

:root[data-mode="noir"] .prose h2 {
  letter-spacing: 0.005em;
}

:root[data-mode="noir"] .prose blockquote {
  border-left-color: var(--accent);
}

:root[data-mode="noir"] .prose strong {
  color: var(--ink);
}

/* The toggle itself, in both modes. */
.noir-toggle {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--tertiary);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 1px;
  margin: 0 0 0 0.25rem;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.noir-toggle:hover,
.noir-toggle:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.noir-toggle[aria-pressed="true"] {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .prose,
  .page-head {
    transition: none;
  }
}
