:root {
  --cream: #f8fafc;
  --stone-50: #f1f5f9;
  --stone-100: #e2e8f0;
  --stone-300: #94a3b8;
  --stone-500: #64748b;
  --stone-700: #334155;
  --ink: #0f172a;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-mid: #60a5fa;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.10), 0 12px 32px rgba(15, 23, 42, 0.08);
}
/* Hero */
html { scroll-behavior: smooth; }
.section { scroll-margin-top: 90px; }

.rh {
  max-width: 1200px;
  margin: 0 auto 25px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.rh__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rh h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rh p {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--stone-500);
}

.rh__links { display: flex; flex-wrap: wrap; gap: 10px; }
.rh__links a {
  padding: 10px 16px;
  border: 1px solid var(--stone-100);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.rh__links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.rh__links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Code panel */
.rh__panel {
  padding: 26px 28px;
  background: var(--ink);
  border-radius: 16px;
  box-shadow: var(--card-shadow-hover);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 2;
  color: #d5dbea;
  overflow-x: auto;
}
.rh__row { white-space: nowrap; }
.rh__row + .rh__row { border-top: 1px dashed rgba(255, 255, 255, .08); }
.t-key  { color: #ffb86b; }
.t-sel  { color: #7fe0b5; }
.t-prop { color: #8fb4ff; }
.t-fn   { color: #7fe0b5; }
.t-val  { color: #ff9ab0; }
.t-dim  { color: #64748b; }

@media (max-width: 991px) {
  .rh { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
}

  .section {
    max-width: 1200px;
    margin: 0 auto 56px;
  }

  .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stone-100);
  }

  .section-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .section-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .section-title {
	margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.01em;
	line-height: 1;
  }

  .section-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--stone-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  @media (max-width: 768px) {
    .section .grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 480px) {
    .section .grid { grid-template-columns: 1fr; }
  }

  .section .card {
    background: #fff;
    border: 1px solid var(--stone-100);
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .section .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .section .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--stone-100);
  }

  .section .card:hover::before {
    opacity: 1;
  }

  .section .card h5 {
    font-weight: 500;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--accent);
  }

  .section .card h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
  }

  .section .card h5 a::after {
    content: '';
    position: absolute;
    inset: 0;
  }

  .section .card p {
    font-size: 14px;
    color: var(--stone-500);
    line-height: 1.55;
    margin: 0;
  }