@font-face {
  font-family: Thinman;
  src: url(./fonts/thinman.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Tetrominoes;
  src: url(./fonts/tetrominoes.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Noseblood;
  src: url(./fonts/noseblood.otf) format("opentype");
  font-display: swap;
}

:root {
  color: #000;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  min-height: 100%;
}

body {
  color: #000;
  background: #fff;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

a {
  color: #00e;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: #fff;
  background: #00e;
  outline: 0;
}

.publication {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: clamp(28px, 9vw, 92px) 0 clamp(32px, 7vw, 72px);
}

.masthead {
  text-align: center;
  padding-bottom: clamp(40px, 7vw, 68px);
}

.title,
.kicker,
h1,
.date-range,
.status,
footer {
  letter-spacing: 0;
  margin: 0;
  font-size: clamp(0.875rem, 2.8vw, 1rem);
  font-weight: 400;
  line-height: 1.45;
}

.title {
  letter-spacing: 0.04em;
  font-family: Noseblood, Arial, Helvetica, sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 0.85;
}

.kicker {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

h1 {
  margin-top: 0.4rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
}

.category-filter {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.32rem;
  margin-top: 1.15rem;
  font-size: 12pt;
  line-height: 1.65;
  display: flex;
}

.category-button {
  color: #00e;
  font: inherit;
  text-underline-offset: 0.18em;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.category-button:hover,
.category-button:focus-visible,
.category-button.is-selected {
  color: #fff;
  background: #00e;
  outline: 0;
}

.category-separator {
  color: #000;
}

.date-range {
  margin-top: clamp(36px, 7vw, 64px);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  display: block;
}

.ranked-table {
  border-collapse: collapse;
  border: 1px solid #000;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.ranked-table tbody {
  display: table-row-group;
}

.ranked-item {
  border-bottom: 1px solid #000;
}

.ranked-item:last-child {
  border-bottom: 0;
}

.rank,
.article-cell,
.views {
  letter-spacing: 0;
  vertical-align: top;
  padding: 0.9rem 0.85rem;
  font-size: clamp(0.95rem, 2.7vw, 1.05rem);
  line-height: 1.45;
}

.rank {
  color: #000;
  text-align: right;
  white-space: nowrap;
  width: 3.25rem;
}

.article-cell {
  min-width: 0;
}

.article-cell a {
  font-size: inherit;
  line-height: inherit;
}

.article-link-wrap {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  display: inline-block;
  position: relative;
}

.article-link-wrap a {
  overflow-wrap: anywhere;
}

.thumbnail {
  z-index: 2;
  background: #fff;
  border: 1px solid #000;
  width: auto;
  max-width: min(180px, 56vw);
  height: auto;
  max-height: 180px;
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
}

.article-link-wrap:hover .thumbnail,
.article-link-wrap:focus-within .thumbnail,
.article-link-wrap.is-previewing .thumbnail {
  display: block;
}

.views {
  color: #000;
  text-align: right;
  white-space: nowrap;
  width: 11rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.status {
  padding: clamp(44px, 8vw, 76px) 0;
  font-size: 12pt;
}

footer {
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: clamp(28px, 5vw, 44px);
  display: flex;
}

.delay-note,
.credit {
  color: #72777d;
  font-size: 0.75rem;
}

.credit {
  text-align: right;
  text-decoration-color: currentColor;
}

.credit:hover,
.credit:focus-visible {
  color: #54595d;
  background: 0 0;
}

@media (width >= 760px) {
  .publication {
    width: 680px;
  }

  .thumbnail {
    top: 50%;
    left: calc(100% + 2ch);
    transform: translateY(-50%);
  }
}

@media (width <= 560px) {
  .rank,
  .article-cell,
  .views {
    text-align: left;
    width: auto;
    padding: 0.75rem 0.85rem 0;
    display: block;
  }

  .ranked-item {
    padding-bottom: 0.75rem;
    display: block;
  }

  .rank {
    padding-bottom: 0;
  }

  .article-cell {
    padding-top: 0.15rem;
  }

  .views {
    white-space: normal;
    padding-top: 0.2rem;
  }
}
