:root {
  --ink: #222222;
  --paper: #f9f9f9;
  --muted: #666666;
  --line: rgba(34, 34, 34, 0.18);
  --panel: #ededed;
  --accent: #d3caff;
  --content: 1290px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--noise);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.article-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px clamp(14px, 2.5vw, 30px) 0;
}

.article-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(100%, var(--content));
  min-height: 70px;
  margin: 0 auto;
  padding: 8px 12px 8px 20px;
  border: 1px solid rgba(237, 237, 237, 0.35);
  border-radius: 38px;
  background: var(--ink);
  color: #ededed;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.article-logo {
  display: inline-flex;
  align-items: center;
  width: 38px;
  text-decoration: none;
}

.article-logo img {
  width: 38px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.article-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 55px);
}

.article-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

.article-contact,
.article-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.article-contact span,
.article-back-link span { font-size: 18px; line-height: 1; }

.article-contact:hover,
.article-contact:focus-visible {
  background: #ededed;
  color: var(--ink);
}

.article-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid #ededed;
  border-radius: 50%;
  background: transparent;
  color: #ededed;
  cursor: pointer;
}

.article-menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.article-menu-button[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.article-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.article-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.article-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 44px clamp(20px, 3vw, 40px) 100px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-breadcrumb a { text-decoration: none; }
.article-breadcrumb a:hover { color: var(--ink); }

.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 92px);
  border-radius: clamp(24px, 4vw, 46px);
  background: var(--ink);
  color: var(--paper);
}

.article-hero::after {
  position: absolute;
  right: clamp(-100px, -5vw, -35px);
  bottom: clamp(-120px, -8vw, -60px);
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(211, 202, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(211, 202, 255, 0.06), 0 0 0 92px rgba(211, 202, 255, 0.035);
  content: "";
}

.article-kicker,
.article-section-label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 970px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 540;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.article-dek {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 32px 0 0;
  color: rgba(249, 249, 249, 0.74);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
}

.article-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(249, 249, 249, 0.18);
  color: rgba(249, 249, 249, 0.65);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
  justify-content: center;
  gap: clamp(50px, 9vw, 120px);
  margin-top: clamp(60px, 8vw, 110px);
}

.article-aside { position: relative; }

.article-aside-inner {
  position: sticky;
  top: 118px;
}

.article-aside h2 {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-aside ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: article-nav;
}

.article-aside li { counter-increment: article-nav; }

.article-aside a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.article-aside a::before {
  color: var(--ink);
  content: "0" counter(article-nav);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-aside a:hover { color: var(--ink); }

.article-body { min-width: 0; }

.article-body > p:first-of-type {
  margin-top: 0;
  font-size: clamp(21px, 2.3vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.article-body h2 {
  margin: 80px 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
  scroll-margin-top: 120px;
  text-wrap: balance;
}

.article-body h3 {
  margin: 38px 0 12px;
  font-size: 21px;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #464646;
  font-size: 17px;
  line-height: 1.8;
}

.article-body ul {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.article-callout {
  margin: 48px 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--accent);
}

.article-callout strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-callout p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.article-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 42px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.article-fact {
  min-height: 150px;
  padding: 26px;
  background: var(--panel);
}

.article-fact span {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-fact strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.article-source {
  margin-top: 74px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-source a { text-underline-offset: 4px; }

.article-next {
  margin-top: clamp(90px, 11vw, 150px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-next-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.article-next h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1;
}

.article-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-next-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease;
}

.article-next-card:first-child { background: var(--accent); }
.article-next-card:hover { transform: translateY(-6px); }

.article-next-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-next-card h3 {
  max-width: 480px;
  margin: 50px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.article-footer {
  margin: 0 clamp(14px, 2.5vw, 30px) 20px;
  border-radius: 34px;
  background: var(--ink);
  color: #ededed;
}

.article-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, var(--content));
  min-height: 150px;
  margin: 0 auto;
  padding: 38px clamp(24px, 4vw, 54px);
}

.article-footer h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 1;
}

.article-back-link:hover { background: #ededed; color: var(--ink); }

@media (max-width: 860px) {
  .article-header-inner { grid-template-columns: auto 1fr auto; }
  .article-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: var(--ink);
    opacity: 0;
    transition: opacity 220ms ease, visibility 220ms ease;
  }
  .article-nav.is-open { visibility: visible; opacity: 1; }
  .article-logo,
  .article-menu-button { position: relative; z-index: 2; }
  .article-nav a { font-size: clamp(24px, 6vw, 38px); }
  .article-contact { display: none; }
  .article-menu-button { display: block; grid-column: 3; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
}

@media (max-width: 600px) {
  .article-header { padding: 10px 10px 0; }
  .article-header-inner { min-height: 62px; padding-left: 16px; }
  .article-logo img { width: 32px; height: 38px; }
  .article-menu-button { width: 42px; height: 42px; }
  .article-shell { padding: 32px 14px 70px; }
  .article-breadcrumb { padding-left: 8px; }
  .article-hero { padding: 34px 24px 32px; }
  .article-hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .article-dek { margin-top: 24px; font-size: 16px; }
  .article-meta { gap: 8px 16px; margin-top: 30px; padding-top: 18px; }
  .article-layout { margin-top: 54px; }
  .article-body > p:first-of-type { font-size: 20px; }
  .article-body p,
  .article-body li { font-size: 16px; line-height: 1.75; }
  .article-body h2 { margin-top: 62px; font-size: 34px; }
  .article-facts { grid-template-columns: 1fr; }
  .article-fact { min-height: 130px; }
  .article-next-header { align-items: start; flex-direction: column; }
  .article-next-grid { grid-template-columns: 1fr; }
  .article-next-card { min-height: 220px; }
  .article-footer { margin: 0 10px 10px; border-radius: 26px; }
  .article-footer-inner { align-items: flex-start; flex-direction: column; }
}

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