:root {
  color-scheme: light;
  --ink: #111;
  --paper: #fff;
  --body: #424242;
  --selected: #ededed;
  --overlay: rgba(255, 255, 255, 0.97);
  --muted: #6b6b6b;
  --line: #e9e9e9;
  --hover: #f3f3f3;
  --page: 1120px;
  --gutter: 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 160px;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.25;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--overlay);
  backdrop-filter: blur(14px);
}
.masthead {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: auto;
}
.wordmark {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.6px;
  text-decoration: none;
}
.telegram-link {
  font-size: 14px;
  text-decoration: none;
  padding: 10px 14px;
  margin-right: -14px;
  border-radius: 20px;
  transition: background 0.18s;
}
.telegram-link:hover {
  background: var(--hover);
}
.date-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
  max-width: calc(var(--page) + 100px);
  margin: auto;
}
.dates {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}
.dates::-webkit-scrollbar {
  display: none;
}
.date {
  padding: 12px 20px;
  white-space: nowrap;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
  flex-shrink: 0;
}
.date:hover {
  background: var(--hover);
  color: var(--ink);
  box-shadow: 0 2px 10px #00000006;
}
.date[aria-current="date"] {
  background: var(--selected);
  color: var(--ink);
}
.arrow {
  width: 38px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.18s;
}
.arrow:hover:not(:disabled) {
  background: var(--hover);
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--page);
  margin: 0 auto;
  min-height: 45vh;
}
.issue-heading {
  padding: 48px 0 34px;
  scroll-margin-top: 150px;
}
.issue-heading h1,
.issue-heading h2 {
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -1.9px;
  line-height: 1.12;
  margin: 0 0 12px;
}
.issue-heading p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.issue + .issue .issue-heading {
  padding-top: 70px;
}
.story {
  padding: 0 0 38px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 160px;
  animation: arrive 0.35s ease-out both;
}
.story-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-gap: 64px;
}
.story h2 {
  font-size: 28px;
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0 0 24px;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.story-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  overflow-wrap: anywhere;
}
.story-body p {
  margin: 0 0 18px;
  white-space: pre-wrap;
}
.story-body p:last-child {
  margin-bottom: 0;
}
.missing {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
}
.sources {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.sources a {
  text-underline-offset: 4px;
  text-decoration-color: #bbb;
  transition: color 0.18s;
}
.sources a:hover {
  color: var(--ink);
}
.source-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.source-link svg {
  width: 13px;
  height: 13px;
}
.story-number {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.reader-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  z-index: 11;
  padding: 0 var(--gutter);
  font-size: 13px;
  color: var(--muted);
}
.progress-track {
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--selected);
}
#progress-fill {
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.22s;
}
#reading-count {
  color: var(--ink);
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#to-top {
  justify-self: end;
  display: grid;
  place-items: center;
  text-decoration: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
}
#to-top:hover {
  background: var(--hover);
}
.load-state {
  text-align: center;
  padding: 28px 24px 100px;
  color: var(--muted);
  font-size: 14px;
}
.load-state button {
  display: block;
  margin: 15px auto 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#sentinel {
  height: 1px;
  margin-bottom: 80px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 30;
  background: var(--paper);
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
.no-script {
  text-align: center;
  margin: 80px 20px;
}
main:focus {
  outline: none;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  :root {
    --page: 1200px;
  }
  .story-columns {
    grid-gap: 80px;
  }
  .story-body {
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  :root {
    --gutter: 24px;
  }
  .masthead {
    height: 72px;
  }
  .date-nav {
    gap: 0;
    margin: 0 12px;
  }
  .date {
    padding: 10px 14px;
  }
  .dates {
    gap: 0;
  }
  .story-columns {
    grid-gap: 28px;
  }
  .story h2 {
    font-size: 23px;
  }
  .story-body {
    font-size: 16px;
  }
  .issue-heading h1,
  .issue-heading h2 {
    font-size: 36px;
  }
  .issue-heading {
    padding-top: 34px;
  }
  .reader-footer {
    height: 50px;
  }
  .story {
    scroll-margin-top: 142px;
  }
}
@media (max-width: 580px) {
  :root {
    --gutter: 22px;
  }
  .masthead {
    height: 64px;
  }
  .wordmark {
    font-size: 27px;
  }
  .telegram-link {
    font-size: 12px;
  }
  .date-nav {
    padding-bottom: 10px;
  }
  .arrow {
    width: 30px;
  }
  .date {
    font-size: 13px;
  }
  .issue-heading {
    padding: 30px 0;
  }
  .issue-heading h1,
  .issue-heading h2 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  .issue-heading p {
    font-size: 14px;
  }
  .story-columns {
    grid-template-columns: 1fr;
    grid-gap: 30px;
  }
  .story h2 {
    font-size: 25px;
    margin-bottom: 17px;
    letter-spacing: -0.6px;
  }
  .story-body {
    font-size: 16px;
    line-height: 1.65;
  }
  .story {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  .sources {
    gap: 14px;
    margin-top: 22px;
  }
  .reader-footer {
    font-size: 12px;
  }
  .issue + .issue .issue-heading {
    padding-top: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Margins also work in iOS 12, which predates flex gap support. */
.date + .date {
  margin-left: 8px;
}
.sources {
  gap: 0;
}
.sources a {
  margin-right: 18px;
  margin-bottom: 6px;
}
@media (max-width: 800px) {
  .date + .date {
    margin-left: 4px;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111;
  --ink: #f5f5f5;
  --body: #c9c9c9;
  --muted: #a0a0a0;
  --line: #303030;
  --hover: #252525;
  --selected: #303030;
  --overlay: rgba(17, 17, 17, 0.97);
}
.header-actions {
  display: flex;
  align-items: center;
}
.header-actions > * + * {
  margin-left: 8px;
}
.icon-button,
.telegram-link.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-right: 0;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.18s;
}
.icon-button:hover {
  background: var(--hover);
}
.telegram-icon {
  width: 22px;
  height: 22px;
  stroke: none;
}
.telegram-icon circle {
  fill: currentColor;
}
.telegram-icon path {
  fill: var(--paper);
}
.sun-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
.date::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  vertical-align: 2px;
  border-radius: 50%;
  background: transparent;
}
.date.unread::after {
  background: var(--ink);
}
.dates {
  -webkit-overflow-scrolling: touch;
}

.date {
  text-decoration: none;
  flex-shrink: 0;
}
.story-number {
  text-decoration: none;
  color: var(--muted);
}
.story-number:hover {
  color: var(--ink);
}
.site-note {
  max-width: 1120px;
  margin: 32px auto 100px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.site-note a {
  color: inherit;
  text-underline-offset: 3px;
}
.analytics-controls {
  max-width: 1120px;
  margin: -80px auto 100px;
  padding: 0 24px;
  color: var(--muted);
  font-size: 11px;
}
.analytics-controls a,
.analytics-controls button {
  color: inherit;
  font: inherit;
}
.analytics-controls button {
  border: 0;
  padding: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}
.analytics-choice {
  position: fixed;
  bottom: 70px;
  left: 16px;
  right: 16px;
  max-width: 700px;
  margin: auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  z-index: 20;
  font-size: 13px;
  box-shadow: 0 4px 24px #0002;
}
.analytics-choice[hidden] {
  display: none;
}
.analytics-choice span {
  display: block;
  margin-bottom: 10px;
}
.analytics-choice a {
  color: inherit;
}
.analytics-choice button {
  font: inherit;
  background: var(--selected);
  color: var(--ink);
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
  margin-right: 8px;
  cursor: pointer;
}
