body.home-page main {
  width: min(100% - 40px, 1120px);
  padding-top: clamp(48px, 7vw, 72px);
  gap: 0;
}

.home-hero {
  padding: 0 0 clamp(56px, 9vw, 80px);
}

.home-hero-hit {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.home-hero-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 52rem;
}

.home-hero-quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.home-hero-quote p {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5.4vw, 3.65rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-transform: none;
}

.home-hero-dek {
  max-width: 38rem;
  margin: clamp(28px, 4vw, 36px) 0 0;
  color: var(--paper-68);
  font-family: var(--sans);
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.home-hero-frame .home-edition-go {
  align-self: flex-start;
  margin-top: clamp(28px, 4vw, 36px);
  border-color: var(--rim);
  color: var(--paper-48);
}

@media (hover: hover) {
  .home-hero-hit:hover .home-edition-go {
    color: var(--paper);
    border-color: var(--paper-48);
    background: var(--paper-04);
  }
}

.home-hero-hit:focus-visible {
  outline: none;
}

.home-hero-hit:focus-visible .home-edition-go {
  color: var(--paper);
  border-color: rgba(var(--in-conversation-rgb), 0.52);
  background: rgba(var(--in-conversation-rgb), 0.08);
}

.home-hero + .home-spots .home-edition:first-child {
  padding-top: clamp(48px, 8vw, 72px);
  border-top: 1px solid var(--rim);
}

.home-loading {
  margin: 0;
  color: var(--paper-48);
  font-size: 0.98rem;
  line-height: 1.45;
}

.home-spots {
  display: grid;
  gap: 0;
}

.home-edition {
  padding: clamp(48px, 8vw, 72px) 0;
  border-top: 1px solid var(--rim);
}

.home-edition:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-edition-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(40px, 6vw, 52px) 0 0;
  padding: 0;
}

.home-edition-dot {
  appearance: none;
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper-28);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.home-edition-dot:hover,
.home-edition-dot:focus-visible {
  background: var(--paper-55);
  outline: none;
}

.home-edition-dot[aria-current="true"] {
  background: var(--paper);
  transform: scale(1.15);
}

.home-edition.essay-in-the-room .home-edition-dot[aria-current="true"] {
  background: var(--in-the-room);
}

.home-edition.essay-in-conversation .home-edition-dot[aria-current="true"] {
  background: var(--in-conversation);
}

.home-edition--red-line .home-edition-dot[aria-current="true"] {
  background: var(--redline, #e8483a);
}

.home-edition-frame {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 0;
  align-items: start;
}

.home-edition-main {
  display: contents;
}

.home-edition-main > .home-edition-header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 3vw, 28px);
  margin: 0 0 clamp(36px, 6vw, 48px);
  min-width: 0;
}

.home-edition-header > .eyebrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--paper-03);
  color: var(--paper-68);
  cursor: pointer;
  font-family: var(--label);
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.home-edition-tabs {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.4vw, 22px);
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 2px 0;
  mask-image: none;
}

.home-edition-tabs.is-fade-end {
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.home-edition-tabs.is-fade-start {
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 100%
  );
}

.home-edition-tabs.is-fade-start.is-fade-end {
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.home-edition-tabs::-webkit-scrollbar {
  display: none;
}

.home-edition-tab {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--paper-48);
  cursor: pointer;
  font-family: var(--sans);
  font-size: clamp(13px, 1.6vw, 14px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.home-edition-tab:hover,
.home-edition-tab:focus-visible {
  color: var(--paper-68);
  outline: none;
}

.home-edition-tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--paper-28);
}

.home-edition-header > .eyebrow:hover,
.home-edition-header > .eyebrow:focus-visible {
  text-decoration: none;
  outline: none;
}

.home-edition-header > .eyebrow:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 28%, transparent);
}

.home-series-label {
  min-width: 0;
}

.home-series-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.home-edition-hit {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: 0;
  color: inherit;
  text-decoration: none;
}

.home-edition-hit-copy {
  min-width: 0;
}

.home-edition-hit:hover .article-mark-art,
.home-edition-hit:focus-visible .article-mark-art {
  opacity: 0.92;
}

.home-edition-hit .article-mark-art {
  display: block;
  margin-top: 0;
  transition: opacity 180ms ease;
}

.home-edition-hit h1 {
  margin: 32px 0 16px;
  color: var(--read, var(--paper));
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.home-edition-hit .article-dek {
  margin-bottom: 0;
}

.home-edition-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 20px;
  border: 1px solid var(--rim);
  border-radius: 50%;
  color: var(--paper-48);
  line-height: 0;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.home-edition-hit:hover .home-edition-go,
.home-edition-hit:focus-visible .home-edition-go {
  color: var(--paper);
  border-color: var(--paper-48);
  background: var(--paper-04);
}

.home-edition.essay-in-the-room .home-edition-tab[aria-selected="true"] {
  color: var(--in-the-room);
  border-bottom-color: rgba(var(--in-the-room-rgb), 0.45);
}

.home-edition.essay-in-the-room .eyebrow {
  color: var(--in-the-room);
  border-color: rgba(var(--in-the-room-rgb), 0.34);
  background: rgba(var(--in-the-room-rgb), 0.08);
}

.home-edition.essay-in-the-room .eyebrow:hover,
.home-edition.essay-in-the-room .eyebrow:focus-visible {
  color: var(--in-the-room);
  border-color: rgba(var(--in-the-room-rgb), 0.58);
  background: rgba(var(--in-the-room-rgb), 0.14);
}

.home-edition.essay-in-the-room .note-panel-title,
.home-edition.essay-in-the-room .note-blip-label {
  color: var(--in-the-room);
}

.home-edition.essay-in-the-room .home-rail-line,
.home-edition.essay-in-the-room .home-rail-pull {
  border-left-color: rgba(var(--in-the-room-rgb), 0.55);
}

.home-edition.essay-in-conversation .home-edition-tab[aria-selected="true"] {
  color: var(--in-conversation);
  border-bottom-color: rgba(var(--in-conversation-rgb), 0.45);
}

.home-edition.essay-in-conversation .eyebrow {
  color: var(--in-conversation);
  border-color: rgba(var(--in-conversation-rgb), 0.34);
  background: rgba(var(--in-conversation-rgb), 0.08);
}

.home-edition.essay-in-conversation .eyebrow:hover,
.home-edition.essay-in-conversation .eyebrow:focus-visible {
  color: var(--in-conversation);
  border-color: rgba(var(--in-conversation-rgb), 0.58);
  background: rgba(var(--in-conversation-rgb), 0.14);
}

.home-edition.essay-in-conversation .note-panel-title,
.home-edition.essay-in-conversation .note-blip-label {
  color: var(--in-conversation);
}

.home-edition.essay-in-conversation .home-rail-line,
.home-edition.essay-in-conversation .home-rail-pull {
  border-left-color: rgba(var(--in-conversation-rgb), 0.55);
}

.home-edition--red-line .home-edition-tab[aria-selected="true"] {
  color: var(--redline);
  border-bottom-color: rgba(var(--redline-rgb), 0.45);
}

.home-edition--red-line .eyebrow {
  color: var(--redline);
  border-color: rgba(var(--redline-rgb), 0.34);
  background: rgba(var(--redline-rgb), 0.08);
}

.home-edition--red-line .eyebrow:hover,
.home-edition--red-line .eyebrow:focus-visible {
  color: var(--redline);
  border-color: rgba(var(--redline-rgb), 0.58);
  background: rgba(var(--redline-rgb), 0.14);
}

.home-edition--red-line .note-panel-title,
.home-edition--red-line .note-blip-label {
  color: var(--redline);
}

.home-edition--red-line .home-rail-line,
.home-edition--red-line .home-rail-pull {
  border-left-color: rgba(var(--redline-rgb), 0.55);
}

.home-edition.essay-in-the-room .article-dek,
.home-edition.essay-in-conversation .article-dek {
  margin-bottom: 0;
}

/* Sidebar pull quote — reset article fixed-rail chrome */
body.home-page .home-rail.note-panel {
  --scroll-fade: 72px;
  --rail-fill: var(--bg);
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 1;
  grid-row: 3;
  margin-top: 32px;
  width: 100%;
  max-height: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  gap: 0;
}

body.home-page .home-rail.note-panel::after {
  display: none !important;
}

body.home-page .home-rail .note-panel-header {
  position: static;
  padding-right: 0;
}

.home-rail-line {
  display: none;
}

.home-rail-pull {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 0;
  padding-left: clamp(14px, 2vw, 18px);
  border-left: 2px solid var(--rim);
}

.home-rail-scroll-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.home-rail-scroll {
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.home-rail-scroll-wrap::before,
.home-rail-scroll-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--scroll-fade);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms ease;
}

.home-rail-scroll-wrap.is-fade-top::before {
  top: 0;
  opacity: 1;
  background: linear-gradient(
    to bottom,
    var(--rail-fill) 0%,
    color-mix(in srgb, var(--rail-fill) 88%, transparent) 38%,
    color-mix(in srgb, var(--rail-fill) 52%, transparent) 62%,
    transparent 100%
  );
}

.home-rail-scroll-wrap.is-fade-bottom::after {
  bottom: 0;
  opacity: 1;
  background: linear-gradient(
    to top,
    var(--rail-fill) 0%,
    color-mix(in srgb, var(--rail-fill) 88%, transparent) 38%,
    color-mix(in srgb, var(--rail-fill) 52%, transparent) 62%,
    transparent 100%
  );
}

.home-rail .note-panel-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.home-rail .note-panel-title {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  letter-spacing: 1.6px;
  line-height: 1.2;
}

.home-rail .note-blip-label {
  font-size: 12px;
  letter-spacing: 1.4px;
}

.home-rail .note-panel-body {
  flex: 0 1 auto;
  margin: 0;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
}

.home-rail-footer {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  align-self: flex-start;
}

.home-rail-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.home-rail-nav-chevrons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-rail-count {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  font-family: var(--label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.1px;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  color: var(--read-muted, var(--paper-48));
}

.home-rail-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rim);
  border-radius: 50%;
  background: transparent;
  color: var(--paper-68);
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.home-rail-nav-btn:hover:not(:disabled),
.home-rail-nav-btn:focus-visible:not(:disabled) {
  color: var(--paper);
  border-color: var(--paper-48);
  background: var(--paper-04);
  outline: none;
}

.home-rail-nav-btn:disabled {
  color: var(--paper-22);
  border-color: var(--paper-10);
  cursor: default;
}

.home-rail-nav-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.home-rail-nav-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.home-rail-empty {
  margin: 0;
  color: var(--read-muted, var(--paper-48));
  font-size: 16px;
  line-height: 1.75;
}

.home-all-link {
  margin: 0;
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--rim);
}

.home-all-link a {
  color: var(--paper-48);
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.home-all-link a:hover {
  color: var(--paper);
}

@media (min-width: 961px) {
  .home-edition-frame {
    display: grid;
    grid-template-columns: minmax(0, 12fr) minmax(0, 11fr);
    grid-template-rows: auto auto;
    align-items: flex-start;
    column-gap: clamp(40px, 6vw, 72px);
  }

  .home-edition-main {
    display: contents;
  }

  .home-edition-main > .home-edition-header {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .home-edition-hit {
    grid-column: 1;
    grid-row: 2;
    display: block;
  }

  .home-edition-go {
    margin-top: 20px;
  }

  body.home-page .home-rail.note-panel {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin-top: 0;
    position: relative;
  }

  .home-rail-line {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    margin-top: 0;
    border-left: 2px solid var(--rim);
    pointer-events: none;
  }

  .home-rail-pull {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 28px;
    border-left: 0;
    padding-left: clamp(14px, 2vw, 18px);
  }

  .home-rail-scroll-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .home-rail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding-right: 4px;
  }

  .home-rail .note-panel-body {
    padding-bottom: 16px;
  }

  .home-rail-footer {
    flex: 0 0 auto;
    padding-left: 0;
  }
}

@media (max-width: 960px) {
  .home-edition {
    padding: clamp(36px, 6vw, 52px) 0;
  }

  .home-edition-main > .home-edition-header {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .home-edition-tabs {
    flex: 0 1 auto;
    align-self: center;
    width: max-content;
    max-width: 100%;
    padding-left: 0;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  /* Single column: article only — no note rail. Arrow stays under the dek. */
  body.home-page .home-rail.note-panel {
    display: none;
  }

  .home-edition-hit h1 {
    margin: 24px 0 0;
  }

  .home-edition-hit .article-dek {
    margin-top: 14px;
  }

  .home-edition-hit-copy .home-edition-go {
    margin-top: 20px;
  }

  .home-hero-frame .home-edition-go {
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  .home-hero-quote p {
    font-size: clamp(1.8rem, 8.6vw, 2.55rem);
    line-height: 1.12;
  }

  .home-hero + .home-spots .home-edition:first-child {
    padding-top: clamp(40px, 7vw, 56px);
  }
}

@media (max-width: 560px) {
  .home-rail-nav {
    gap: 8px;
  }

  .home-rail-count {
    font-size: 9px;
  }
}

/*
  Light mode: edition heds/deks, rail pulls, and tiles fade black ↔ deeper
  series ink. Series labels / CTAs keep solid series color. Hero quote stays
  on the tri-color cycle.
*/
@media (prefers-color-scheme: light) {
  body.home-page .home-edition.essay-in-conversation .home-edition-hit h1,
  body.home-page .home-edition.essay-in-conversation .home-edition-hit .article-dek,
  body.home-page .home-edition.essay-in-conversation .home-rail-pull {
    --accent-ink: var(--in-conversation-deep);
    color: #07080f;
    animation: series-ink-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-edition.essay-in-the-room .home-edition-hit h1,
  body.home-page .home-edition.essay-in-the-room .home-edition-hit .article-dek,
  body.home-page .home-edition.essay-in-the-room .home-rail-pull {
    --accent-ink: var(--in-the-room-deep);
    color: #07080f;
    animation: series-ink-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-edition--red-line .home-edition-hit h1,
  body.home-page .home-edition--red-line .home-edition-hit .article-dek,
  body.home-page .home-edition--red-line .home-rail-pull {
    --accent-ink: var(--redline-deep);
    color: #07080f;
    animation: series-ink-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-hero-dek {
    --accent-ink: var(--in-conversation-deep);
    color: #07080f;
    animation: series-ink-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-edition.essay-in-the-room .article-mark-art {
    --accent-ink: var(--in-the-room-deep);
    background-color: #07080f;
    animation: series-tile-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-edition.essay-in-conversation .article-mark-art,
  body.home-page .home-hero.essay-in-conversation .article-mark-art {
    --accent-ink: var(--in-conversation-deep);
    background-color: #07080f;
    animation: series-tile-fade 9s ease-in-out infinite alternate;
  }

  body.home-page .home-edition--red-line .article-mark-art {
    --accent-ink: var(--redline-deep);
    background-color: #07080f;
    animation: series-tile-fade 9s ease-in-out infinite alternate;
  }
}

