.reader {
  min-height: 100vh;
  background-color: var(--bg);
}

.reader-shell {
  width: min(1140px, calc(100% - 64px));
  margin: auto;
}

.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.reader-head .brand { text-decoration: none; color: var(--ink); }
.reader-play { text-decoration: none; white-space: nowrap; }
.reader-play:hover { background: #f3d18a; }
.reader-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
  justify-content: center;
  padding-block: clamp(26px, 4vw, 56px);
}

.reader-sidebar { position: sticky; top: 18px; }
.reader-nav { display: grid; gap: 16px; }
.reader-nav p {
  margin: 0 0 6px;
  color: var(--muted);
  font: 700 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reader-nav ul { list-style: none; padding: 0; margin: 0; }
.reader-nav a {
  display: block;
  padding: 7px 12px;
  color: #c6d4ca;
  border-left: 2px solid var(--line);
  font-size: 14px;
  text-decoration: none;
}
.reader-nav a:hover { color: var(--ink); background: #172a29; }
.reader-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: #222d26;
  font-weight: 700;
}

.reader-mobile { display: none; }
.reader-main { min-width: 0; }
.reader-page {
  padding: clamp(22px, 4.4vw, 58px);
  border: 1px solid #364a44;
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  background: #111f22;
  overflow-wrap: anywhere;
}
.reader-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: #a8bcb4;
  font: 12px/1.5 var(--mono);
  margin: 0 0 18px;
}
.reader-crumb a { color: inherit; text-underline-offset: 3px; }
.reader-page h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.7vw, 60px);
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.reader-copy { font-size: 16px; line-height: 1.68; color: #d5ddd3; }
.reader-copy p { margin: 0 0 1em; }
.reader-copy .article-intro { font-size: clamp(18px, 1.45vw, 21px); color: #d4dccb; line-height: 1.5; }
.reader-copy h2 {
  margin: 1.55em 0 .5em;
  padding-top: .95em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.reader-copy h3 { margin: 1.35em 0 .4em; font-size: 19px; line-height: 1.35; color: var(--ink); }
.reader-copy :is(ol, ul) { padding-left: 1.45em; }
.reader-copy li { padding-left: .2em; margin-block: .45em; }
.reader-copy li::marker { color: var(--gold); font-weight: 700; }
.reader-copy strong, .reader-copy dt { color: var(--ink); }
.reader-copy dt { font-weight: 700; }
.reader-copy dd { margin: 0 0 .7em; }
.reader-copy a, .reader-foot a { color: var(--mint); text-underline-offset: 3px; }
.reader-copy a:hover, .reader-foot a:hover { color: var(--gold); }
.reader-copy :is(details, blockquote) {
  margin: 1em 0;
  padding: 12px 16px;
  background: #162b2b;
  border-left: 3px solid #64887a;
}
.reader-copy summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.reader-copy summary:focus-visible, .reader-mobile summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.reader-copy details[open] summary { margin-bottom: .6em; }
.reader-copy :is(details, blockquote) > :last-child, .reader-copy > :last-child { margin-bottom: 0; }
.reader-copy table { width: 100%; margin: 1em 0; border-collapse: collapse; text-align: left; }
.reader-copy :is(td, th) { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reader-copy caption { text-align: left; margin-bottom: .4em; color: var(--muted); }
.reader-copy th { color: var(--ink); }
.reader-copy kbd { font: .9em var(--mono); border: 1px solid #54645e; padding: .1em .28em; border-radius: 3px; }
.reader-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0 32px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 760px) {
  .reader-shell { width: min(100% - 28px, 660px); }
  .reader-head { padding-block: 12px; }
  .reader-head .primary-button { font-size: 13px; padding: 9px 12px; }
  .reader-layout { display: block; padding: 14px 0 24px; }
  .reader-sidebar { display: none; }
  .reader-mobile { display: block; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
  .reader-mobile summary { width: fit-content; cursor: pointer; color: var(--gold); font-size: 14px; padding: 7px 2px 12px; }
  .reader-mobile .reader-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 0 16px; }
  .reader-page { padding: 23px clamp(15px, 4vw, 27px) 27px; }
}
