:root {
  color-scheme: dark;
  --page: #171b2a;
  --page-deep: #111625;
  --shell: #202a3b;
  --line: #3a465b;
  --text: #f7f8fb;
  --muted: #aeb8cb;
  --orange: #ff8426;
  --orange-soft: rgba(255, 132, 38, 0.15);
  --code: #ffd2af;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(70, 88, 120, 0.22), transparent 34%),
    linear-gradient(135deg, var(--page-deep), #211b2b 62%, #111827);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.shell {
  min-width: 0;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(32, 42, 59, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 4px 14px;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 132, 38, 0.45);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 {
  min-width: 0;
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 6vw, 3.2rem);
  line-height: 1.08;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lede {
  min-width: 0;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.note {
  margin: 0 0 28px;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 132, 38, 0.28);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.article {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.article h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.article p,
.article li {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.article p {
  margin: 0;
}

.article ol,
.article ul {
  margin: 0;
  padding-left: 1.25rem;
}

.article li + li {
  margin-top: 0.45rem;
}

.card {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(174, 184, 203, 0.2);
  border-radius: 16px;
}

.card strong {
  color: var(--text);
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  color: var(--code);
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 132, 38, 0.2);
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  color: inherit;
}

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

.metric {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(174, 184, 203, 0.18);
  border-radius: 12px;
}

.metric span {
  display: block;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 20px, 920px);
    padding: 12px 0 28px;
  }

  .shell {
    padding: 22px 16px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(2.35rem, 9vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
