:root {
  --bg: #080a0d;
  --panel: #121820;
  --paper: #f4efe5;
  --paper-2: #fffaf1;
  --ink: #111418;
  --text: #f7f4ea;
  --muted: #aab4c1;
  --muted-dark: #5a6470;
  --line: rgba(255, 255, 255, .13);
  --dark-line: rgba(17, 20, 24, .14);
  --lime: #b9ff26;
  --cyan: #5ad9df;
  --rust: #9c351f;
  --red: #651613;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(185, 255, 38, .08), transparent 28%),
    linear-gradient(225deg, rgba(90, 217, 223, .08), transparent 32%),
    linear-gradient(180deg, #080a0d 0%, #111821 54%, #080a0d 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 78px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.4vw, 30px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 10, 13, .86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand span {
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 244, 234, .72);
  font-size: 14px;
  font-weight: 900;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 950;
  text-align: center;
}

.btn.ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
}

.hero {
  padding: clamp(54px, 8vw, 96px) 0 clamp(48px, 7vw, 78px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.lead {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(247, 244, 234, .74);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  overflow: hidden;
  background: #140b0a;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.hero-visual figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(8, 10, 13, .78);
  color: rgba(247, 244, 234, .78);
  font-size: 14px;
  font-weight: 850;
}

.paper {
  background: var(--paper);
  color: var(--ink);
}

.section {
  padding: clamp(54px, 8vw, 88px) 0;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(260px, .55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.paper .kicker {
  color: var(--rust);
}

.paper .lead {
  color: var(--muted-dark);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(8, 10, 13, .06);
}

.article-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.article-card small,
.meta {
  color: var(--rust);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 25px;
}

.article-card p {
  color: var(--muted-dark);
  font-weight: 760;
}

.article-card span {
  margin-top: auto;
  color: var(--ink);
  font-weight: 950;
}

.route-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.route,
.note {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 22px;
}

.route b,
.note b {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.route p,
.note p {
  margin: 0;
  color: rgba(247, 244, 234, .7);
  font-weight: 800;
}

.article-shell {
  padding: clamp(42px, 6vw, 76px) 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(247, 244, 234, .64);
  font-size: 14px;
  font-weight: 850;
}

.breadcrumbs a {
  color: rgba(247, 244, 234, .84);
}

.article-head {
  margin-bottom: 34px;
}

.article-head .lead {
  max-width: 850px;
}

.article-figure {
  margin: 0 0 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.article-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 12px 14px;
  color: rgba(247, 244, 234, .68);
  font-size: 14px;
  font-weight: 800;
}

.prose {
  color: rgba(247, 244, 234, .84);
  font-size: 19px;
}

.prose h2 {
  margin-top: 44px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
}

.prose h3 {
  margin-top: 30px;
  color: #fff;
  font-size: 25px;
}

.prose p,
.prose li {
  color: rgba(247, 244, 234, .78);
}

.prose strong {
  color: #fff;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.toc {
  position: sticky;
  top: 94px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 18px;
}

.toc b {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: rgba(247, 244, 234, .72);
  font-size: 14px;
  font-weight: 850;
}

.cta-band {
  margin-top: 46px;
  padding: 28px;
  border: 1px solid rgba(185, 255, 38, .26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(185, 255, 38, .14), rgba(90, 217, 223, .08));
}

.cta-band p {
  max-width: 760px;
  color: rgba(247, 244, 234, .76);
  font-weight: 800;
}

.footer {
  padding: 34px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(247, 244, 234, .64);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero-grid,
  .split-head,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .route-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    position: relative;
  }

  .nav {
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .nav > .btn {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 330px;
  }

  .article-figure img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
