:root {
  --ink: #111516;
  --ink-soft: #1d2524;
  --paper: #f3f4ef;
  --paper-deep: #e8ece4;
  --white: #fffefa;
  --muted: #6d7670;
  --line: rgba(17, 21, 22, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --lime: #d8ff65;
  --coral: #ff745d;
  --blue: #8ebcff;
  --lavender: #c6b9ff;
  --shadow: 0 22px 55px rgba(18, 25, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(17, 21, 22, 0.86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  position: relative;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--lime);
  border-radius: 9px;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  display: block;
  width: 13px;
  height: 3px;
  content: "";
  background: var(--ink);
  border-radius: 3px;
  transform: rotate(-42deg);
}

.brand-mark::before {
  top: 9px;
  left: 7px;
}

.brand-mark i {
  top: 14px;
  left: 10px;
}

.brand-mark::after {
  top: 19px;
  left: 7px;
}

.brand-muted {
  color: rgba(255, 254, 250, 0.44);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: rgba(255, 254, 250, 0.68);
  font-size: 13px;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--ink) !important;
  background: var(--lime);
  border-radius: 999px;
  font-weight: 750;
}

.nav-github::after {
  display: none;
}

.nav-github svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.menu-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 7px 11px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: 690px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 28%, rgba(216, 255, 101, 0.12), transparent 23rem),
    radial-gradient(circle at 6% 80%, rgba(142, 188, 255, 0.12), transparent 25rem),
    var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-position: center;
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero::after {
  position: absolute;
  top: 110px;
  right: -100px;
  width: 460px;
  height: 460px;
  content: "";
  border: 1px solid rgba(216, 255, 101, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(216, 255, 101, 0.035),
    0 0 0 84px rgba(216, 255, 101, 0.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 140px 0 76px;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(48px, 8vw, 112px);
}

.hero-copy {
  width: 100%;
  min-width: 0;
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 101, 0.12);
}

.hero h1 {
  max-width: 680px;
  margin: 25px 0 22px;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 254, 250, 0.68);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--lime);
}

.button-primary:hover {
  background: #e6ff8b;
}

.button-ghost {
  color: var(--white);
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.03);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  background: var(--ink-soft);
}

.button svg,
.card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: rgba(255, 254, 250, 0.42);
  font-size: 12px;
}

.hero-footnote .mini-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(216, 255, 101, 0.5);
  border-radius: 50%;
}

.console-area {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.console-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(30, 38, 37, 0.86);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.window-bar {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-light);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.window-dots i:nth-child(1) {
  background: var(--coral);
}

.window-dots i:nth-child(2) {
  background: #f4c861;
}

.window-dots i:nth-child(3) {
  background: var(--lime);
}

.window-title {
  color: rgba(255, 254, 250, 0.4);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.window-status {
  display: inline-flex;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}

.console-body {
  min-height: 350px;
  padding: 27px 28px 30px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.console-label {
  margin: 0 0 24px;
  color: rgba(255, 254, 250, 0.38);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.code-line {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  margin: 14px 0;
  color: rgba(255, 254, 250, 0.78);
  font-size: 13px;
}

.code-line > span:first-child {
  color: rgba(255, 254, 250, 0.25);
  user-select: none;
}

.code-line .code-key {
  color: var(--blue);
}

.code-line .code-muted {
  color: rgba(255, 254, 250, 0.42);
}

.code-line strong {
  color: var(--lime);
  font-weight: 500;
}

.console-divider {
  height: 1px;
  margin: 27px 0 23px 42px;
  background: var(--line-light);
}

.result-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  color: rgba(255, 254, 250, 0.72);
  background: rgba(216, 255, 101, 0.08);
  border-left: 2px solid var(--lime);
  font-size: 12px;
}

.result-line strong {
  color: var(--lime);
  font-weight: 500;
}

.terminal-caret {
  color: var(--lime);
}

.console-note {
  display: flex;
  max-width: 280px;
  align-items: flex-start;
  gap: 11px;
  margin: -27px 0 0 -28px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 15px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  transform: rotate(-3deg);
}

.note-index {
  color: rgba(17, 21, 22, 0.5);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.stats-strip {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 18px;
  padding: 24px 30px;
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 1;
}

.stat span {
  max-width: 115px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section {
  padding: 116px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 45px;
}

.section-heading h2 {
  max-width: 650px;
  margin: 16px 0 0;
  font-size: clamp(2.35rem, 4.5vw, 4.4rem);
  font-weight: 730;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.section-heading > p {
  max-width: 330px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-eyebrow {
  color: var(--coral);
}

.directory-section {
  background: var(--paper);
}

.directory-shell {
  border-top: 1px solid var(--line);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.search-field {
  position: relative;
  display: flex;
  width: min(420px, 100%);
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 1.8;
  fill: none;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 8px 15px 8px 40px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #9aa19a;
}

.search-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 21, 22, 0.08);
}

.directory-options {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sort-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.sort-field select {
  height: 38px;
  padding: 6px 28px 6px 11px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  font-size: 12px;
}

.sort-field select:focus {
  border-color: var(--ink);
}

.view-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--paper-deep);
  border-radius: 999px;
}

.view-button {
  display: inline-flex;
  width: 34px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.view-button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(17, 21, 22, 0.08);
}

.view-button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.filter-row {
  display: flex;
  min-height: 65px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-label {
  flex-shrink: 0;
  color: #9aa19a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button,
.clear-filters {
  min-height: 31px;
  padding: 5px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.filter-button:hover,
.clear-filters:hover {
  color: var(--ink);
  border-color: var(--line);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.clear-filters {
  margin-left: auto;
  color: var(--coral);
  white-space: nowrap;
}

.directory-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.directory-status span:first-child {
  color: var(--ink);
  font-weight: 700;
}

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

.project-card {
  --accent: #a9d63e;
  --accent-soft: #ebfac5;
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 21px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--accent);
}

.project-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card--coral {
  --accent: #ff745d;
  --accent-soft: #ffe0d9;
}

.project-card--blue {
  --accent: #5e91cf;
  --accent-soft: #dfeaff;
}

.project-card--lavender {
  --accent: #9b8ce7;
  --accent-soft: #e9e3ff;
}

.project-card--teal {
  --accent: #65bca2;
  --accent-soft: #d9f3e8;
}

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 29px;
}

.project-number,
.project-category,
.project-meta,
.project-tag {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-number {
  color: #9aa19a;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.project-category {
  padding: 4px 8px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.2;
}

.project-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.project-mark {
  position: relative;
  display: flex;
  min-height: 108px;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 14px 0 18px;
  overflow: hidden;
  padding: 12px 17px;
  background: var(--accent-soft);
  border-radius: 13px;
}

.project-mark::before {
  position: absolute;
  top: -16px;
  left: 14px;
  color: var(--accent);
  content: attr(data-mark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 74px;
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 1;
  opacity: 0.34;
}

.project-mark::after {
  position: absolute;
  top: 18px;
  right: 19%;
  width: 82px;
  height: 82px;
  content: "";
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.65;
  transform: skewX(-21deg);
}

.mark-line {
  position: relative;
  z-index: 1;
  display: block;
  width: 54%;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
  transform: rotate(-13deg);
  transform-origin: right;
}

.mark-dot {
  position: absolute;
  z-index: 2;
  right: 16%;
  bottom: 23px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent);
}

.project-card-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.meta-divider {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.project-card h3 {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1.15;
}

.project-kicker {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.project-description {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.project-tag {
  padding: 4px 7px;
  color: var(--muted);
  background: var(--paper);
  border-radius: 5px;
  font-size: 9px;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.project-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 10px;
}

.project-grid[data-view="list"] .project-card {
  display: grid;
  min-height: 0;
  align-items: center;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  column-gap: 22px;
  padding: 14px 18px;
}

.project-grid[data-view="list"] .project-card-head {
  grid-column: 2;
  grid-row: 1;
}

.project-grid[data-view="list"] .project-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 92px;
  margin: 0;
}

.project-grid[data-view="list"] .project-card-info {
  grid-column: 2;
  grid-row: 2;
}

.project-grid[data-view="list"] .project-card-info h3 {
  display: inline;
  margin-right: 8px;
}

.project-grid[data-view="list"] .project-kicker {
  display: inline;
}

.project-grid[data-view="list"] .project-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.project-grid[data-view="list"] .project-tags {
  display: none;
}

.project-grid[data-view="list"] .project-card-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
}

.card-link {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.card-link:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.card-link--primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.card-link--primary:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.directory-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.load-more {
  min-height: 36px;
  padding: 7px 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.load-more:hover {
  color: var(--white);
  background: var(--ink);
}

.directory-hint {
  color: #9aa19a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.empty-state {
  display: flex;
  min-height: 245px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 30px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state .button {
  margin-top: 13px;
}

.guides-section {
  color: var(--white);
  background: var(--ink);
}

.guides-section .section-heading h2 {
  color: var(--white);
}

.guides-section .section-heading > p {
  color: rgba(255, 254, 250, 0.56);
}

.guide-toolbar {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr minmax(270px, 350px) auto;
  gap: 20px;
  margin-bottom: 24px;
}

.guide-caption {
  margin: 0;
  color: rgba(255, 254, 250, 0.4);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.search-field--dark input {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.search-field--dark svg {
  stroke: rgba(255, 254, 250, 0.46);
}

.search-field--dark input::placeholder {
  color: rgba(255, 254, 250, 0.38);
}

.search-field--dark input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 101, 0.12);
}

.topic-count {
  min-width: 72px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.topic-card:hover {
  background: rgba(216, 255, 101, 0.1);
  border-color: rgba(216, 255, 101, 0.42);
  transform: translateY(-3px);
}

.topic-index {
  color: rgba(255, 254, 250, 0.35);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.topic-card strong {
  margin-top: auto;
  color: var(--white);
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.topic-card small {
  margin-top: 3px;
  color: rgba(255, 254, 250, 0.44);
  font-size: 11px;
}

.topic-arrow {
  position: absolute;
  top: 17px;
  right: 16px;
  display: inline-flex;
  color: var(--lime);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.topic-card:hover .topic-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.topic-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.no-results {
  margin: 24px 0 0;
  color: rgba(255, 254, 250, 0.58);
  font-size: 14px;
}

.method-section {
  padding-top: 110px;
  padding-bottom: 128px;
}

.method-panel {
  display: grid;
  padding: clamp(28px, 5vw, 60px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 116, 93, 0.28), transparent 22rem),
    #315d8f;
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(250px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(42px, 8vw, 110px);
}

.method-panel .section-eyebrow {
  color: var(--lime);
}

.method-panel h2 {
  max-width: 430px;
  margin: 16px 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 1.08;
}

.method-panel > div > p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 254, 250, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.method-panel .button {
  margin-top: 28px;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  grid-template-columns: 50px 1fr;
  gap: 18px;
}

.method-list li:first-child {
  padding-top: 0;
}

.method-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.method-number {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.method-list h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 680;
}

.method-list p {
  margin: 5px 0 0;
  color: rgba(255, 254, 250, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  padding: 32px 0 36px;
  color: rgba(255, 254, 250, 0.56);
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  font-size: 12px;
}

.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-main {
  padding-bottom: 24px;
}

.footer-main .brand {
  color: var(--white);
}

.footer-copy {
  margin: 13px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  padding-top: 19px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 254, 250, 0.32);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.reveal {
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 701px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.8rem);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .container,
  .hero-inner {
    width: calc(100% - 36px);
    max-width: 560px;
  }

  .site-header.is-scrolled {
    background: rgba(17, 21, 22, 0.95);
  }

  .nav-wrap {
    min-height: 70px;
  }

  .menu-toggle {
    position: absolute;
    top: 17px;
    right: 0;
    display: inline-flex !important;
    visibility: visible;
    opacity: 1;
  }

  .nav-links {
    position: absolute;
    top: 63px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 9px;
    background: rgba(29, 37, 36, 0.98);
    border: 1px solid var(--line-light);
    border-radius: 17px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-github {
    margin-top: 5px;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    display: block;
    padding-top: 128px;
    padding-bottom: 67px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 21px;
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero-lead {
    max-width: 100%;
    font-size: 15px;
  }

  .console-area {
    max-width: 480px;
    margin: 57px auto 0;
  }

  .stats {
    width: 100%;
  }

  .stat {
    min-height: 104px;
    gap: 9px;
    padding: 19px 13px;
  }

  .stat:first-child {
    padding-left: 0;
  }

  .stat strong {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .stat span {
    font-size: 11px;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .section-heading > p {
    max-width: 500px;
    margin-top: 21px;
  }

  .directory-toolbar {
    display: block;
    padding: 14px 0;
  }

  .directory-toolbar > .search-field {
    width: 100%;
  }

  .directory-options {
    justify-content: space-between;
    margin-top: 13px;
  }

  .filter-row {
    display: block;
    padding: 15px 0;
  }

  .filter-buttons {
    margin-top: 10px;
  }

  .clear-filters {
    margin-top: 7px;
    margin-left: 0;
    padding-left: 0;
  }

  .directory-status {
    min-height: 52px;
  }

  .project-grid {
    display: block;
  }

  .project-card {
    min-height: 405px;
    margin-top: 12px;
  }

  .project-card:first-child {
    margin-top: 0;
  }

  .project-grid[data-view="list"] .project-card {
    display: flex;
  }

  .directory-footer {
    display: block;
    padding: 22px 0 0;
    text-align: center;
  }

  .directory-hint {
    display: block;
    margin-top: 13px;
  }

  .guide-toolbar {
    display: block;
  }

  .guide-toolbar .search-field {
    width: 100%;
    margin-top: 17px;
  }

  .topic-count {
    display: block;
    margin-top: 10px;
    text-align: left;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card {
    min-height: 135px;
  }

  .method-section {
    padding-top: 76px;
    padding-bottom: 84px;
  }

  .method-panel {
    display: block;
    padding: 29px 23px;
  }

  .method-panel h2 {
    font-size: clamp(2.3rem, 11vw, 3.7rem);
  }

  .method-list {
    margin-top: 49px;
  }

  .footer-main,
  .footer-bottom {
    display: block;
  }

  .footer-links {
    margin-top: 19px;
  }

  .footer-bottom span + span {
    display: block;
    margin-top: 10px;
  }
}

@media (max-width: 380px) {
  .container,
  .hero-inner {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 11px;
  }

  .stats {
    display: block;
  }

  .stat,
  .stat:first-child,
  .stat:last-child {
    min-height: 76px;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .console-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .code-line {
    grid-template-columns: 23px 1fr;
    gap: 9px;
    font-size: 11px;
  }

  .console-divider {
    margin-left: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
