/* ИИтак — one column, big type, selection-blue as the only accent. */

:root {
  --paper: #fcfcfd;
  --ink: #101218;
  --ink-2: #3b404c;
  --ink-3: #5d6372;
  --muted: #6c7282;
  --rule: #e6e8ec;
  --select: #d6e0ff;
  --accent: #2b4ee0;
  --warn: #b4232c;
  --major: rgba(214, 170, 60, .055); /* a big release: warm gold, barely there */
  --col-drop: rgba(110, 115, 128, .09); /* the column a trash can would remove */

  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --wrap: 60rem;
  --rail: 8.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

/* The dark theme is soft, not black and white: text at about 11:1 against a background lifted off
   pure black (16:1 glared), the grey steps kept above 5:1, the accent and the selection less
   saturated. Dark follows the system unless the reader picked light; a reader who picked dark gets it
   whatever the system says (the switch in the header). The two lists of colors are one: keep
   them in step. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121418;
    --ink: #c4c8d0;
    --ink-2: #abb0bc;
    --ink-3: #8a90a0;
    --muted: #828898;
    --rule: #262a32;
    --select: #27304f;
    --accent: #8b9ff0;
    --warn: #e98a8a;
    --major: rgba(232, 190, 90, .045);
    --col-drop: rgba(160, 165, 178, .08);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121418;
  --ink: #c4c8d0;
  --ink-2: #abb0bc;
  --ink-3: #8a90a0;
  --muted: #828898;
  --rule: #262a32;
  --select: #27304f;
  --accent: #8b9ff0;
  --warn: #e98a8a;
  --major: rgba(232, 190, 90, .045);
  --col-drop: rgba(160, 165, 178, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* A quick second tap on a link, while the next page loads, must not zoom the page in; pinching
     still zooms. */
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--select); color: var(--ink); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: .75rem;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { left: .75rem; z-index: 10; }

/* Header */

.top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 4vw, 2.75rem) 1rem;
}

.mark {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.mark:hover { color: var(--ink); }

.caret {
  display: inline-block;
  width: .42em;
  height: .8em;
  margin-left: .1em;
  background: var(--accent);
  vertical-align: -.04em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.menu {
  display: flex;
  flex-wrap: wrap; /* the smallest phones: the theme button goes to the next line, not past the edge */
  gap: .25rem clamp(.9rem, 3vw, 2rem);
  font-size: 1rem;
  font-weight: 500;
}
.menu a { color: var(--muted); }
.menu a:hover, .menu a[aria-current] { color: var(--ink); }

.tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  scrollbar-width: none;
  padding-block: .25rem .75rem;
  padding-left: calc(var(--gutter) - .6em); /* chips carry their own padding; keep text on the column edge */
  font: 400 .9375rem/1 var(--mono);
}
.tagbar::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: .45em .6em;
  color: var(--muted);
  white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip[aria-current] { background: var(--select); color: var(--ink); }

/* Page heading */

.head { padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem; }

.kicker {
  font: 500 .8125rem/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A page heading may be one long word — «кибербезопасность», «интерпретируемость» — wider than a
   phone at this size: it breaks by syllables, or anywhere if the browser cannot, instead of
   pushing the page wider than the screen (the phone then shows it zoomed). */
.head h1, .source-head h1, .mhead h1 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.head h1 {
  margin-top: .5rem;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}

.lead {
  margin-top: 1rem;
  font: 400 .9375rem/1.4 var(--mono);
  color: var(--muted);
}
.lead a { color: var(--ink); }

/* News list */

.day { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.head + .day, main > .day:first-child { margin-top: .75rem; }

.day-label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-block: .9rem .7rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.day-date {
  font: 400 .8125rem/1 var(--mono);
  color: var(--muted);
}

.item {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 1.5rem;
  padding-block: clamp(1.4rem, 3vw, 2rem);
}
.item + .item { border-top: 1px solid var(--rule); }

/* A release the industry was waiting for: the card sits on a faint warm tint that reaches a
   little past the text, so the feed keeps its rhythm and the eye still catches it. */
.item.is-major {
  background: var(--major);
  margin-inline: -.9rem; padding-inline: .9rem;
  border-radius: .6rem;
}
.item.is-major + .item, .item + .item.is-major { border-top-color: transparent; }

/* Сюжет: карточка главной новости, под ней строчки продолжений. */
.thread-upd { color: var(--muted); }
.item-follow { display: flex; gap: .5rem; align-items: baseline; margin: .35rem 0 0;
  font-size: .9375rem; line-height: 1.45; }
.item-follow + .item-summary { margin-top: .8rem; }
.item-star { color: var(--muted); flex: none; }
.item-follow a { color: var(--ink-2); }
.item-follow a:hover { color: var(--accent); }
.item-follow-time { font: 400 .75rem/1.4 var(--mono); color: var(--muted); flex: none; }

.item-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: .45em;
  font: 400 .8125rem/1.35 var(--mono);
  color: var(--muted);
}
.item-meta time { color: var(--ink); }
.item-source { color: var(--muted); overflow-wrap: anywhere; }

.item.is-new .item-meta time::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: .1em;
}

.item-title {
  font-size: clamp(1.375rem, 1rem + 1.35vw, 2.125rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* The signature: a headline under the pointer gets selected, like text dragged over. */
.item-title a span {
  background-image: linear-gradient(var(--select), var(--select));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .38s cubic-bezier(.2, .7, .2, 1);
}
.item-title a:hover { color: var(--ink); }
.item-title a:hover span,
.item-title a:focus-visible span { background-size: 100% 100%; }
.item-title a:visited { color: var(--ink-3); }

.item-summary {
  margin-top: .7rem;
  max-width: 40em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .9rem;
  margin-top: .85rem;
  font: 400 .8125rem/1.5 var(--mono);
}
.item-domain { color: var(--muted); }
.t { color: var(--ink-3); }
.t-model { color: var(--ink); font-weight: 500; }
.t:hover { color: var(--ink); background: var(--select); }

.empty {
  padding-block: 3rem;
  max-width: 34em;
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.empty a { color: var(--accent); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
}
.pager-next { margin-left: auto; }

/* Search */

.search { padding-block: clamp(2rem, 6vw, 4rem) .5rem; }

.search input {
  display: block;
  width: 100%;
  margin-top: .75rem;
  padding: .15em 0 .2em;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 700 clamp(1.75rem, .9rem + 4.5vw, 4.5rem)/1.1 var(--sans);
  letter-spacing: -.04em;
  appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: .45; }
.search input:focus { outline: none; border-bottom-color: var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search-lead { margin-top: .75rem; }

/* Tags */

.tag-group { margin-top: clamp(2rem, 5vw, 3.25rem); }
.tag-group .kicker,
.source-group .kicker {
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--ink);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.6rem;
  margin-top: 1.1rem;
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.tag-cloud a:hover { color: var(--ink); background: var(--select); }
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.tag-cloud .avatar {
  width: 1.15rem;
  border-radius: .3rem;
  flex: 0 0 auto;
}
.tag-cloud .avatar-mono { font-size: .45rem; }
.tag-cloud .avatar.is-glyph { padding: .12rem; }
.tag-cloud .count {
  margin-left: .2em;
  font: 400 .8125rem/1 var(--mono);
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: super;
}
.tag-cloud .is-quiet a { color: var(--muted); }

/* Sources */

.source-group { margin-top: clamp(2rem, 5vw, 3.25rem); }

.source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .2rem 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
}
.source + .source { border-top: 1px solid var(--rule); }
.source-name {
  font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.source-info { font: 400 .8125rem/1.4 var(--mono); color: var(--muted); text-align: right; }

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  font: 400 .8125rem/1.5 var(--mono);
  color: var(--muted);
}
.foot a:hover { color: var(--ink); }

/* Narrow screens: the time rail folds into one line above the headline. */

@media (max-width: 46rem) {
  .tagbar { flex-wrap: nowrap; overflow-x: auto; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item-meta { flex-direction: row; gap: .75rem; padding-top: 0; margin-bottom: .5rem; }
  .menu { font-size: .9375rem; }
  .source { grid-template-columns: minmax(0, 1fr); }
  .source-info { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .item-title a span { transition: none; }
}

/* Article page: the list's rail continues, the story reads in one wide column. */

.story {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 1.5rem;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 0;
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: .85em;
  font: 400 .8125rem/1.35 var(--mono);
  color: var(--muted);
}
.story-meta time { display: flex; flex-direction: column; gap: .35rem; color: var(--muted); }
.story-meta time span:last-child { color: var(--ink); }

.story-title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.625rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.story-lead {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 34em;
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}

.story-main > .item-tags { margin-top: 1.1rem; }

.story-body {
  max-width: 40rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3.5vw, 2.25rem);
  border-top: 1px solid var(--ink);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.65;
  hanging-punctuation: first;
}
.story-body p + p { margin-top: 1.05em; }
.story-body > * + * { margin-top: 1.05em; }

/* A strong quote, set apart as a voice: larger, with a black rule and the name
   under it. At most one per story — two would make neither stand out. */
.story-quote {
  margin: 1.6em 0; padding: .1em 0 .1em 1.1em;
  border-left: 3px solid var(--ink);
}
.story-quote p {
  margin: 0;
  font-size: 1.22em; line-height: 1.45; font-weight: 500;
  letter-spacing: -.01em; color: var(--ink);
}
.story-quote cite {
  display: block; margin-top: .5em;
  font: 400 .8125rem/1.4 var(--mono); font-style: normal; color: var(--muted);
}

/* A run of like facts: short lines with a quiet marker, not a slide of bullet points. */
.story-list { margin: .5em 0 0; padding: 0; list-style: none; }
.story-list li { position: relative; padding-left: 1.1em; }
.story-list li + li { margin-top: .35em; }
.story-list li::before {
  content: ""; position: absolute; left: .15em; top: .72em;
  width: .38em; height: .38em; border-radius: 50%;
  background: var(--ink);
}
.story-body p + .story-list { margin-top: .5em; }

/* On the owner's copy: the page shows a variant, not what readers see. */
.story-preview {
  margin: 0 0 1.25rem; padding: .6rem .9rem;
  font: 500 .8125rem/1.45 var(--mono); color: var(--ink);
  background: var(--select); border-radius: .5rem;
}
.story-preview a { color: var(--accent); }

/* A word the story explains: dotted, so it does not read like an outside link. */
.term {
  color: inherit;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: .2em;
}
.term:hover { color: var(--accent); }

.glossary, .related {
  max-width: 40rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.glossary dl { margin-top: .75rem; }
.glossary dt {
  font: 600 1rem/1.4 var(--sans);
  scroll-margin-top: 4rem;
}
.glossary dt::before { content: "— "; color: var(--accent); }
.glossary dd {
  margin: .2rem 0 0;
  max-width: 34em;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.glossary dd + dt { margin-top: .85rem; }

/* «Контекст» being tried: a few checked facts the story does not tell, each with where it was
   checked. The owner's copy only. */
.facts-list { margin: .75rem 0 0; padding-left: 1.1rem; max-width: 38rem; }
.facts-list li { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.facts-list li + li { margin-top: .6rem; }
.facts-list li::marker { color: var(--ink); }
.facts-src { font: 400 .75rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
a.facts-src:hover { color: var(--accent); }
.facts-trial {
  margin-left: .5rem; padding: .1rem .4rem; border-radius: .3rem;
  background: var(--select); color: var(--ink); text-transform: none; letter-spacing: 0;
}
.facts-why { margin-top: .75rem; max-width: 40rem; font: 400 .8125rem/1.45 var(--mono); color: var(--muted); }

.related ul { margin-top: .75rem; list-style: none; padding: 0; }
.related li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  padding-block: .4rem;
}
.related li + li { border-top: 1px solid var(--rule); }
.related a { font-weight: 500; }
.related a:hover { color: var(--accent); }
.related-note, .related time { font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }

/* The one place that leaves the site. */
.origin {
  max-width: 40rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.origin-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-top: .75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.origin-host { font: 400 .8125rem/1 var(--mono); color: var(--muted); letter-spacing: 0; }

.origin-link {
  display: block;
  margin-top: .5rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.origin-link > span:first-child {
  background-image: linear-gradient(var(--select), var(--select));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .38s cubic-bezier(.2, .7, .2, 1);
}
.origin-link:hover { color: var(--ink); }
.origin-link:hover > span:first-child,
.origin-link:focus-visible > span:first-child { background-size: 100% 100%; }
.origin-arrow { color: var(--accent); white-space: nowrap; }

.origin-note {
  margin-top: .9rem;
  font: 400 .8125rem/1.5 var(--mono);
  color: var(--muted);
}

.story-back {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
}
.story-back a { color: var(--muted); }
.story-back a:hover { color: var(--ink); }

@media (max-width: 46rem) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-meta { flex-direction: row; gap: .75rem; padding-top: 0; margin-bottom: .75rem; }
  .story-meta time { flex-direction: row; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .origin-link > span:first-child { transition: none; }
}

/* The name's first letter carries the accent, like the caret after it. */
.mark-accent { color: var(--accent); }

.legal-note {
  max-width: 40rem;
  margin-top: 1.5rem;
  font: 400 .8125rem/1.5 var(--mono);
  color: var(--muted);
}

/* Source pictures: a white tile so logos drawn for light backgrounds survive the dark theme. */

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: .45rem;
  background: #fff;
  object-fit: cover;
  vertical-align: middle;
}
.avatar.is-person { border-radius: 50%; }
/* A family's own mark is a bare sign: give it room inside the white tile.
   The padding is fixed, not a percentage: percentages resolve against the container's width. */
.avatar.is-glyph { padding: .22rem; object-fit: contain; }

.avatar-mono {
  background: var(--paper);
  color: var(--ink-3);
  font: 600 .75rem/1 var(--sans);
  letter-spacing: -.02em;
}

.source-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem;
}
.source-head > .avatar {
  width: clamp(4.5rem, 3rem + 5vw, 7rem);
  border-radius: 1.1rem;
  margin-top: .35rem;
}
.source-head > .avatar.is-person { border-radius: 50%; }
.source-head > .avatar.is-glyph { padding: clamp(.6rem, 1.4vw, 1rem); }
.source-head > .avatar-mono { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.source-head h1 {
  margin-top: .5rem;
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.source-about {
  margin-top: 1rem;
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.source-name,
.origin-name a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.origin-name .avatar { width: 1.5rem; border-radius: .35rem; }
.origin-name .avatar.is-person { border-radius: 50%; }

@media (max-width: 46rem) {
  .source-head { grid-template-columns: minmax(0, 1fr); }
  .source-head > .avatar { margin: 0 0 .5rem; }
}
.source { align-items: center; }

/* Top: the period switch, a cloud like the tags page, then numbered stories in the feed's rail. */

.chip-top { color: var(--accent); }

.top-head h1 { margin-top: 0; }
.periods {
  display: flex;
  gap: .25rem;
  margin: 1rem 0 0 -.6em;
  font: 400 .9375rem/1 var(--mono);
}

.trend { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.trend .tag-cloud { font-size: clamp(1.375rem, 1rem + 1.3vw, 2rem); }
.tag-cloud .is-tag a { color: var(--ink-3); font-weight: 500; }
.tag-cloud .is-tag a:hover { color: var(--ink); }

.ranked-item {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 1.5rem;
  align-items: baseline;
  padding-block: 1.1rem;
}
.ranked-item + .ranked-item { border-top: 1px solid var(--rule); }
.ranked-item.is-lead { padding-block: clamp(1.4rem, 3vw, 2rem); }

.ranked-n {
  font: 500 .9375rem/1 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.is-lead .ranked-n { color: var(--accent); }

.ranked-title {
  font-size: clamp(1.125rem, .95rem + .7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.is-lead .ranked-title {
  font-size: clamp(1.375rem, 1rem + 1.35vw, 2.125rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.ranked-title a span {
  background-image: linear-gradient(var(--select), var(--select));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .38s cubic-bezier(.2, .7, .2, 1);
}
.ranked-title a:hover { color: var(--ink); }
.ranked-title a:hover span,
.ranked-title a:focus-visible span { background-size: 100% 100%; }
.ranked-title a:visited { color: var(--ink-3); }

.ranked-summary {
  margin-top: .65rem;
  max-width: 40em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.ranked-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  margin-top: .6rem;
  font: 400 .8125rem/1.4 var(--mono);
  color: var(--muted);
}
.ranked-source { color: var(--ink-2); }
.ranked-source:hover { color: var(--accent); }

/* Every source that covered the story, overlapping like a stack of cards. */
.faces { display: inline-flex; align-items: center; }
.faces > * + * { margin-left: -.35rem; }
.faces a { display: inline-flex; }
.faces .avatar {
  width: 1.375rem;
  border-radius: .35rem;
  box-shadow: 0 0 0 2px var(--paper);
}
.faces .avatar.is-person { border-radius: 50%; }
.faces .avatar-mono { font-size: .5rem; }
.faces a:hover .avatar { position: relative; box-shadow: 0 0 0 2px var(--accent); }

/* The day's top above the home feed. */

.highlights { margin-top: .75rem; }
.highlights .day-label { position: static; }
.hl-head { flex-wrap: wrap; align-items: center; row-gap: .4rem; }
.hl-head h2 { font: inherit; letter-spacing: inherit; }
.hl-tabs { display: flex; gap: .15rem; font: 400 .8125rem/1 var(--mono); }
.hl-tabs .chip { padding: .4em .55em; }
.highlights .day-date { margin-left: auto; }
.hl-empty { padding-block: 1.1rem; font: 400 .9375rem/1.5 var(--mono); color: var(--muted); }
.highlights .day-date:hover { color: var(--accent); }
.highlights + .day { margin-top: clamp(2rem, 5vw, 3rem); }

@media (max-width: 46rem) {
  .ranked-item { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0 .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ranked-title a span { transition: none; }
}

/* Models: the catalog reads like the feed, one model per row under its month. */

.periods-wrap { flex-wrap: wrap; }

.model { padding-block: clamp(1rem, 2.2vw, 1.4rem); }
.model .item-meta { padding-top: .3em; }
.model-name {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.model-about { margin-top: .35rem; max-width: 40em; font-size: 1rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.model-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1rem;
  margin-top: .5rem;
  font: 400 .8125rem/1.4 var(--mono);
  color: var(--muted);
}
.model-lab { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); }
.model-lab .avatar { width: 1.25rem; border-radius: .3rem; }
.model-lab .avatar-mono { font-size: .5rem; }
.model-name .avatar, .cm-name .avatar { width: 1.05em; margin-right: .4em; vertical-align: -.14em; border-radius: .25em; }
.model-name .avatar.is-glyph, .cm-name .avatar.is-glyph { padding: .1rem; }
.model-news { margin-top: .45rem; font: 400 .8125rem/1.4 var(--mono); }
.model-news a { color: var(--accent); }
.model-about p { max-width: 46em; line-height: 1.6; margin: 0 0 .8rem; }
.model-sources { font: 400 .8125rem/1.5 var(--mono); color: var(--ink-3); }
.model-sources a { color: var(--accent); }

.models-credit {
  margin-top: 2.5rem;
  font: 400 .8125rem/1.5 var(--mono);
  color: var(--muted);
}
.models-credit a { color: var(--ink); }

@media (max-width: 46rem) {
  .top-row { flex-wrap: wrap; row-gap: .75rem; }
}

/* Live feed: a quiet way back up when news arrived above what is being read. */

.live-pill {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 5;
  transform: translateX(-50%);
  padding: .6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 .875rem/1 var(--mono);
  cursor: pointer;
  box-shadow: 0 .4rem 1.2rem rgb(0 0 0 / .18);
  animation: pill-in .35s cubic-bezier(.2, .7, .2, 1);
}
.live-pill:hover { background: var(--accent); }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, .75rem); } }

@media (prefers-reduced-motion: reduce) {
  .live-pill { animation: none; }
}

/* "← Назад" above news, tag and source pages: back where the reader came from. */

.back {
  padding-top: clamp(1rem, 3vw, 1.75rem);
  font: 500 .9375rem/1 var(--mono);
}
.back a { color: var(--muted); }
.back a:hover { color: var(--ink); }
.back + .head,
.back + .source-head,
.back + .story { padding-top: clamp(1rem, 3vw, 2rem); }

/* Profiles: every place of a company or a person in one row. */

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  margin-top: 1rem;
  font: 500 .9375rem/1.3 var(--mono);
}
.profile-links a { color: var(--ink); }
.profile-links a:hover { color: var(--accent); }
.source-head .lead { margin-top: .6rem; }

.channel-tabs { margin-top: clamp(1.25rem, 3vw, 2rem); }

/* A company's models, above its news. */

.company-models { margin-top: clamp(1rem, 3vw, 1.75rem); }
.company-models .day-label { position: static; }
.company-models .day-date { margin-left: auto; }
.company-models .day-date:hover { color: var(--accent); }
.cm-item {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 1.5rem;
  align-items: baseline;
  padding-block: .85rem;
}
.cm-item + .cm-item { border-top: 1px solid var(--rule); }
.cm-date { font: 400 .8125rem/1.35 var(--mono); color: var(--muted); }
.cm-name {
  font-size: clamp(1.125rem, .95rem + .6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.02em;
}
.cm-item .model-specs { margin-top: .3rem; }
.model-name a:hover, .cm-name:hover { color: var(--ink); }
.model-name a span, .cm-name span {
  background-image: linear-gradient(var(--select), var(--select));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .38s cubic-bezier(.2, .7, .2, 1);
}
.model-name a:hover span, .cm-name:hover span { background-size: 100% 100%; }
a.model-lab:hover { color: var(--accent); }

/* A model's page: the index, the benchmarks behind it, the specs. */

.model-head .kicker a { color: inherit; }
.model-head .kicker a:hover { color: var(--accent); }
.mi-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-top: 1rem; }
.mi-number {
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--accent);
}
.mi-place { font: 400 .9375rem/1.4 var(--mono); color: var(--muted); }

.bench {
  width: 100%;
  max-width: 44rem;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 1rem;
}
.bench th, .bench td { padding: .55rem .75rem .55rem 0; text-align: left; vertical-align: middle; }
.bench thead th { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bench tbody tr + tr { border-top: 1px solid var(--rule); }
.bench tbody th { font-weight: 500; }
.bench td { font: 400 .9375rem/1.2 var(--mono); white-space: nowrap; }
.bench-bar {
  display: inline-block;
  width: clamp(4rem, 12vw, 10rem);
  height: .5rem;
  margin-right: .6rem;
  background: var(--rule);
  border-radius: 1rem;
  vertical-align: middle;
  overflow: hidden;
}
.bench-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bench-effort { color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; margin: 1rem 0 0; }
.specs div { padding-block: .65rem; border-bottom: 1px solid var(--rule); }
.specs dt { font: 400 .8125rem/1.3 var(--mono); color: var(--muted); }
.specs dd { margin: .2rem 0 0; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 46rem) {
  .cm-item { grid-template-columns: minmax(0, 1fr); }
  .bench-effort { display: none; }
  .bench-bar { width: 3.5rem; }
}

/* A company's news/models switch. */

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.profile-tabs a {
  padding: .55rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font: 500 .9375rem/1 var(--sans);
  color: var(--ink-2);
}
.profile-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.profile-tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.source-head + .cm-list { margin-top: 1rem; border-top: 1px solid var(--ink); }

/* Models section: catalog, Epoch ranking and comparison share one switch. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.model-sections { margin-top: 1.5rem; }

.compare-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin-top: 1.5rem;
  font: 400 .9375rem/1.2 var(--mono);
  color: var(--muted);
}
.compare-pick select {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 14rem;
  padding: .55rem .75rem;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.2 var(--sans);
}
.compare-pick button, .compare-bar button {
  padding: .6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font: 500 .9375rem/1 var(--sans);
  cursor: pointer;
}
.compare-pick button:hover, .compare-bar button:hover { filter: brightness(1.1); }
.compare-bar button[disabled] { opacity: .45; cursor: default; filter: none; }
.compare-count { color: var(--ink); }

/* The search box the script puts in place of the long list: type a name, pick from a short list. */
.cmp-box { position: relative; flex: 1 1 16rem; max-width: 100%; }
.cmp-search {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.2 var(--sans);
}
.cmp-search:focus { border-color: var(--accent); outline: none; }
.cmp-search::-webkit-search-cancel-button, .cmp-search::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.cmp-box .cmp-search { padding-right: 2.9rem; }
.compare-pick .cmp-clear {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}
.compare-pick .cmp-clear:hover { color: var(--ink); background: var(--select); filter: none; }
.compare-pick .cmp-clear[hidden] { display: none; }
.cmp-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + .3rem);
  z-index: 20;
  margin: 0; padding: .25rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  box-shadow: 0 .6rem 1.6rem rgba(0, 0, 0, .14);
  max-height: 19rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cmp-results[hidden] { display: none; }
.cmp-results li { display: flex; align-items: baseline; gap: .6rem; padding: .5rem .75rem; cursor: pointer; font: 400 .9375rem/1.3 var(--sans); color: var(--ink); }
.cmp-results li[aria-selected="true"], .cmp-results li:hover { background: var(--select); }
.cmp-results .cmp-r-lab { font: 400 .75rem/1.3 var(--mono); color: var(--muted); }
.cmp-results .cmp-r-rank { margin-left: auto; font: 400 .75rem/1.3 var(--mono); color: var(--accent); white-space: nowrap; }
.cmp-results .cmp-r-none { color: var(--muted); cursor: default; }

/* Chosen models as chips: the row stays on screen while the table scrolls under it. */
.cmp-chips {
  position: sticky; top: 0; z-index: 3;
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 1.25rem 0 0; padding: .5rem 0;
  list-style: none;
  background: var(--paper);
}
.cmp-chip { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; font: 500 .875rem/1 var(--sans); }
.cmp-chip-name { padding: .45rem .15rem .45rem .8rem; color: var(--ink); }
.cmp-chip-name:hover { color: var(--accent); }
.cmp-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: stretch; padding: 0 .5rem; margin-right: .15rem;
  color: var(--muted); font-size: 1rem;
  border-radius: 0 999px 999px 0;
}
.cmp-chip-x:hover { color: var(--warn); background: var(--select); }

/* Line icons drawn with the text colour: a trash can to remove, a cross to clear. */
.ico {
  display: block; width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.cmp-chip-clear { border-style: dashed; }
.cmp-chip-clear a { padding: .45rem .8rem; color: var(--muted); }
.cmp-chip-clear a:hover { color: var(--ink); }

/* Ready-made comparisons for the empty page: one row of pills, wrapping on a phone. */
.cmp-starts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cmp-starts .chip { padding: .5rem .9rem; border: 1px solid var(--rule); border-radius: 999px; font: 500 .875rem/1.2 var(--sans); color: var(--ink-2); }
.cmp-starts .chip:hover { border-color: var(--accent); color: var(--accent); }

.compare .cmp-label { position: sticky; left: 0; z-index: 1; background: var(--paper); }

/* The ranking: the place leads each row, like the model page. */

.ranking { max-width: none; table-layout: fixed; }
.ranking tbody th { overflow-wrap: anywhere; }
.ranking .rk-index { width: 5.5rem; }
.ranking .rk-day { width: 8.5rem; }
.ranking td.rk-place {
  width: 3.5rem;
  font: 700 1.375rem/1 var(--sans);
  letter-spacing: -.03em;
  color: var(--accent);
}
.ranking tbody th { font-weight: 500; }
.rk-name { display: inline; }
.rk-name .avatar { width: 1.05em; margin-right: .4em; vertical-align: -.14em; border-radius: .25em; }
.rk-name .avatar.is-glyph { padding: .1rem; }
a.rk-name:hover { color: var(--accent); }
.rk-org { display: block; margin-top: .2rem; font: 400 .8125rem/1.3 var(--mono); color: var(--muted); }
.rk-index { white-space: nowrap; }
.rk-range { display: block; font-size: .75rem; color: var(--muted); }
.rk-day { color: var(--muted); white-space: nowrap; }
.ranking .rk-place { width: 3.5rem; }
.rk-pick { width: 2.5rem; text-align: center !important; }
.rk-pick input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); cursor: pointer; }
.ranking tr:target { background: var(--select); }
.ranking tr:has(input:checked) { background: color-mix(in srgb, var(--select) 55%, transparent); }

.compare-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font: 400 .8125rem/1.4 var(--mono);
  color: var(--muted);
}

.awaiting { list-style: none; margin: 1rem 0 0; padding: 0; }
.awaiting li { padding-block: .6rem; border-bottom: 1px solid var(--rule); font-weight: 500; }
.awaiting a:hover { color: var(--accent); }
.awaiting .avatar { width: 1.05em; margin-right: .4em; vertical-align: -.14em; border-radius: .25em; }
.awaiting .rk-org { display: inline; margin-left: .5rem; }

/* Side by side: the table scrolls inside itself, never the page. */

.compare-scroll { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { max-width: none; min-width: 34rem; table-layout: fixed; }
.compare .cmp-label { width: 11rem; font: 500 .9375rem/1.3 var(--sans); white-space: normal; }
.compare td { white-space: normal; }
.compare td small, .spec-note {
  display: block;
  margin-top: .25rem;
  font: 400 .75rem/1.35 var(--mono);
  color: var(--muted);
  white-space: normal;
}
.spec-note { font-weight: 400; }
.compare .is-best { color: var(--accent); font-weight: 700; }
.cmp-model { vertical-align: top !important; text-transform: none !important; letter-spacing: 0 !important; }
.cmp-name { display: block; font: 600 1.0625rem/1.25 var(--sans); color: var(--ink); }
.cmp-name .avatar { width: 1.1em; margin-right: .35em; vertical-align: -.16em; border-radius: .25em; }
.cmp-name:hover { color: var(--accent); }
.cmp-lab { display: block; margin-top: .2rem; font: 400 .8125rem/1.3 var(--mono); color: var(--muted); }
.cmp-place { display: flex; align-items: baseline; gap: .5rem; }
.cmp-places td, .cmp-places th { padding-top: .5rem !important; vertical-align: top !important; border-bottom: 1px solid var(--rule); }
.cmp-place .mi-number { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cmp-model { position: relative; padding-right: 1.9rem !important; }
.cmp-remove {
  position: absolute; top: .3rem; right: .35rem;
  width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--muted);
}
.cmp-remove:hover { color: var(--warn); background: var(--select); }
.cmp-group { padding-top: 1.75rem !important; font: 500 .75rem/1 var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 46rem) {
  .rk-day { display: none; }
  .ranking .rk-place { width: 2.5rem; }
  .ranking td.rk-place { font-size: 1.125rem; }
  .ranking .rk-index { width: 4.25rem; }
  .ranking th, .ranking td { padding-right: .5rem; }
  .compare .cmp-label { width: 8rem; }
}

/* The picture under a story's teaser: the source's own cover. */
.story-figure { margin: 1.5rem 0 1.25rem; }
.story-figure img { display: block; width: 100%; height: auto; background: var(--rule); }
.story-figure figcaption { margin-top: .5rem; font: 400 .75rem/1.4 var(--mono); color: var(--muted); }


/* A benchmark's name opens one line about what it checks. The name reads like a term in a story
   — dotted — and the line opens over the page, so the table keeps its shape. Browsers without
   popovers show just the name. */
.bx {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left;
  text-decoration: underline dotted var(--muted); text-underline-offset: .2em; cursor: help;
}
.bx:hover, .bx:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
.bx-pop { display: none; }
.bx-pop:popover-open {
  display: block;
  max-width: min(26rem, calc(100vw - 2rem));
  margin: auto; padding: 1rem 1.1rem;
  border: 1px solid var(--rule); border-radius: .7rem;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .18);
  font: 400 .9375rem/1.5 var(--sans); text-transform: none; letter-spacing: 0; white-space: normal;
}
.bx-pop::backdrop { background: rgba(0, 0, 0, .12); }
.bx-line { display: block; }
.bx-line + .bx-line { margin-top: .5rem; }
.bx-name { font-weight: 600; }
.bx-note { color: var(--ink-2); font-size: .875rem; }
.bx-src { font: 400 .8125rem/1.4 var(--mono); }
.bx-src a { color: var(--accent); }


/* Hovering a trash can greys the column it would remove — in the table header or in the chips
   above, which follow the columns' order. */
.compare:has(thead tr:first-child > th:nth-child(2) .cmp-remove:hover) :is(th, td):nth-child(2),
main:has(.cmp-chips > li:nth-child(1) .cmp-chip-x:hover) .compare :is(th, td):nth-child(2) { background: var(--col-drop); }
.compare:has(thead tr:first-child > th:nth-child(3) .cmp-remove:hover) :is(th, td):nth-child(3),
main:has(.cmp-chips > li:nth-child(2) .cmp-chip-x:hover) .compare :is(th, td):nth-child(3) { background: var(--col-drop); }
.compare:has(thead tr:first-child > th:nth-child(4) .cmp-remove:hover) :is(th, td):nth-child(4),
main:has(.cmp-chips > li:nth-child(3) .cmp-chip-x:hover) .compare :is(th, td):nth-child(4) { background: var(--col-drop); }
.compare:has(thead tr:first-child > th:nth-child(5) .cmp-remove:hover) :is(th, td):nth-child(5),
main:has(.cmp-chips > li:nth-child(4) .cmp-chip-x:hover) .compare :is(th, td):nth-child(5) { background: var(--col-drop); }

/* The models section's head in two rows: the title with its three tabs, then the lab and the
   order. It used to take most of a screen before the first model. */
.mhead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: clamp(1.25rem, 3vw, 2rem) 0;
}
.mhead h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
}
.mhead .model-sections { margin-top: 0; }
.mhead-lead { margin-top: .75rem; }
.mfilter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.25rem;
  margin-top: 1.1rem;
}
/* The catalog's search: one line in place of the row of labs. */
.mfind { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.mfind .cmp-search { padding-right: 2.9rem; }
.mfind-clear {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.mfind-clear:hover { color: var(--ink); background: var(--select); }
.mfind-clear[hidden], .item.model[hidden], .day[hidden], .mfind-none[hidden] { display: none; }
.mfind-none { margin-top: 1.5rem; }
.msort { display: flex; gap: .25rem; font: 400 .875rem/1.2 var(--mono); }
.msort a { padding: .4rem .6rem; border-radius: .4rem; color: var(--muted); }
.msort a:hover { color: var(--ink); }
.msort a[aria-current] { background: var(--select); color: var(--ink); }

/* «О сайте»: a few lines in the owner's words, and the form for criticism and thanks. */
.about { max-width: 38rem; margin-top: 1rem; }
.about p { font: 400 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.5 var(--sans); color: var(--ink); }
.about p + p { margin-top: .6rem; }
.letter { max-width: 38rem; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1rem; border-top: 1px solid var(--rule); }
.letter-form { display: grid; gap: .75rem; margin-top: .75rem; }
.letter-form textarea {
  width: 100%; min-height: 9rem; padding: .7rem .8rem;
  border: 1px solid var(--rule); border-radius: .5rem;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--sans); resize: vertical;
}
.letter-form textarea:focus { border-color: var(--accent); outline: none; }
.letter-form button {
  justify-self: start; padding: .65rem 1.25rem;
  border: 0; border-radius: .5rem; background: var(--ink); color: var(--paper);
  font: 500 .9375rem/1 var(--sans); cursor: pointer;
}
.letter-form button:hover { filter: brightness(1.15); }
.letter-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.letter-done, .letter-error { margin-top: .75rem; font-size: 1rem; line-height: 1.5; }
.letter-done a { color: var(--accent); }
.letter-error { color: var(--warn); }

/* The theme switch: an icon at the end of the menu — the sun in light, the moon in dark — and
   three choices under it. Hidden without the script, which is what makes it work. */
.theme { position: relative; display: inline-flex; align-self: center; }
.theme[hidden] { display: none; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin: -.5rem -.35rem; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.theme-btn:hover, .theme-btn[aria-expanded="true"] { color: var(--ink); background: var(--select); }
.theme-btn svg {
  width: 1.15rem; height: 1.15rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.theme-btn .ico-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: block; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-moon { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ico-sun { display: none; }
}
.theme-menu {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 30;
  display: grid; min-width: 10.5rem; padding: .3rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: .6rem;
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .16);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .7rem; border: 0; border-radius: .4rem;
  background: none; color: var(--ink); font: 400 .9375rem/1.2 var(--sans); text-align: left; cursor: pointer;
}
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--select); outline: none; }
.theme-menu button[aria-checked="true"]::after { content: "✓"; color: var(--accent); }

/* A person's face beside their name in the help block and on their glossary page; a photo from
   Commons carries its author and license, as the license asks. */
.glossary dt.has-photo { display: flex; align-items: center; gap: .65rem; }
.glossary dt.has-photo::before { content: none; }
.term-photo {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  object-fit: cover; background: var(--rule);
}
.term-credit { display: block; margin-top: .3rem; font: 400 .75rem/1.4 var(--mono); color: var(--muted); }
.term-credit a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.glossary-photo { margin: 1rem 0 0; }
.glossary-photo img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; background: var(--rule); }
.glossary-photo figcaption { margin-top: .35rem; font: 400 .75rem/1.4 var(--mono); color: var(--muted); }
.glossary-photo figcaption a { color: inherit; text-decoration: underline; }

/* Phones: everything a size or two smaller than on a big screen, where the same text reads
   comfortably (owner's wish, 2026-09-22) — the feed, the story, the pages of tags, models and
   sources. The pull quote follows the story text. */
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .item-title, .is-lead .ranked-title { font-size: 1.1875rem; }
  .item-summary, .ranked-summary { font-size: 1rem; }
  .ranked-title { font-size: 1rem; }
  .story-title { font-size: 1.7rem; }
  .story-lead { font-size: 1.0625rem; }
  .story-body { font-size: 1rem; }
  .head h1 { font-size: 1.875rem; }
  .source-head h1 { font-size: 1.75rem; }
  .mhead h1 { font-size: 1.75rem; }
  .source-about { font-size: 1rem; }
  .source-name { font-size: 1.125rem; }
  .tag-cloud { font-size: 1.375rem; }
  .trend .tag-cloud { font-size: 1.1875rem; }
  .model-name { font-size: 1.125rem; }
  .model-about { font-size: .9375rem; }
  /* A field under 16 px makes the iPhone zoom in on it, and the zoom stays. */
  input, select, textarea { font-size: max(1rem, 1em); }
}
