/* Krakenvhod2026 — mono / editorial UI (фон без шума и псевдо-сетки) */

@property --border-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;
  --max: 70rem;
  --radius: 2px;
  --radius-lg: 10px;
  --space: 1.35rem;

  --paper: #000000;
  --paper-2: #0b0b0b;
  --ink: #f4f3f0;
  --ink-soft: rgba(244, 243, 240, 0.62);
  --ink-muted: rgba(244, 243, 240, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --accent: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
  color-scheme: light;
  --paper: #f7f6f3;
  --paper-2: #eceae5;
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, 0.58);
  --ink-muted: rgba(10, 10, 10, 0.58);
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.28);
  --accent: #000000;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.04rem;
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
}

  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}

[data-theme="light"] ::selection {
  background: rgba(0, 0, 0, 0.12);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, transparent, var(--ink) 35%, var(--ink));
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  border-color: var(--line-strong);
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.9rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  z-index: 300;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .site-header {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

/* Лого: контрастный «медальон», силуэт Kraken всегда читается */
.brand-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f2f1ed;
  color: #080808;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 14px 36px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .brand-mark-wrap {
  background: #0c0c0c;
  color: #f6f5f1;
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.brand-svg {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

[data-theme="light"] .brand-svg {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-spacer {
  flex: 1 1 auto;
  min-width: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.02) 46%,
    rgba(0, 0, 0, 0.12) 100%
  );
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.theme-toggle__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  width: 1.35rem;
  height: 1.35rem;
}

.theme-toggle__ico svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle__lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .theme-toggle {
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 520px) {
  .theme-toggle__lbl {
    display: none;
  }

  .theme-toggle {
    padding: 0.42rem 0.65rem;
  }
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

[data-theme="light"] .site-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--space) 5rem;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.75rem 1.85rem 2.5rem;
  margin: 0.5rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 42%);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.06);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .hero h1 {
    max-width: 18ch;
  }
}

.hero .lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  font-weight: 450;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .pill {
  background: rgba(0, 0, 0, 0.03);
}

.pill.warn {
  border-style: dashed;
}

/* Главная: крупные карточки-якоря к разделам */
.highlight-strip {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.25rem;
}

@media (min-width: 840px) {
  .highlight-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.hlt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem 1.45rem;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--paper-2) 82%, transparent) 0%,
    color-mix(in srgb, var(--paper) 55%, transparent) 100%
  );
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .hlt-card {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.hlt-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
}

[data-theme="light"] .hlt-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .hlt-card:hover {
    transform: none;
  }
}

.hlt-card:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.hlt-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hlt-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hlt-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.quick-links-lede {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.quick-links-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.panel--section {
  margin-top: 1.75rem;
}

.panel--section h3:first-of-type {
  margin-top: 0;
}

.layout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .layout-grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .layout-grid.sidebar {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    align-items: start;
    gap: 2rem;
  }
}

/* Карточки: вращающийся conic только по рамке (маска) — редко кто так делает */
.panel {
  --border-spin: 0deg;
  position: relative;
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: panel-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.panel:nth-child(1) {
  animation-delay: 0.05s;
}
.panel:nth-child(2) {
  animation-delay: 0.1s;
}
.panel:nth-child(3) {
  animation-delay: 0.15s;
}
.panel:nth-child(4) {
  animation-delay: 0.2s;
}
.panel:nth-child(5) {
  animation-delay: 0.25s;
}
.panel:nth-child(6) {
  animation-delay: 0.3s;
}
.panel:nth-child(7) {
  animation-delay: 0.35s;
}
.panel:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-spin),
    transparent 0deg,
    rgba(255, 255, 255, 0.45) 40deg,
    transparent 80deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

[data-theme="light"] .panel::before {
  background: conic-gradient(
    from var(--border-spin),
    transparent 0deg,
    rgba(0, 0, 0, 0.35) 45deg,
    transparent 85deg,
    transparent 360deg
  );
}

.panel:hover::before {
  animation: border-whisper 6s linear infinite;
  opacity: 0.75;
}

@keyframes border-whisper {
  to {
    --border-spin: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel:hover::before {
    animation: none;
  }
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.panel p:last-child {
  margin-bottom: 0;
}

.verify {
  border-left: 2px solid var(--ink);
  padding: 1rem 1.1rem;
  margin: 1.1rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
}

[data-theme="light"] .verify {
  background: rgba(0, 0, 0, 0.04);
}

.verify strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.code-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: #000;
  color: #f0f0ec;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  word-break: break-all;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .code-block {
  background: #0a0a0a;
  color: #fafaf8;
}

.code-block::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 9px
  );
  pointer-events: none;
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .btn.secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.2rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.inline-list {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.inline-list li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
  padding: 2.75rem var(--space) 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 2.5rem;
  }
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-lead {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 36rem;
}

.footer-lead--short {
  max-width: 28rem;
}

.footer-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .footer-col {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line-strong);
}

.footer-links a:hover {
  border-bottom-color: var(--ink);
}

aside.toc {
  position: sticky;
  top: 5.25rem;
}

aside.toc.panel {
  padding: 1.15rem 1.25rem;
}

aside.toc h2 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

aside.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

aside.toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

aside.toc a:hover,
aside.toc a[data-active="true"] {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .hero::before,
  .hero::after {
    width: 1.75rem;
    height: 1.75rem;
  }
}


@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-spacer {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 10;
    flex-basis: 100%;
    width: 100%;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  aside.toc {
    position: static;
  }
}

/* DM Mono fallback if not loaded — use ui-monospace */
@supports (font-variation-settings: normal) {
  .code-block,
  .steps li::before {
    font-feature-settings: "ss01" 1;
  }
}
