/* Teletext colors and locally served fonts. */
@font-face {
  font-family: Iosevka; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/iosevka-regular.woff2?v=bdeb80f83431f038') format('woff2');
}
@font-face {
  font-family: Iosevka; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/iosevka-bold.woff2?v=bdeb80f83431f038') format('woff2');
}
:root {
  color-scheme: dark;
  --bg: #101111;
  --panel: #070909;
  --white: #f2f0db;
  --dim: #a5aaa3;
  --yellow: #f5ed53;
  --cyan: #64dfed;
  --pink: #ff96bc;
  --green: #a3e29a;
  --line: #303733;
  --input: #171c19;
  --border: #697469;
  --shadow: #050606;
  --active: #20251d;
  --footer: #111611;
  --prose: #c3c9bc;
  --visited: #b9c5b5;
  --button: #f5ed53;
  --button-hover: #fff995;
  --badge-pink: #ff96bc;
  --badge-green: #a3e29a;
}
:root[data-appearance=light] {
  color-scheme: light;
  --bg: #e9edf5;
  --panel: #fffef5;
  --white: #17213a;
  --dim: #4e5968;
  --yellow: #735900;
  --cyan: #075b79;
  --pink: #96305a;
  --green: #286127;
  --line: #b9c1ca;
  --input: #ffffff;
  --border: #697469;
  --shadow: #c5cddd;
  --active: #fff4b8;
  --footer: #eef1f7;
  --prose: #354157;
  --visited: #684183;
}
@media(prefers-color-scheme:light) {
  :root:not([data-appearance=dark]):not([data-appearance=light]) {
    color-scheme: light;
    --bg: #e9edf5;
    --panel: #fffef5;
    --white: #17213a;
    --dim: #4e5968;
    --yellow: #735900;
    --cyan: #075b79;
    --pink: #96305a;
    --green: #286127;
    --line: #b9c1ca;
    --input: #ffffff;
    --border: #697469;
    --shadow: #c5cddd;
    --active: #fff4b8;
    --footer: #eef1f7;
    --prose: #354157;
    --visited: #684183;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Iosevka,ui-monospace,"Cascadia Code","Liberation Mono",monospace;
  font-size: 15px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:focus-visible,input:focus-visible,button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: var(--button);
  color: #111;
  font-weight: 700;
  padding: 10px 16px;
}
input {
  min-width: 0;
  background: var(--input);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
}
button:hover {
  background: var(--button-hover);
}
.screen {
  max-width: 1000px;
  margin: 48px auto;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 12px 12px 0 var(--shadow);
}
.masthead {
  display: flex;
  align-items: center;
  padding: 12px 28px;
  background: #163bd2;
  gap: 20px;
}
.masthead>a {
  font-weight: 900;
  color: white;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -1px;
}
.masthead>a span {
  color: #f5ed53;
}
.channels {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--line);
}
.channels a {
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}
.channels a:last-child {
  border-right: 0;
}
.channels .active {
  background: var(--active);
  box-shadow: inset 0 -3px var(--yellow);
}
.yellow {
  color: var(--yellow);
}
.cyan {
  color: var(--cyan);
}
.pink {
  color: var(--pink);
}
.green {
  color: var(--green);
}
main {
  padding: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 12px;
  margin-bottom: 18px;
  gap: 16px;
}
h1 {
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--yellow);
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
}
.edition-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
}
.top-switch {
  display: flex;
  white-space: nowrap;
  border: 1px solid var(--line);
  font-size: 13px;
}
.top-switch a {
  padding: 6px 12px;
}
.top-switch [aria-current=true] {
  background: var(--button);
  color: #111;
  font-weight: 700;
}
.search {
  display: flex;
  gap: 0;
  margin: 18px 0;
}
.search input {
  flex: 1;
  width: 100%;
  border-right: 0;
}
.search button {
  white-space: nowrap;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.stories {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story {
  display: grid;
  grid-template-columns: 32px 112px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rank {
  color: var(--dim);
  font-size: 13px;
  padding-top: 3px;
}
.story-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: block;
}
.story-title:hover {
  color: var(--yellow);
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: var(--dim);
}
.source {
  font-size: 11px;
  font-weight: 800;
  padding: 0 4px;
}
.hn {
  background: #f2b268;
  color: #100c06;
}
.lb {
  background: var(--badge-pink);
  color: #200914;
}
.domain {
  overflow-wrap: anywhere;
}
.tag {
  color: var(--green);
}
.story-stats {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  text-align: right;
  padding-top: 2px;
  font-size: 15px;
}
.points {
  color: var(--yellow);
}
.comments {
  color: var(--cyan);
}
.story-stats small {
  display: block;
  color: var(--dim);
  font-size: 10px;
  margin-top: 3px;
}
.page-turner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  padding: 24px 0;
  color: var(--cyan);
}
.subpages {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--dim);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.subpages a {
  color: var(--yellow);
}
footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 24px 28px 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12px;
  line-height: 1.8;
}
.footer-links a {
  color: var(--green);
}
.demo,.warning {
  font-size: 12px;
  border: 1px solid #53674a;
  color: var(--green);
  padding: 10px 12px;
  margin: 0 0 22px;
}
.warning {
  color: var(--yellow);
  border-color: #6a6427;
}
.warning a {
  text-decoration: underline;
}
.empty {
  padding: 40px 12px;
  text-align: center;
}
.empty h2 {
  font-size: 18px;
  color: var(--yellow);
}
.empty p {
  color: var(--dim);
  font-size: 13px;
}
.empty a {
  color: var(--cyan);
  font-size: 13px;
}
.empty-symbol {
  font-size: 39px;
  color: var(--cyan);
}
.intro {
  font-size: 20px;
  color: var(--cyan);
  margin-top: 0;
}
.about {
  max-width: 72ch;
}
.about p {
  color: var(--prose);
  line-height: 1.85;
}
.about h2 {
  font-size: 18px;
  color: var(--yellow);
  margin-top: 32px;
}
.directory {
  margin: 0;
}
.directory div {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.directory dt {
  color: var(--cyan);
  font-weight: 700;
}
.status-list>div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.status-list strong {
  color: var(--green);
}
.status-list span {
  font-size: 13px;
  color: var(--dim);
}
.archive-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
  font-size: 13px;
}
.archive-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.archive-list a>span:first-child {
  color: var(--cyan);
}
.archive-list b {
  color: var(--yellow);
  margin-left: 16px;
}
.error {
  max-width: 700px;
  margin: 80px auto;
  padding: 24px;
}
.error a {
  color: var(--cyan);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--button);
  color: #111;
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
@media(max-width:700px) {
  .screen {
    margin: 0;
    border: 0;
    box-shadow: none;
    max-width: 100%;
  }
  .masthead {
    padding: 12px 16px;
    gap: 16px;
  }
  .channels {
    grid-template-columns: repeat(2,1fr);
  }
  .channels a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .channels a:nth-child(2) {
    border-right: 0;
  }
  main {
    padding: 22px 16px;
  }
  h1 {
    font-size: 22px;
  }
  .edition-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .edition-controls>span {
    font-size: 11px;
  }
  .search input {
    font-size: 13px;
    padding: 12px 8px;
  }
  .search button {
    font-size: 13px;
    padding: 12px;
  }
  .list-heading {
    font-size: 10px;
    letter-spacing: 0;
  }
  .story {
    grid-template-columns: 24px 58px minmax(0,1fr);
    gap: 8px;
    padding: 17px 0;
  }
  .story-title {
    font-size: 16px;
  }
  .story-meta {
    gap: 8px;
    font-size: 11px;
  }
  .story-stats {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 13px;
    padding-top: 2px;
  }
  .story-stats small {
    display: block;
    font-size: 11px;
    margin-left: 0;
  }
  .rank {
    font-size: 12px;
  }
  .page-turner {
    font-size: 12px;
  }
  .subpages {
    gap: 14px;
    font-size: 11px;
  }
  footer {
    padding: 22px 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .about p {
    font-size: 14px;
  }
  .intro {
    font-size: 18px;
  }
  .archive-list a {
    font-size: 13px;
  }
  .archive-list b {
    margin-left: 5px;
  }
  .archive-form label {
    width: 100%;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }
}
.reading-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--cyan);
}
.pick-details {
  grid-column: 3 / -1;
  font-size: 11px;
  color: var(--dim);
  margin-top: 4px;
  max-width: 70ch;
}
.pick-details summary {
  cursor: pointer;
  color: var(--green);
  padding: 6px 0;
}
.pick-details p {
  margin: 8px 0;
  line-height: 1.8;
}
.pick-details a {
  color: var(--cyan);
}
.edition-timeline {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.edition-timeline summary {
  color: var(--green);
  cursor: pointer;
}
.edition-timeline ol {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  padding: 0;
  gap: 10px;
}
.edition-timeline li {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.edition-timeline time {
  color: var(--yellow);
}
details summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
@media(max-width:700px) {
  .reading-modes {
    gap: 12px;
    font-size: 11px;
  }
  .edition-timeline ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .pick-details {
    grid-column: 2;
  }
}
.cross-discussions {
  grid-column: 3 / -1;
  font-size: 11px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cross-discussions a {
  color: var(--cyan);
}
.search-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 16px;
  color: var(--cyan);
  font-size: 13px;
}
.refresh-new {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--cyan);
}
.new-pick {
  color: #111;
  background: var(--badge-green);
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
}
.story-title:visited {
  color: var(--visited);
}
.pd {
  background: var(--badge-green);
  color: #111;
}
.channels.with-extra {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media(max-width:700px) {
  .channels.with-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channels.with-extra a:last-child {
    grid-column: 1 / -1;
  }
}

.about a {
  color: var(--cyan);
}
.about pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--green);
  padding: 12px;
  border: 1px solid var(--line);
}

.day-divider {
  list-style: none;
  padding: 16px 0 8px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}

.search { flex-wrap: wrap; }
.search > #search { width: 0; min-width: 0; }
.advanced-search { flex-basis: 100%; margin-top: 12px; }
.advanced-search summary { cursor: pointer; }
.advanced-search label { display: block; margin: 12px 0; }
.advanced-search input, .advanced-search select {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid currentColor; padding: 10px;
  background: inherit; color: inherit; font: inherit;
}
.advanced-search select:focus-visible { outline: 2px solid currentColor; }
.appearance {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(6px, 2vw, 14px);
  padding: 12px 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}
.appearance [aria-current=true] {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.masthead a:focus-visible {
  outline-color: #f5ed53;
}

/* Fragment jumps focus the destination without adding another Tab stop. */
main:focus-visible,.story:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.story:target {
  border-left: 3px solid var(--cyan);
  padding-left: 8px;
}


.admin-table { overflow: auto; }
.admin-table table { border-collapse: collapse; font-size: 0.8625rem; }
.admin-table th, .admin-table td { border: 1px solid #555; padding: .4rem; text-align: left; min-width: 8rem; max-width: 30rem; overflow-wrap: anywhere; }
.screen pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Traffic statistics use native forms and accessible server-rendered charts. */
.traffic { padding: clamp(12px, 3vw, 32px); }
.traffic h1, .traffic h2, .traffic h3 { margin: 1.4rem 0 .7rem; }
.traffic p { margin: .8rem 0; line-height: 1.6; }
.stats-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.5rem 0; }
.stats-controls label { display: grid; gap: .4rem; }
.stats-controls select, .stats-controls input, .stats-controls button { max-width: 100%; padding: .65rem; font: inherit; }
.stats-chart { margin: 1.5rem 0; }
.stats-chart figcaption { font-weight: bold; margin-bottom: .5rem; }
.stats-chart svg { width: 100%; height: auto; color: inherit; }
.stats-chart line { stroke: currentColor; opacity: .2; }
.stats-chart rect { fill: currentColor; opacity: .75; }
.stats-chart text { fill: currentColor; font-size: 13px; }
.stats-table { overflow-x: auto; margin: 1rem 0; }
.stats-table table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td { padding: .6rem; border-bottom: 1px solid; text-align: right; }
.stats-table th:first-child { text-align: left; overflow-wrap: anywhere; max-width: 50ch; }
.stats-controls { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; }
.stats-controls button { grid-column: 2; justify-self: start; }
.stats-controls select { color: var(--white); background: var(--input); border: 1px solid var(--border); }
@media (max-width: 600px) { .stats-controls { grid-template-columns: minmax(0, 1fr); } .stats-controls button { grid-column: 1; } }
.visit-notice {
  color: var(--green);
  font-size: 13px;
  line-height: 1.6;
}

.keyboard-help { position: fixed; right: 1rem; bottom: 1rem; color: var(--yellow); background: var(--bg); border: 1px solid currentColor; padding: .5rem .8rem; font: inherit; cursor: pointer; }
#keyboard-help { background: var(--bg); color: var(--white); border: 1px solid var(--cyan); border-radius: .75rem; padding: 1.5rem; width: min(32rem, calc(100% - 2rem)); max-height: 85dvh; overflow: auto; }
#keyboard-help::backdrop { background: rgb(0 0 0 / 70%); }
#keyboard-help form { float: right; }
#keyboard-help button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
#keyboard-help dl { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
#keyboard-help dd { margin: 0; }
#keyboard-help kbd { border: 1px solid currentColor; border-radius: .25rem; padding: .15rem .35rem; white-space: nowrap; }
#keyboard-help p { font-size: 0.8625rem; line-height: 1.5; }

html[data-pro=off] .pick-details { display: none; }
.pro-mode { margin-left: auto; flex-shrink: 0; }
.pro-mode button { font: inherit; font-size: 0.8125rem; background: var(--input); color: var(--dim); border: 1px solid var(--border); padding: .4rem .45rem; cursor: pointer; }
.pro-mode button[aria-pressed=true] { color: var(--yellow); border-color: currentColor; }

@media (max-width: 360px) {
  .appearance { font-size: 11px; gap: 6px; }
  .pro-mode button { font-size: 11px; }
}

.feed-more { list-style: none; padding: 1.5rem 0; text-align: center; }
.feed-more button { display: inline-block; padding: .75rem 1rem; }
