@import url("/assets/fonts/fonts.css");

:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --panel: #faf9f5;
  --ink: #171816;
  --muted: #66685f;
  --lime: #c9ff36;
  --line: rgba(23, 24, 22, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Golos Text",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(120deg, #000, transparent 80%);
}
a {
  color: inherit;
}
.shell {
  width: min(1180px, calc(100% - 44px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.mark {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.16em;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}
.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.back:hover {
  color: var(--ink);
}
main {
  padding: clamp(52px, 8vw, 110px) 0 90px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero {
  max-width: 970px;
}
.hero h1,
.category-head h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}
.hero p,
.category-head p {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}
.category-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(250, 249, 245, 0.8);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}
.category-card:nth-child(1),
.category-card:nth-child(6) {
  background: var(--lime);
}
.number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.category-count {
  position: absolute;
  top: 31px;
  right: 82px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 20px;
}
.category-card h2 {
  max-width: 13ch;
  margin: auto 0 12px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
.category-card p {
  max-width: 47ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.category-head {
  max-width: 950px;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}
.topic {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}
.empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  margin-top: 70px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(250, 249, 245, 0.78);
  text-align: center;
}
.empty h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
}
.empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.contact-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 72px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: var(--lime);
}
.contact-banner:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(23, 24, 22, 0.24);
  border-radius: 50%;
}
.contact-banner h2 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}
.button span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }
  .site-header {
    min-height: 74px;
  }
  .header-links a:first-child {
    display: none;
  }
  main {
    padding-top: 44px;
  }
  .hero h1,
  .category-head h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
  .category-grid,
  .contact-banner {
    grid-template-columns: 1fr;
  }
  .category-grid {
    margin-top: 46px;
  }
  .category-card {
    min-height: 250px;
  }
  .contact-banner {
    align-items: start;
    border-radius: 22px;
  }
  .contact-banner .button {
    justify-self: start;
  }
  .site-footer span:last-child {
    display: none;
  }
}
.article-list {
  display: grid;
  gap: 16px;
  margin-top: 72px;
}
.article-card {
  position: relative;
  display: block;
  min-height: 330px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.article-card:hover {
  transform: translateY(-3px);
}
.article-card h2 {
  max-width: 15ch;
  margin: 50px 0 20px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.article-card > div > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.article-arrow {
  position: absolute;
  right: 30px;
  top: 30px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 23px;
}
.article-main {
  padding-top: 34px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 64px;
  color: var(--muted);
  font-size: 13px;
}
.article-head {
  max-width: 1060px;
}
.article-head h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}
.article-head .lead {
  max-width: 820px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
  margin-top: 88px;
}
.article-layout > *,
.article-body,
.article-toc {
  min-width: 0;
}
.article-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.article-toc strong {
  margin-bottom: 5px;
  color: var(--ink);
}
.article-toc a {
  text-decoration: none;
}
.article-toc a:hover {
  color: var(--ink);
}
.article-body {
  font-size: 18px;
  line-height: 1.72;
}
.article-body > p:first-child {
  margin-top: 0;
}
.article-body h2 {
  margin: 72px 0 20px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
  scroll-margin-top: 24px;
}
.article-body h3 {
  margin: 38px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body code,
.article-body pre {
  width: 100%;
  max-width: 100%;
  font-family:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
.article-body pre code {
  display: block;
  width: max-content;
  min-width: 100%;
}
.article-table-wrap {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.article-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.article-body th,
.article-body td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  font-size: 13px;
}
.article-body tr:last-child td {
  border-bottom: 0;
}
.article-body :not(pre) > code {
  padding: 0.13em 0.32em;
  border-radius: 5px;
  background: rgba(23, 24, 22, 0.07);
  font-size: 0.88em;
}
.article-body pre {
  margin: 28px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.65;
}
.article-callout {
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--lime);
}
.article-callout p {
  margin: 0;
}
.article-sources {
  margin-top: 68px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.article-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-top: 88px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
}
.article-tool h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.article-tool p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
}
.article-tool .button {
  text-decoration: none;
}

.eyebrow,
.number,
.category-count,
.topic,
.site-footer {
  font-family:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 760px) {
  .article-list {
    margin-top: 46px;
  }
  .article-card {
    min-height: 300px;
    border-radius: 22px;
  }
  .article-card h2 {
    margin-top: 70px;
  }
  .article-main {
    padding-top: 28px;
  }
  .breadcrumbs {
    margin-bottom: 46px;
  }
  .article-head h1 {
    font-size: clamp(40px, 10vw, 54px);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 58px;
  }
  .article-toc {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .article-body {
    font-size: 17px;
  }
  .article-body h2 {
    margin-top: 58px;
  }
  .article-tool {
    grid-template-columns: 1fr;
  }
  .article-tool .button {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }
  .site-header {
    gap: 12px;
  }
  .back {
    max-width: 58%;
    text-align: right;
  }
  main {
    padding-bottom: 64px;
  }
  .hero h1,
  .category-head h1,
  .article-head h1 {
    font-size: clamp(42px, 13vw, 58px);
  }
  .article-head h1 {
    font-size: clamp(38px, 10.5vw, 46px);
  }
  .category-card,
  .article-card,
  .empty,
  .article-tool,
  .contact-banner {
    padding: 24px;
  }
  .article-card h2 {
    font-size: 36px;
  }
  .article-body {
    font-size: 16px;
    line-height: 1.65;
  }
  .article-body pre {
    margin-inline: 0;
    padding: 16px;
    font-size: 12px;
  }
  .contact-banner .button,
  .article-tool .button {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
