@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  --article-bg: #f7f7f8;
  --article-surface: #fff;
  --article-text: #202326;
  --article-muted: #687078;
  --article-border: #e2e4e7;
  --article-accent: #e8444d;
  --article-accent-soft: rgba(232, 68, 77, 0.09);
  --article-note: #f3f5f7;
}

html.dark-mode {
  --article-bg: #111315;
  --article-surface: #1a1d20;
  --article-text: #eceff1;
  --article-muted: #aeb5bb;
  --article-border: #30353a;
  --article-accent: #ff666e;
  --article-accent-soft: rgba(255, 102, 110, 0.12);
  --article-note: #22262a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--article-bg);
  color: var(--article-text);
  font-family: "Open Sans", sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--article-border);
  background: var(--article-surface);
  background: color-mix(in srgb, var(--article-surface) 94%, transparent);
  backdrop-filter: blur(12px);
}

.article-logo img {
  display: block;
  width: 104px;
  height: auto;
}

.article-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-theme-button,
.article-lang {
  height: 36px;
  border: 1px solid var(--article-border);
  border-radius: 9px;
  background: var(--article-surface);
  color: var(--article-text);
  cursor: pointer;
}

.article-theme-button {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.article-lang {
  padding: 0 10px;
  font-weight: 600;
}

.article-shell {
  width: min(940px, calc(100% - 32px));
  margin: 30px auto 56px;
}

.article-top-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.article-top-nav a {
  color: var(--article-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.article-top-nav a:hover,
.article-top-nav a:focus-visible {
  color: var(--article-accent);
}

.article-document {
  overflow: hidden;
  border: 1px solid var(--article-border);
  border-radius: 20px;
  background: var(--article-surface);
  box-shadow: 0 16px 48px rgba(20, 25, 30, 0.07);
}

.article-lead {
  padding: clamp(28px, 6vw, 64px) clamp(22px, 7vw, 72px) 30px;
}

.article-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--article-accent-soft);
  color: var(--article-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.article-lead h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.article-excerpt {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--article-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-hero {
  margin: 0;
  background: var(--article-accent-soft);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-body {
  padding: clamp(30px, 6vw, 64px) clamp(22px, 7vw, 72px);
  font-size: 16px;
  line-height: 1.78;
}

.article-body h2,
.article-body h3 {
  color: var(--article-text);
  line-height: 1.3;
  scroll-margin-top: 90px;
}

.article-body h2 {
  margin: 44px 0 16px;
  font-size: clamp(23px, 3vw, 30px);
}

.article-body h3 {
  margin: 30px 0 12px;
  font-size: clamp(18px, 2.4vw, 22px);
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body figure,
.article-body blockquote {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
  padding-left: 26px;
}

.article-body li + li {
  margin-top: 7px;
}

.article-body a {
  color: var(--article-accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--article-border);
  border-radius: 14px;
}

.article-body figcaption {
  margin-top: 9px;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.article-body blockquote,
.article-body .article-note,
.article-body .article-warning {
  padding: 18px 20px;
  border-left: 4px solid var(--article-accent);
  border-radius: 0 12px 12px 0;
  background: var(--article-note);
}

.article-body .article-warning {
  border-left-color: #e09b2d;
}

.article-body .table-wrap {
  margin-bottom: 24px;
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--article-border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--article-note);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(22px, 7vw, 72px) clamp(30px, 6vw, 64px);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--article-accent) 35%, var(--article-border));
  border-radius: 16px;
  background: var(--article-accent-soft);
}

.article-cta h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.article-cta p {
  margin: 0;
  color: var(--article-muted);
  line-height: 1.55;
}

.article-cta > a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--article-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.article-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 20px 16px 34px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.article-footer a {
  color: var(--article-muted);
  text-decoration: none;
}

.article-footer a:hover,
.article-footer a:focus-visible {
  color: var(--article-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .article-header {
    min-height: 56px;
    padding: 8px 14px;
  }

  .article-logo img {
    width: 92px;
  }

  .article-shell {
    width: min(100% - 20px, 940px);
    margin-top: 20px;
  }

  .article-top-nav {
    align-items: flex-start;
  }

  .article-document {
    border-radius: 15px;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-cta > a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .article-top-nav {
    flex-direction: column;
  }

  .article-footer {
    flex-direction: column;
    align-items: center;
  }
}

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