:root {
  --ink: #1c171c;
  --muted: #655b62;
  --paper: #fffdfd;
  --pink-paper: #fff1f6;
  --pink: #f33783;
  --pink-dark: #aa0648;
  --cyan: #00a8b8;
  --lime: #c8e32b;
  --line: #ddd4d8;
  --charcoal: #211c21;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.atlas-strip { min-height: 34px; padding: 6px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--pink); color: #fff; font: 800 10px/1.3 var(--mono); }
.atlas-strip a { text-decoration: none; }
.atlas-header { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,253,253,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.atlas-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.atlas-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--pink); color: #fff; border-radius: 3px; font: 900 14px/1 var(--mono); }
.atlas-brand-copy { display: grid; }
.atlas-brand-copy strong { font-size: 18px; line-height: 1.05; }
.atlas-brand-copy small { color: var(--muted); font: 750 8px/1.4 var(--mono); }
.atlas-nav { display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 800; }
.atlas-nav a { text-decoration: none; }
.atlas-nav .language { color: var(--pink-dark); font: 900 10px/1 var(--mono); }
.atlas-nav .primary { padding: 10px 14px; background: var(--charcoal); color: #fff; border-radius: 3px; }

.article-hero { min-height: 460px; padding: 72px max(32px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 72px; background: var(--pink-paper); border-bottom: 1px solid var(--line); }
.article-hero-copy { max-width: 820px; }
.eyebrow { margin: 0 0 18px; color: var(--pink-dark); font: 900 10px/1.4 var(--mono); }
.article-hero h1 { max-width: 920px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: 0; }
.standfirst { max-width: 800px; margin: 25px 0 0; color: #4d4148; font-size: 19px; line-height: 1.62; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 7px 9px; border: 1px solid #cdbec5; background: rgba(255,255,255,.72); border-radius: 3px; font: 800 9px/1 var(--mono); }
.article-visual { min-height: 300px; display: grid; place-items: center; position: relative; overflow: hidden; background: #f7ccd9; border: 1px solid #caaab7; }
.article-visual img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.article-visual-label { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; background: rgba(28,23,28,.9); color: #fff; font: 800 9px/1 var(--mono); }

.article-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 88px 0 110px; display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 88px; align-items: start; }
.article-body, .article-aside { min-width: 0; }
.article-body section { padding: 0 0 54px; margin: 0 0 54px; border-bottom: 1px solid var(--line); }
.article-body section:last-of-type { margin-bottom: 0; }
.article-body h2 { margin: 0 0 22px; font-size: 34px; line-height: 1.12; letter-spacing: 0; }
.article-body p { margin: 0 0 20px; color: #3f363c; font-size: 17px; }
.article-body p:last-child { margin-bottom: 0; }
.article-aside { position: sticky; top: 100px; }
.aside-block { padding: 23px 0; border-top: 3px solid var(--ink); }
.aside-block + .aside-block { border-top-width: 1px; }
.aside-block h2 { margin: 0 0 14px; font-size: 14px; }
.aside-block p { margin: 0; color: var(--muted); font-size: 13px; }
.aside-block p, .aside-block code { overflow-wrap: anywhere; word-break: break-word; }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.source-list a { display: grid; gap: 4px; text-decoration: none; }
.source-list strong { font-size: 12px; line-height: 1.4; }
.source-list span { color: var(--pink-dark); font: 800 8px/1.4 var(--mono); }
.source-list a:hover strong { color: var(--pink-dark); }

.related-band { padding: 84px 0; background: #f5fbfc; border-top: 1px solid var(--line); }
.related-inner { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.related-heading { max-width: 720px; margin-bottom: 34px; }
.related-heading h2 { margin: 0; font-size: 40px; line-height: 1.06; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.related-grid a { min-width: 0; padding: 27px 22px 30px; color: var(--ink); border-right: 1px solid var(--line); text-decoration: none; }
.related-grid a:last-child { border-right: 0; }
.related-grid span { color: var(--pink-dark); font: 900 9px/1.4 var(--mono); }
.related-grid h3 { margin: 13px 0 10px; font-size: 22px; line-height: 1.12; }
.related-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.related-grid a:hover h3 { color: var(--pink-dark); }

.faq-band { padding: 84px 0; background: var(--charcoal); color: #fff; }
.faq-inner { width: min(1180px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-inner h2 { margin: 8px 0 0; font-size: 42px; line-height: 1.05; }
.faq-list details { border-top: 1px solid #574d55; }
.faq-list details:last-child { border-bottom: 1px solid #574d55; }
.faq-list summary { padding: 20px 4px; cursor: pointer; font-weight: 800; }
.faq-list p { margin: 0; padding: 0 4px 22px; color: #d5ccd1; }

.atlas-cta { padding: 92px 24px; text-align: center; background: var(--pink-paper); }
.atlas-cta p { margin: 0 0 10px; color: var(--pink-dark); font: 900 10px/1.4 var(--mono); }
.atlas-cta h2 { max-width: 750px; margin: 0 auto 28px; font-size: 48px; line-height: 1.04; }
.atlas-cta a { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; background: var(--pink); color: #fff; border-radius: 3px; font-size: 13px; font-weight: 850; text-decoration: none; }
.atlas-footer { padding: 32px; display: flex; justify-content: space-between; gap: 28px; background: #171317; color: #d8cfd4; font: 700 9px/1.6 var(--mono); }

.hub-hero { padding: 84px max(32px, calc((100vw - 1180px) / 2)); background: var(--pink-paper); border-bottom: 1px solid var(--line); }
.hub-hero h1 { max-width: 850px; margin: 12px 0 18px; font-size: clamp(48px, 7vw, 82px); line-height: .98; }
.hub-hero > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.atlas-index { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 70px 0 110px; }
.atlas-index-head { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.atlas-index-head h2 { margin: 0; font-size: 36px; }
.atlas-index-head span { color: var(--pink-dark); font: 900 10px/1.4 var(--mono); }
.article-list { border-top: 3px solid var(--ink); }
.article-row { min-height: 178px; padding: 27px 0; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(210px, .5fr); gap: 28px; align-items: start; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row > span { color: var(--pink-dark); font: 900 10px/1.4 var(--mono); }
.article-row h3 { margin: 0; font-size: 26px; line-height: 1.14; }
.article-row p { margin: 0; color: var(--muted); font-size: 14px; }
.article-row:hover h3 { color: var(--pink-dark); }

.embed-shell { min-height: 100vh; padding: 18px; display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; background: var(--pink-paper); border: 1px solid #dfbdcb; }
.embed-mark { width: 72px; height: 72px; display: grid; place-items: center; background: var(--pink); color: #fff; font: 900 22px/1 var(--mono); }
.embed-copy { min-width: 0; }
.embed-copy span { color: var(--pink-dark); font: 900 8px/1.4 var(--mono); }
.embed-copy h1 { margin: 5px 0; font-size: clamp(17px, 3vw, 26px); line-height: 1.1; }
.embed-copy p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.embed-copy a { color: var(--pink-dark); font-size: 11px; font-weight: 850; }

@media (max-width: 860px) {
  .atlas-nav { gap: 10px; }
  .atlas-nav a:not(.primary):not(.language) { display: none; }
  .article-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
  .article-visual { min-height: 240px; }
  .article-shell { grid-template-columns: 1fr; gap: 52px; }
  .article-aside { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .related-grid a:last-child { border-bottom: 0; }
  .faq-inner { grid-template-columns: 1fr; gap: 36px; }
  .article-row { grid-template-columns: 62px 1fr; }
  .article-row p { grid-column: 2; }
}

@media (max-width: 560px) {
  .atlas-strip span:last-child { display: none; }
  .atlas-header { height: 64px; padding: 0 16px; }
  .atlas-brand-copy small { display: none; }
  .atlas-nav .primary { padding: 9px 10px; }
  .article-hero { min-height: 0; padding: 50px 20px 42px; }
  .article-hero h1 { font-size: 43px; }
  .standfirst { font-size: 17px; }
  .article-shell, .related-inner, .faq-inner, .atlas-index { width: min(calc(100% - 40px), 1180px); }
  .article-shell { padding: 62px 0 80px; }
  .article-body h2 { font-size: 29px; }
  .article-body p { font-size: 16px; }
  .related-band { padding: 64px 0; }
  .related-heading h2 { font-size: 34px; }
  .faq-band { padding: 64px 0; }
  .faq-inner h2, .atlas-cta h2 { font-size: 36px; }
  .atlas-footer { flex-direction: column; }
  .hub-hero { padding: 62px 20px; }
  .article-row { grid-template-columns: 1fr; gap: 10px; }
  .article-row p { grid-column: auto; }
  .embed-shell { grid-template-columns: 58px 1fr; padding: 12px; gap: 12px; }
  .embed-mark { width: 52px; height: 52px; font-size: 17px; }
}
