:root {
  --navy: #111b27;
  --navy-soft: #1b2735;
  --blue: #3478f6;
  --blue-dark: #2365e8;
  --blue-soft: #edf4ff;
  --white: #ffffff;
  --background: #ffffff;
  --background-soft: #f6f8fb;
  --text: #111b27;
  --text-soft: #606c79;
  --text-light: #8a95a1;
  --border: #e4e9ef;
  --border-dark: #d5dce5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-small: 12px;
  --radius: 18px;
  --radius-large: 28px;
  --shadow: 0 24px 70px rgba(19, 35, 55, .08), 0 3px 15px rgba(19, 35, 55, .04);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.shell, .nav-shell { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 11px 16px; border-radius: 10px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(52, 120, 246, .42); outline-offset: 3px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(228, 233, 239, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { color: var(--navy); font-size: 21px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--blue); }
.brand b { margin-left: 10px; padding: 5px 8px; border: 1px solid var(--border-dark); border-radius: 999px; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; vertical-align: 2px; }
.site-nav nav { display: flex; align-items: center; gap: 25px; }
.site-nav nav a, .nav-link { border: 0; padding: 8px 0; color: #344150; background: none; font-size: 14px; font-weight: 550; text-decoration: none; }
.site-nav nav a:hover, .nav-link:hover { color: var(--blue); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 25px rgba(52, 120, 246, .18); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 13px 30px rgba(52, 120, 246, .24); }
.button-secondary { border-color: var(--border-dark); background: white; color: var(--navy); }
.button-secondary:hover { border-color: #b9c5d2; background: var(--background-soft); }
.button-dark { min-height: 44px; border-radius: 11px; padding: 10px 17px; background: var(--navy); color: white; }
.button-dark:hover { background: var(--navy-soft); }

.home-hero { position: relative; overflow: hidden; padding: 74px 0 86px; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); }
.home-hero::before { content: ''; position: absolute; width: 520px; height: 520px; left: -300px; top: -280px; border-radius: 50%; background: rgba(52, 120, 246, .055); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.hero-copy h1 { max-width: 680px; margin: 0; font: 600 clamp(56px, 6.1vw, 88px)/.99 var(--serif); letter-spacing: -4px; }
.hero-copy h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 610px; margin: 30px 0 0; color: var(--text-soft); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: var(--text-soft); font-size: 12px; }
.hero-points span { display: flex; align-items: center; gap: 8px; }
.hero-points span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.hero-editorial { min-height: 530px; padding: 28px; overflow: hidden; border: 1px solid #273646; border-radius: var(--radius-large); background: var(--navy); color: white; box-shadow: 0 34px 75px rgba(17, 27, 39, .18); }
.editorial-top { display: flex; justify-content: space-between; color: #aeb9c5; font-size: 9px; font-weight: 750; letter-spacing: 1.8px; }
.route-map { position: relative; height: 325px; margin: 20px -28px 0; overflow: hidden; background: radial-gradient(circle at 76% 12%, rgba(52, 120, 246, .35), transparent 32%), linear-gradient(145deg, #1b2a3a, #101923); }
.route-map::before, .route-map::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; }
.route-map svg { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.route-map path, .route-map circle { fill: var(--blue); stroke: var(--blue); }
.route-map .map-contour { fill: none; stroke: rgba(255,255,255,.11); stroke-width: 85; }
.route-map .map-route { fill: none; stroke: #78a5ff; stroke-width: 3; stroke-dasharray: 8 8; }
.map-label { position: absolute; z-index: 4; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(17,27,39,.76); color: #dce7fa; font-size: 10px; letter-spacing: .6px; }
.map-label-one { left: 26px; bottom: 56px; }
.map-label-two { right: 25px; top: 35px; }
.editorial-note { padding-top: 25px; }
.editorial-note > span { color: #7da8ff; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.editorial-note p { margin: 10px 0 0; color: #c6d0da; font: 19px/1.45 var(--serif); }
.editorial-note strong { color: white; font-weight: 500; }

.manifesto { border-block: 1px solid var(--border); background: var(--blue-soft); }
.manifesto-inner { padding-block: 96px; text-align: center; }
.manifesto .eyebrow { justify-content: center; }
.manifesto h2, .section-heading h2, .membership h2 { margin: 0; font: 600 clamp(42px, 5vw, 66px)/1.06 var(--serif); letter-spacing: -2.4px; }
.manifesto h2 em { color: var(--blue); font-style: normal; }
.manifesto-inner > p:last-child { margin: 25px auto 0; color: var(--text-soft); font-size: 16px; }

.library { padding-block: 105px 118px; scroll-margin-top: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 38px; }
.section-heading > p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; text-align: right; }
.section-heading.compact { align-items: end; }
.section-heading.compact h2 { font-size: clamp(38px, 4vw, 54px); }
.filters { display: flex; gap: 8px; margin-bottom: 30px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.filter { flex: 0 0 auto; border: 1px solid var(--border-dark); border-radius: 999px; padding: 9px 16px; background: white; color: #52606f; font-size: 13px; font-weight: 650; }
.filter:hover { border-color: #aebdcd; color: var(--navy); }
.filter.active { border-color: var(--navy); background: var(--navy); color: white; }

.article-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.story-card { grid-column: span 4; min-width: 0; }
.story-card:first-child:nth-last-child(2), .story-card:first-child:nth-last-child(2) ~ .story-card { grid-column: span 6; }
.story-card:only-child { grid-column: 1 / -1; }
.story-card > a { display: block; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; color: inherit; text-decoration: none; box-shadow: 0 8px 30px rgba(19,35,55,.035); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.story-card > a:hover { transform: translateY(-4px); border-color: #c9d4e1; box-shadow: var(--shadow); }
.story-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, #dce8fc, #f2f6fc); }
.story-image::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 -60px 80px rgba(17,27,39,.08); pointer-events: none; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card > a:hover .story-image img { transform: scale(1.035); }
.story-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(52,120,246,.35); font: 600 64px var(--serif); }
.story-copy { padding: 23px 24px 25px; }
.story-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; color: var(--text-light); font-size: 10px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
.story-meta span:first-child { overflow: hidden; color: var(--blue-dark); text-overflow: ellipsis; white-space: nowrap; }
.story-copy h3 { margin: 0; font: 600 27px/1.16 var(--serif); letter-spacing: -.7px; }
.story-copy > p { display: -webkit-box; margin: 13px 0 22px; overflow: hidden; color: var(--text-soft); font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.read-story { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 13px; font-weight: 750; }
.read-story span { color: var(--blue); transition: transform .18s ease; }
.story-card > a:hover .read-story span { transform: translateX(4px); }
.story-card:only-child > a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.story-card:only-child .story-image { height: 100%; min-height: 400px; aspect-ratio: auto; }
.story-card:only-child .story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 66px); }
.story-card:only-child .story-copy h3 { font-size: clamp(35px, 4vw, 50px); }
.empty { grid-column: 1 / -1; padding: 70px 30px; border: 1px dashed var(--border-dark); border-radius: var(--radius); background: var(--background-soft); color: var(--text-soft); text-align: center; }

.membership { scroll-margin-top: 76px; overflow: hidden; background: var(--navy); color: white; }
.membership-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: center; padding-block: 98px; }
.eyebrow-light { color: #7da8ff; }
.membership h2 { max-width: 650px; }
.membership-grid > div:first-child > p:last-child { max-width: 610px; margin: 25px 0 0; color: #b9c4cf; line-height: 1.75; }
.price-card { padding: 34px; border: 1px solid #344354; border-radius: var(--radius); background: rgba(255,255,255,.035); }
.price-card > div { display: flex; align-items: center; }
.price-card strong { font: 600 78px/1 var(--serif); }
.price-card sup { margin-right: 3px; font: 31px var(--sans); }
.price-card span { margin-left: 13px; color: #9ba9b8; font-size: 12px; line-height: 1.5; }
.price-card p { color: #b9c4cf; font-size: 13px; }
.price-card .button { width: 100%; margin-top: 12px; }

.site-footer { border-top: 1px solid var(--border); background: white; }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner > p, .footer-inner a:not(.brand) { color: var(--text-soft); font-size: 13px; text-decoration: none; }
.footer-inner > div { display: flex; gap: 22px; }
.footer-inner a:hover { color: var(--blue); }

dialog { border: 0; border-radius: 20px; padding: 0; background: white; color: var(--text); box-shadow: 0 30px 80px rgba(13,27,42,.25); }
dialog::backdrop { background: rgba(17,27,39,.7); backdrop-filter: blur(5px); }
#authDialog, #accountDialog { width: min(480px, calc(100% - 28px)); padding: 44px; }
.close { position: absolute; top: 13px; right: 16px; border: 0; padding: 5px 9px; background: none; color: var(--text-light); font-size: 28px; line-height: 1; }
.auth-form h2 { margin: 7px 0 26px; font: 600 38px/1.15 var(--serif); letter-spacing: -1px; }
.auth-form > p:not(.eyebrow):not(.switch) { color: var(--text-soft); line-height: 1.65; }
.auth-form label { display: block; margin: 15px 0; font-size: 13px; font-weight: 700; }
.auth-form input:not([type=checkbox]) { width: 100%; margin-top: 7px; border: 1px solid var(--border-dark); border-radius: 10px; padding: 13px; outline: none; background: white; }
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,120,246,.13); }
.auth-form small { display: block; margin-top: 6px; color: var(--text-soft); font-weight: 400; }
.check { display: flex !important; gap: 10px; line-height: 1.5; }
.check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.check a { color: var(--blue-dark); }
.form-button { width: 100%; margin-top: 10px; }
.switch { color: var(--text-soft); text-align: center; }
.switch button, .text-button { border: 0; padding: 0; background: none; color: var(--blue-dark); }
.text-button { display: block; margin: 18px auto; }
.notice { padding: 28px 10px; color: var(--text-soft); line-height: 1.7; text-align: center; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100% - 32px)); border-radius: 11px; padding: 14px 19px; background: var(--navy); color: white; box-shadow: var(--shadow); }

.reading-progress { position: fixed; top: 0; left: 0; z-index: 50; width: 0; height: 3px; background: var(--blue); transition: width .08s linear; }
.article-loading { min-height: 70vh; display: grid; place-content: center; justify-items: center; color: var(--text-soft); }
.article-loading span { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.article-back-row { padding-top: 38px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: #52606f; font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--blue-dark); }
.article-header { max-width: 990px; padding-block: 76px 58px; text-align: center; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--text-light); font-size: 11px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; }
.article-meta span:first-child { color: var(--blue-dark); }
.article-header h1 { margin: 21px auto 0; overflow-wrap: anywhere; font: 600 clamp(52px, 7vw, 88px)/1.02 var(--serif); letter-spacing: -3.6px; }
.article-header > p { max-width: 760px; margin: 27px auto 0; color: var(--text-soft); font: 20px/1.7 var(--sans); }
.article-cover { max-width: var(--max-width); margin-top: 0; margin-bottom: 0; overflow: hidden; border-radius: var(--radius-large); background: var(--blue-soft); box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 720px; aspect-ratio: 16/8.5; object-fit: cover; }
.article-content-shell { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding-block: 76px 105px; }
.article-body { overflow-wrap: anywhere; color: #202d3b; font: 19px/1.9 var(--serif); }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.55em; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--navy); font-family: var(--sans); letter-spacing: -.7px; }
.article-body h2 { margin: 2.1em 0 .8em; font-size: 31px; line-height: 1.22; }
.article-body h3 { margin: 1.8em 0 .7em; font-size: 23px; line-height: 1.3; }
.article-body h4 { margin: 1.7em 0 .6em; font-size: 19px; }
.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.article-body li { margin-bottom: .55em; padding-left: .35em; }
.article-body a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body blockquote { margin: 2.1em 0; border-left: 4px solid var(--blue); padding: 8px 0 8px 28px; color: #344150; font: italic 26px/1.55 var(--serif); }
.article-body hr { margin: 3em 0; border: 0; border-top: 1px solid var(--border); }
.article-body img { width: auto; max-width: 100%; height: auto; margin: 2.3em auto; border-radius: var(--radius-small); }
.article-body figure { max-width: 100%; margin: 2.3em 0; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption { margin-top: 10px; color: var(--text-light); font: 12px/1.5 var(--sans); text-align: center; }
.article-body code { border-radius: 5px; padding: .15em .35em; background: var(--background-soft); font-size: .88em; }
.paywall { margin: 0; overflow: hidden; border: 1px solid #cfddf5; border-radius: var(--radius-large); padding: 48px; background: linear-gradient(145deg, var(--blue-soft), #f8fbff); text-align: center; }
.paywall-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: white; color: var(--blue); box-shadow: 0 8px 25px rgba(52,120,246,.12); font-size: 20px; }
.paywall h2 { margin: 0; font: 600 35px/1.2 var(--serif); }
.paywall p { max-width: 500px; margin: 16px auto 25px; color: var(--text-soft); line-height: 1.7; }
.paywall-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.related-section { border-top: 1px solid var(--border); padding-block: 88px 108px; background: var(--background-soft); }
.related-section .section-heading { margin-bottom: 35px; }
.related-grid .story-card:only-child > a { display: block; }
.related-grid .story-card:only-child .story-image { min-height: 0; aspect-ratio: 16/10; }
.related-grid .story-card:only-child .story-copy { display: block; padding: 23px 24px 25px; }
.related-grid .story-card:only-child .story-copy h3 { font-size: 27px; }
.article-error { min-height: 72vh; padding: 110px 24px; text-align: center; }
.article-error .eyebrow { justify-content: center; }
.article-error h1 { margin: 0; font: 600 clamp(50px, 7vw, 82px)/1 var(--serif); letter-spacing: -3px; }
.article-error > p:not(.eyebrow) { max-width: 560px; margin: 24px auto 30px; color: var(--text-soft); line-height: 1.7; }

@media (max-width: 980px) {
  .site-nav nav { gap: 16px; }
  .site-nav nav > a:nth-child(-n+3) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 760px; }
  .hero-editorial { min-height: 500px; }
  .story-card { grid-column: span 6; }
  .membership-grid { gap: 50px; }
}

@media (max-width: 720px) {
  .shell, .nav-shell { width: min(100% - 32px, var(--max-width)); }
  .nav-shell { min-height: 68px; }
  .brand { font-size: 19px; }
  .site-nav nav { gap: 10px; }
  .site-nav .nav-link { font-size: 13px; }
  .site-nav .button { min-height: 39px; padding: 8px 12px; border-radius: 9px; font-size: 12px; }
  .home-hero { padding: 58px 0 68px; }
  .hero-grid { gap: 42px; }
  .hero-copy h1 { font-size: clamp(48px, 15vw, 66px); letter-spacing: -3px; }
  .hero-lead { margin-top: 24px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-points { gap: 9px 16px; }
  .hero-editorial { min-height: 430px; padding: 22px; border-radius: 20px; }
  .route-map { height: 270px; margin-inline: -22px; }
  .editorial-note p { font-size: 17px; }
  .manifesto-inner { padding-block: 72px; }
  .manifesto h2, .section-heading h2, .membership h2 { font-size: 43px; letter-spacing: -1.8px; }
  .library { padding-block: 78px 86px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; text-align: left; }
  .section-heading > p br { display: none; }
  .story-card, .story-card:first-child:nth-last-child(2), .story-card:first-child:nth-last-child(2) ~ .story-card { grid-column: 1 / -1; }
  .story-card:only-child > a { display: block; }
  .story-card:only-child .story-image { min-height: 0; aspect-ratio: 16/10; }
  .story-card:only-child .story-copy { display: block; padding: 24px; }
  .story-card:only-child .story-copy h3 { font-size: 30px; }
  .membership-grid { grid-template-columns: 1fr; gap: 38px; padding-block: 72px; }
  .price-card { padding: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 34px; }
  .footer-inner > p { margin: 0; }
  #authDialog, #accountDialog { padding: 38px 24px 28px; }
  .article-back-row { padding-top: 26px; }
  .article-header { padding-block: 55px 40px; }
  .article-header h1 { font-size: clamp(45px, 14vw, 66px); letter-spacing: -2.5px; }
  .article-header > p { font-size: 17px; }
  .article-cover { width: 100%; border-radius: 0; box-shadow: none; }
  .article-cover img { aspect-ratio: 4/3; }
  .article-content-shell { width: min(100% - 38px, 760px); padding-block: 55px 78px; }
  .article-body { font-size: 18px; line-height: 1.82; }
  .article-body h2 { font-size: 27px; }
  .article-body blockquote { padding-left: 20px; font-size: 23px; }
  .paywall { padding: 36px 22px; border-radius: 20px; }
  .related-section { padding-block: 70px 80px; }
  .section-heading.compact .back-link { margin-top: 18px; }
}

@media (max-width: 480px) {
  .brand b { display: none; }
  .site-nav nav { gap: 7px; }
  .site-nav nav .nav-link { display: none; }
  .hero-copy h1 { font-size: 48px; }
  .hero-points { display: grid; }
  .story-copy { padding: 21px; }
  .story-copy h3, .story-card:only-child .story-copy h3 { font-size: 27px; }
  .footer-inner > div { flex-wrap: wrap; }
  .article-meta { flex-wrap: wrap; }
  .article-header h1 { font-size: 44px; }
  .price-card strong { font-size: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
