/* Izolenta Sans = Lato 2.015 subset (SIL OFL 1.1, see fonts/OFL.txt) */
@font-face {
  font-family: "Izolenta Sans";
  src: url("fonts/izolenta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Izolenta Sans";
  src: url("fonts/izolenta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Izolenta Sans";
  src: url("fonts/izolenta-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #292929;
  --text-muted: #595959;
  --text-faint: #999;
  --accent: #c33;
  --accent-dark: #a62929;
  --tape: #2f6fd6; /* classic blue insulating tape */
  --line: #eaeaea;
  --bg: #fff;
  --bg-soft: #f5f5f5;
  --font: "Izolenta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.4 var(--font);
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; transition: color .2s ease-out; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.header { border-bottom: 1px solid var(--line); }

.header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 14px;
}

.logo {
  position: relative;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.5px;
  color: var(--text);
  z-index: 0;
}
.logo::after {
  /* a strip of blue insulating tape across the wordmark */
  content: "";
  position: absolute;
  left: -4px;
  right: -6px;
  bottom: 2px;
  height: 11px;
  background: var(--tape);
  opacity: .38;
  transform: rotate(-2deg);
  z-index: -1;
}
.logo:hover { color: var(--text); }

.header__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 16px;
  text-align: right;
}
.header__date { color: var(--text-muted); font-weight: 700; }

.menu {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 12px;
}
.menu::-webkit-scrollbar { display: none; }

.menu__link {
  flex: none;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}
.menu__link.is-active { color: var(--accent); }

/* Banner shown after a redirect from a blocked site */

.banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.banner__close {
  flex: none;
  border: 0;
  background: none;
  color: #fff;
  font: 900 20px/1 var(--font);
  cursor: pointer;
  padding: 0 4px;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 40px;
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
}

.page-title {
  margin: 24px 0 0;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
}

.section-title {
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.meta {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 16px;
}
.meta__time { color: var(--text); font-weight: 700; margin-right: 6px; }
.meta__rubric { color: var(--accent); font-weight: 700; margin-right: 6px; }

/* Top story */

.card-big { display: block; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-big__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.card-big__title {
  display: block;
  margin: 8px 0 10px;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
}
.card-big__lead { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.45; }

/* Important list */

.important { margin-top: 24px; }
.card-medium { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-medium__title { display: block; margin: 4px 0 6px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.card-medium__lead { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.45; }

/* Latest news column */

.latest { align-self: start; }
.card-mini { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card-mini__title { display: block; margin-top: 2px; font-size: 15px; line-height: 1.25; }
.card-mini__source { color: var(--text-faint); font-size: 12px; }


/* Article */

.article { max-width: 760px; padding: 24px 0 40px; }
.article__title { margin: 10px 0 14px; font-weight: 900; font-size: 32px; line-height: 1.15; }
.article__lead { margin: 0 0 18px; font-weight: 700; font-size: 18px; line-height: 1.45; }
.article__image { display: block; width: 100%; max-height: 460px; object-fit: cover; margin: 0 0 18px; background: var(--bg-soft); }
.article__body p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; }

.source-link {
  display: inline-block;
  margin: 8px 0 28px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.source-link:hover { background: var(--accent-dark); color: #fff; }

/* States */

.state {
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 17px;
  text-align: center;
}
.state__button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font: 700 15px var(--font);
  cursor: pointer;
}
.state__link { color: var(--accent); }

/* Footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 24px;
  color: var(--text-faint);
  font-size: 12px;
}
.footer__link { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header__top { padding-top: 18px; }
  .logo { font-size: 26px; }
  .header__tagline { display: none; }
  .card-big__title { font-size: 24px; }
  .article__title { font-size: 26px; }
  .page-title { font-size: 24px; }
}

/* "ИИ" in the wordmark: the AI pun in ИИзоЛента */
.logo__ai { color: var(--accent); }

/* «Пишут в X» */

.posts-block {
  margin-bottom: 28px;
  padding: 14px 16px 6px;
  background: var(--bg-soft);
}
.posts-block .section-title a { color: inherit; }
.posts-block .section-title a:hover { color: var(--accent); }
.posts-block__note { margin: 6px 0 10px; color: var(--text-faint); font-size: 14px; }
.posts-block__more { display: inline-block; margin: 6px 0 10px; color: var(--accent); font-weight: 700; font-size: 14px; }

.post { padding: 12px 0; border-bottom: 1px solid var(--line); }
.posts-block .post { border-bottom-color: #e0e0e0; }
.post__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; line-height: 16px; }
.post__author { font-weight: 700; color: var(--text); }
.post__handle, .post__time { color: var(--text-faint); }
.post__text { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.post__link { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 13px; font-weight: 700; }

.posts-page { max-width: 760px; padding: 12px 0 40px; }
.posts-page .post__text { font-size: 16px; }

/* on the home page the block is a teaser: first paragraph, 4 lines; full text lives on #/x */
.posts-block .post__text:not(:first-of-type) { display: none; }
.posts-block .post__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* «Обсуждают на HN» */

.discussion { padding: 12px 0; border-bottom: 1px solid var(--line); }
.posts-block .discussion { border-bottom-color: #e0e0e0; }
.discussion__title { display: block; margin-top: 4px; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--text); }
.discussion__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.discussion__article { color: var(--text-muted); }
.hn-block .discussion__summary,
.habr-block .discussion__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* Hidden pipeline status page (#/status) */
.status-page { padding: 4px 0 40px; }
.status-summary { margin: 0 0 8px; color: var(--text-muted); }
.status-section { margin-top: 24px; }
.status-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.status-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.35; overflow-wrap: normal; }
.status-table th {
  padding: 6px 8px;
  border-bottom: 2px solid var(--line);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
}
.status-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-table th:first-child, .status-table td:first-child { padding-left: 0; }
.status-table td { white-space: nowrap; }
.status-table th { white-space: nowrap; }
.status-good { color: #2a7a3a; font-weight: 700; }
.status-bad { color: var(--accent); font-weight: 700; }
.status-muted { color: var(--text-faint); }
.status-error { display: block; min-width: 220px; max-width: 420px; color: var(--text-muted); font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.status-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.status-filter {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text-muted);
  font: 700 13px/1.2 var(--font);
  cursor: pointer;
}
.status-filter:hover { color: var(--accent); }
.status-filter.is-active { border-color: var(--text); background: var(--text); color: var(--bg); }
.material { max-width: 860px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.material__kind { color: var(--tape); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.material__title { display: block; margin-top: 4px; color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.3; }
.material__outcome { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: 13px; }
.material__outcome .post__link { margin-top: 0; }
.material__reason { color: var(--text-muted); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.chip--published { background: #e3f3e6; color: #1f6b2f; }
.chip--skipped { background: var(--bg-soft); color: var(--text-muted); }
.chip--problems { background: #fbe4e4; color: var(--accent-dark); }
