:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f0;
  --muted: rgba(245, 245, 240, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --lime: #dcff65;
  --black: #050505;
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 255, 101, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 24%, rgba(220, 255, 101, 0.08), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 99;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  padding: 12px 16px;
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.blog-header,
.blog-footer {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.blog-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 148px;
  height: auto;
  display: block;
}

.blog-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.blog-header nav a:hover,
.blog-header nav a:focus-visible {
  color: var(--text);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  padding: 0 18px;
  font-weight: 900;
}

.hero,
.blog-controls,
.blog-list,
.article-shell,
.related {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.hero h1,
.article-header h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero p,
.article-description {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.blog-controls {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.blog-controls label {
  display: grid;
  gap: 9px;
}

.blog-controls label span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-controls input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 20px;
  font: inherit;
  outline: none;
}

.blog-controls input:focus {
  border-color: rgba(220, 255, 101, 0.7);
  box-shadow: 0 0 0 4px rgba(220, 255, 101, 0.12);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-filter button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.category-filter button.is-active,
.category-filter button:hover,
.category-filter button:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--black);
}

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

.article-card,
.answer-box,
.toc,
.related-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.article-card {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.article-card[hidden] {
  display: none;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 20px;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.article-card span,
.article-meta span,
.article-card-meta time,
.article-meta time,
.article-meta .article-author {
  width: fit-content;
  border: 1px solid rgba(220, 255, 101, 0.34);
  border-radius: 999px;
  color: var(--lime);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-card-meta time,
.article-meta time,
.article-meta .article-author {
  border-color: var(--line);
  color: var(--muted);
}

.article-meta .article-author:hover {
  border-color: rgba(220, 255, 101, 0.55);
  color: var(--lime);
}

.article-card h2 {
  margin: 28px 0 14px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.article-hero-image {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto 42px;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.article-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.6;
}

.article-card a {
  width: fit-content;
  margin-top: 22px;
  color: var(--lime);
  font-weight: 900;
}

.empty-results {
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.article-header {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding: 74px 0 34px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding-bottom: 84px;
}

.article-content {
  max-width: 780px;
}

.article-content h2 {
  margin: 50px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  color: rgba(245, 245, 240, 0.78);
  font-size: 19px;
  line-height: 1.75;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.answer-box {
  margin: 34px 0;
  padding: 26px;
}

.answer-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.toc,
.side-card {
  padding: 22px;
}

.toc strong,
.side-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc a,
.side-card a {
  display: block;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
}

.side-card a:hover,
.toc a:hover {
  color: var(--text);
}

.latest-side a {
  display: grid;
  gap: 5px;
}

.latest-side a span,
.related-card span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latest-side a strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.cta-box {
  margin: 54px 0 0;
  border-radius: 28px;
  background: var(--lime);
  color: var(--black);
  padding: 30px;
}

.cta-box p {
  color: rgba(5, 5, 5, 0.72);
}

.related {
  padding-bottom: 80px;
}

.related-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.related-card {
  padding: 24px;
}

.related-card h3 {
  line-height: 1.15;
}

.related-card p {
  color: var(--muted);
  line-height: 1.55;
}

.related-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--lime);
  font-weight: 900;
}

.blog-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.blog-footer img {
  width: 150px;
}

.blog-footer > div {
  display: grid;
  gap: 5px;
  text-align: right;
}

.blog-footer small {
  font-size: 12px;
}

@media (max-width: 900px) {
  .blog-header {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .blog-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .article-grid,
  .article-shell,
  .blog-controls,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-header,
  .blog-footer,
  .hero,
  .blog-controls,
  .blog-list,
  .article-header,
  .article-hero-image,
  .article-shell,
  .related {
    width: calc(100% - 32px);
  }

  .button {
    width: 100%;
  }

  .blog-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0;
  }

  .blog-footer > div {
    text-align: left;
  }
}
