@charset "UTF-8";
:root {
  --ink: #1b1b2b;
  --muted: #55536a;
  --paper: #ffffff;
  --hero: #f1efff;
  --accent: #5b45c8;
  --warm: #ffc27a;
  --line: #deddeb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.65 "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: #dcd5ff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: -90px; left: 14px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; }
.skip-link:focus { top: 14px; }

/* Two-level masthead */
.site-header { position: sticky; top: 0; z-index: 50; background: #24243b; box-shadow: 0 1px 0 var(--ink); }
.utility-bar { min-height: 29px; padding: 5px max(32px, calc((100vw - 1440px)/2)); display: flex; justify-content: space-between; gap: 20px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.6; letter-spacing: .18em; }
.nav-bar { width: min(calc(100% - 64px), 1440px); min-height: 96px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 224px; text-decoration: none; }
.brand-icon { width: 51px; height: 51px; display: grid; place-items: center; color: #fff; background: var(--accent); font: 900 25px/1 Arial, sans-serif; letter-spacing: -.12em; padding-right: 3px; }
.brand-icon span, .footer-brand span { color: var(--warm); }
.brand-words { display: flex; flex-direction: column; color: #fff; font-size: 15px; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; }
.brand-words span { margin-top: 5px; color: #c9c2ff; font-size: 10px; letter-spacing: .2em; }
.primary-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.primary-nav a { min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid #dcd8f5; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px #11102026; text-align: center; text-decoration: none; font-size: 16px; font-weight: 750; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s, color .2s; }
.primary-nav a:hover { border-color: #a89cee; background: #f1eeff; color: var(--accent); box-shadow: 0 4px 10px #11102030; }
.primary-nav a[aria-current] { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 12px #11102042; }
.header-cta { position: relative; min-height: 62px; min-width: 196px; display: flex; align-items: center; justify-content: center; padding: 13px 38px; border: 1px solid #f1b268; border-radius: 999px; color: var(--ink); background: var(--warm); box-shadow: 0 4px 10px #11102038; font-size: 17px; font-weight: 900; text-align: center; text-decoration: none; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.header-cta span { position: absolute; right: 16px; line-height: 1; }
.header-cta:hover { background: #f3af63; box-shadow: 0 6px 14px #1110204d; }
.menu-button { display: none; }

/* Wide typographic cover */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--ink); background: linear-gradient(110deg, var(--hero) 0%, #f8f6ff 58%, #eef3ff 100%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: linear-gradient(#c5bced 1px, transparent 1px), linear-gradient(90deg, #c5bced 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(90deg, transparent 10%, #000 100%); }
.hero-inner { width: min(calc(100% - 64px), 1440px); height: 700px; margin: auto; padding: 56px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(20px, 3vw, 50px); }
.hero-meta { display: flex; justify-content: flex-end; gap: 20px; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.hero-meta-right { align-self: center; }
.hero h1 { position: relative; grid-column: 1; grid-row: 2; min-width: 0; align-self: start; margin: 40px 0 0; font: 900 clamp(48px, 4.6vw, 68px)/1.03 "Segoe UI", Arial, sans-serif; letter-spacing: -.075em; overflow-wrap: anywhere; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding-top: 24px; border-top: 2px solid var(--ink); }
.hero-bottom p { max-width: 690px; margin: 0; font-size: clamp(19px, 2vw, 27px); line-height: 1.34; font-weight: 650; }
.hero-link { position: relative; min-width: 240px; min-height: 58px; padding: 15px 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; background: var(--accent); font-size: 16px; font-weight: 900; text-align: center; text-decoration: none; white-space: nowrap; }
.hero-link span { position: absolute; right: 19px; line-height: 1; }
.hero-link:hover { background: var(--ink); }
.hero-meta { grid-column: 1 / -1; grid-row: 1; }
.hero-bottom { grid-column: 1 / -1; grid-row: 3; }
.hero-art { grid-column: 2; grid-row: 2; width: min(100%, 340px); aspect-ratio: 1; justify-self: end; align-self: center; }
.hero-art img { display: block; width: 100%; height: auto; filter: saturate(.86); }

/* Long-form article */
.reading-shell { background: var(--paper); }
.article-body { width: min(calc(100% - 64px), 1440px); margin-inline: auto; padding-top: 40px; }
.chapter-content strong { font-weight: 850; }
.chapter { display: grid; grid-template-columns: minmax(240px, 35%) minmax(0, 1fr); gap: 5%; padding: 72px 0 85px; border-top: 2px solid var(--ink); scroll-margin-top: 130px; }
.article-body > .chapter:first-child { border-top: 0; padding-top: 32px; }
.chapter-heading { align-self: start; position: sticky; top: 135px; padding-right: 15px; }
.chapter h2 { margin: 0; font-size: clamp(33px, 3.7vw, 58px); line-height: 1.08; font-weight: 850; letter-spacing: -.065em; overflow-wrap: anywhere; }
.chapter-content { min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.72; overflow-wrap: anywhere; }
.chapter-figure { margin: 24px 0 0; }
.chapter-figure img { display: block; width: 100%; height: auto; border-radius: 18px; }
.chapter-content p { margin: 0 0 21px; }
.chapter-content h3 { margin: 36px 0 18px; padding-left: 16px; border-left: 5px solid var(--accent); font-size: 27px; line-height: 1.2; font-weight: 850; letter-spacing: -.045em; }
.chapter-content ul { margin: 0 0 25px; padding-left: 24px; }
.chapter-content li { margin: 7px 0; padding-left: 3px; }
.chapter-content li::marker { color: var(--accent); }
.table-scroll { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
th { background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; text-align: left; }
td, th { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { width: 38%; font-weight: 750; }
tr:nth-child(even) td { background: #f8f7fc; }
tr:last-child td { border-bottom: 0; }
.article-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 0 44px; border-top: 2px solid var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.article-end a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); text-align: center; text-decoration: none; white-space: nowrap; }
.article-end a:hover { color: #fff; background: var(--accent); }

/* Compact footer */
.site-footer { color: #f5f3ff; background: var(--ink); border-top: 5px solid var(--warm); }
.footer-top, .footer-bottom { width: min(calc(100% - 64px), 1440px); margin: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: center; gap: 50px; padding: 39px 0 43px; }
.footer-statement strong { display: block; font-size: clamp(31px, 3.6vw, 51px); line-height: 1.08; letter-spacing: -.06em; }
.footer-statement strong span { color: var(--warm); }
.footer-aside { display: grid; grid-template-columns: 47px minmax(0, 1fr); column-gap: 15px; align-items: start; padding-left: 28px; border-left: 1px solid #575475; }
.footer-age { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid var(--warm); color: var(--warm); font-size: 13px; font-weight: 900; }
.footer-aside p { margin: 0; color: #d7d4e6; font-size: 15px; line-height: 1.48; }
.footer-links { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.footer-links a { position: relative; min-width: 0; min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 12px 36px; border: 1px solid #615c83; border-radius: 18px; color: #fff; background: #2e2c49; font-size: 15px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.footer-link-text { min-width: 0; overflow-wrap: anywhere; }
.footer-link-arrow { position: absolute; right: 15px; color: var(--warm); font-size: 19px; line-height: 1; }
.footer-links a:hover, .footer-links a[aria-current="page"] { border-color: var(--warm); background: #3c395b; transform: translateY(-2px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid #575475; color: #d7d4e6; font-size: 14px; font-weight: 700; }
.footer-brand { color: #fff; font-weight: 900; text-decoration: none; white-space: nowrap; }
.footer-brand span { color: var(--warm); }
.footer-bottom small { white-space: nowrap; font-size: 13px; }

.back-to-top { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-bottom: 3px solid var(--warm); border-radius: 50%; color: var(--accent); background: #fff; box-shadow: 0 6px 18px #1b1b2b30; font-size: 25px; font-weight: 850; line-height: 1; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }

@media (max-width: 1180px) {
  .nav-bar, .hero-inner, .article-body, .footer-top, .footer-bottom { width: calc(100% - 48px); }
  .footer-links { grid-template-columns: 1fr; }
  .nav-bar { gap: 16px; }
  .brand { min-width: 200px; }
}
@media (max-width: 880px) {
  .utility-bar { padding-inline: 24px; }
  .nav-bar { min-height: 76px; }
  .header-cta { min-height: 54px; min-width: 170px; padding: 11px 32px; font-size: 15px; }
  .brand-icon { width: 43px; height: 43px; font-size: 22px; }
  .brand { min-width: 0; }
  .menu-button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 11px; margin-left: auto; padding: 9px 15px; border: 1px solid #dcd8f5; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px #11102026; font-size: 14px; font-weight: 900; cursor: pointer; }
  .menu-button span { font-size: 22px; line-height: 1; }
  .primary-nav { display: none; position: absolute; top: 105px; left: 0; right: 0; margin: 0; padding: 10px 24px 20px; background: #24243b; box-shadow: 0 15px 30px #11102040; }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .primary-nav a { min-height: 52px; padding: 11px 16px; border: 1px solid #dcd8f5; border-radius: 15px; background: #fff; font-size: 16px; }
  .hero-inner { height: 580px; padding: 40px 0 48px; grid-template-columns: minmax(0, 1fr) minmax(150px, 28%); column-gap: 24px; }
  .hero h1 { margin-top: 30px; font-size: clamp(38px, 5.5vw, 50px); }
  .hero-art { width: min(100%, 210px); }
  .chapter { gap: 4%; grid-template-columns: minmax(210px,36%) minmax(0,1fr); }
  .chapter h2 { font-size: clamp(32px,4.5vw,48px); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: 25px; }
  .footer-aside { padding-left: 20px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 93px; }
  body { font-size: 17px; }
  .utility-bar { min-height: 22px; padding: 3px 15px; font-size: 8px; letter-spacing: .07em; }
  .utility-bar span:last-child { display: none; }
  .nav-bar, .hero-inner, .article-body, .footer-top, .footer-bottom { width: calc(100% - 30px); }
  .nav-bar { min-height: 68px; gap: 8px; }
  .brand-icon { width: 37px; height: 37px; font-size: 19px; }
  .brand { gap: 7px; }
  .brand-words { font-size: 11px; }
  .brand-words span { font-size: 8px; letter-spacing: .13em; }
  .menu-button { width: 44px; height: 44px; min-height: 44px; flex: none; padding: 0; font-size: 0; gap: 0; }
  .menu-button span { font-size: 22px; }
  .header-cta { min-width: 126px; min-height: 48px; padding: 10px 26px; font-size: 12px; }
  .header-cta span { right: 11px; }
  .primary-nav { top: 90px; padding-inline: 15px; }
  .hero-inner { height: 720px; padding: 34px 0 44px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .hero-meta { font-size: 10px; }
  .hero-meta-right { display: none; }
  .hero h1 { margin: 28px 0 0; font-size: clamp(32px, 8vw, 44px); line-height: 1.05; letter-spacing: -.065em; }
  .hero-art { grid-column: 1; grid-row: 3; width: min(38vw, 150px); justify-self: center; }
  .hero-bottom { grid-row: 4; }
  .hero-bottom { display: block; }
  .hero-bottom p { font-size: 19px; }
  .hero-link { margin-top: 26px; width: 100%; min-width: 0; min-height: 60px; }
  .article-body { padding-top: 28px; }
  .chapter { display: block; padding: 43px 0 55px; scroll-margin-top: 105px; }
  .article-body > .chapter:first-child { padding-top: 20px; }
  .chapter-heading { position: static; padding: 0; margin-bottom: 28px; }
  .chapter h2 { font-size: clamp(32px, 8vw, 47px); }
  .chapter-content { font-size: 17px; }
  .chapter-content h3 { font-size: 24px; }
  .table-scroll td, .table-scroll th { padding: 10px 8px; }
  table { font-size: 14px; }
  th { font-size: 12px; }
  .article-end { padding-bottom: 37px; font-size: 12px; }
  .footer-top { display: block; padding: 26px 0 22px; }
  .footer-statement strong { font-size: clamp(28px, 7.4vw, 36px); }
  .footer-aside { grid-template-columns: 38px minmax(0, 1fr); margin-top: 15px; padding: 14px 0 0; border-left: 0; border-top: 1px solid #575475; }
  .footer-age { width: 38px; height: 38px; font-size: 11px; }
  .footer-aside p { font-size: 14px; line-height: 1.38; }
  .footer-links { margin-top: 16px; }
  .footer-links a { min-height: 58px; padding: 10px 36px; font-size: 14px; }
  .footer-bottom { display: block; padding: 14px 0 18px; font-size: 13px; }
  .footer-brand { display: none; }
  .back-to-top { right: max(8px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: 36px; height: 36px; font-size: 21px; }
}
@media (max-width: 360px) {
  .nav-bar { gap: 6px; }
  .menu-button { width: 42px; height: 42px; min-height: 42px; }
  .header-cta { min-width: 104px; padding-inline: 17px; font-size: 11px; }
  .header-cta span { right: 9px; }
  .article-end { display: block; }
  .article-end a { display: inline-block; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
