:root {
  color-scheme: light;
  --paper: #f5f7fc; --surface: #fff; --ink: #121d3f; --muted: #4c5874;
  --blue: #234bce; --deep: #123299; --ice: #e6edff; --amber: #ffdd90; --line: #d7e0f1;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.wrap { width: min(75rem, calc(100% - 3rem)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .21em; }
:focus-visible { outline: 3px solid #983c00; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: .6rem; left: 1rem; transform: translateY(-180%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: .35rem 1.25rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.64rem; font-weight: 830; letter-spacing: -.075em; text-decoration: none; white-space: nowrap; }
.brand i { color: var(--blue); font-style: normal; }
.mark, .hero-icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .62rem; background: var(--blue); color: white; margin-right: .58rem; flex: none; }
.bar nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .3rem; }
.bar nav a, .header-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .65rem; font-size: .875rem; text-decoration: none; font-weight: 680; }
.bar nav a:hover, .bar nav a[aria-current] { background: var(--ice); color: var(--deep); border-radius: .5rem; }
.header-cta { gap: .7rem; border: 1px solid var(--line); border-radius: .6rem; white-space: nowrap; }
.header-cta:hover { background: var(--ice); }
h1, h2, h3 { line-height: 1.08; overflow-wrap: anywhere; text-wrap: balance; }
h1, h2 { font-weight: 790; letter-spacing: -.055em; }
h1 { font-size: clamp(2.15rem, 4.55vw, 4.25rem); margin: .18em 0 .24em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin: 0 0 .44em; }
h3 { font-size: clamp(1.1rem, 1.65vw, 1.38rem); margin: .42em 0 .36em; letter-spacing: -.028em; }
img { display: block; width: 100%; height: auto; }
.eyebrow, .label, .hero-caption small, .topic-grid small { font: 700 .73rem/1.45 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .52rem; color: var(--deep); margin: 0 0 .58rem; }
.eyebrow > span { display: inline-block; flex: none; width: .53rem; height: .53rem; border-radius: .16rem; background: currentColor; }
.lead { max-width: 56ch; font-size: clamp(1rem, 1.45vw, 1.2rem); color: var(--muted); margin: 0 0 1.2rem; }
.hero { margin-block: 1.5rem 0; display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); border-radius: 1.15rem; overflow: hidden; background: var(--blue); color: white; }
.hero-copy { padding: clamp(1.4rem, 2.8vw, 2.65rem); background: linear-gradient(145deg, #183ea9, var(--blue) 66%, #2e57df); position: relative; }
.hero-copy::after { content: ''; position: absolute; width: 7rem; height: 5rem; right: .8rem; bottom: .7rem; opacity: .34; background: radial-gradient(circle, #bad0ff 1px, transparent 1.35px) 0 0/12px 12px; pointer-events: none; mask-image: linear-gradient(135deg, transparent 8%, black); }
.hero .eyebrow { color: #e6eeff; }
.hero h1 { text-wrap: initial; font-size: clamp(2.15rem, 4.1vw, 3.65rem); }
.hero em { font-style: normal; color: var(--amber); }
.hero .lead { color: #f3f6ff; max-width: 39ch; margin-bottom: 1.26rem; }
.hero-media { min-height: 14rem; position: relative; background: var(--ink); }
.hero-media::after { content: ''; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, #09163580); pointer-events: none; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-caption { z-index: 1; position: absolute; inset: auto 1rem 1rem auto; display: flex; align-items: center; padding: .6rem .83rem .6rem .6rem; background: white; color: var(--ink); border-radius: .75rem; box-shadow: 0 7px 20px #14245528; }
.hero-caption small, .hero-caption strong { display: block; }
.hero-caption small { color: var(--deep); font-size: .66rem; }
.hero-caption strong { font-size: .92rem; }
.hero-icon { background: var(--amber); color: var(--ink); }
.button { display: inline-flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 2.85rem; padding: .52rem .88rem; font-size: .9rem; font-weight: 790; border-radius: .58rem; background: var(--amber); color: var(--ink); text-decoration: none; position: relative; z-index: 1; }
.button:hover { background: #ffe8b4; }
.hero .button:focus-visible { outline-color: white; }
.listing { margin-block: clamp(1.65rem, 3.4vw, 3rem); scroll-margin-top: 1rem; }
#guides { margin-top: clamp(1.35rem, 2.2vw, 1.75rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .28rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0; }
.text-link { display: inline-flex; gap: .65rem; align-items: center; min-height: 2.75rem; color: var(--deep); font-size: .9rem; font-weight: 740; }
.cards, .topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem, 1.6vw, 1.25rem); }
.card { margin: 0; min-width: 0; }
.card > a { height: 100%; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 4px 12px #18325809; overflow: hidden; }
.card > a:hover h3 { color: var(--deep); text-decoration: underline; }
.card-media { aspect-ratio: 16/9; background: var(--ice); overflow: hidden; }
.card-media img { height: 100%; object-fit: cover; }
.card-copy { position: relative; padding: 1rem 2.5rem 1rem 1.04rem; flex: 1; }
.card .label { display: inline-block; border-radius: .28rem; padding: .23rem .45rem; background: var(--ice); color: var(--deep); font-size: .68rem; }
.card p { margin: 0; font-size: .91rem; color: var(--muted); }
.arrow { display: grid; place-items: center; position: absolute; top: .85rem; right: .7rem; width: 1.6rem; height: 1.6rem; background: var(--paper); color: var(--deep); border-radius: 50%; }
.topics { background: #111f4d; color: white; padding: clamp(1.2rem, 3vw, 2.5rem); border-radius: 1.15rem; }
.topics .eyebrow { color: var(--amber); }
.topic-grid { margin-top: 1.2rem; }
.topic-grid a { color: var(--ink); display: flex; align-items: center; gap: .5rem; text-decoration: none; padding: .65rem .8rem; background: white; border-radius: .5rem; min-height: 3.3rem; }
.topic-grid a:focus-visible { outline-color: var(--amber); }
.topic-grid small, .topic-grid a span { color: var(--deep); }
.topic-grid a span { margin-left: auto; }
.topic-grid a:hover { background: var(--ice); }
.page-heading { margin-top: clamp(1.5rem, 4vw, 3rem); max-width: 59rem; }
.page-heading > a { display: inline-flex; align-items: center; min-height: 2.8rem; color: var(--deep); font-weight: 700; margin-bottom: .65rem; }
.category-heading { max-width: none; border-radius: 1rem; border: 1px solid var(--line); background: var(--ice); padding: clamp(1rem, 4vw, 2.5rem); }
.category-heading .lead { margin-bottom: 0; }
.article { max-width: 56.25rem; margin-inline: auto; margin-bottom: 3.5rem; }
.article h1 { font-size: clamp(2.05rem, 5vw, 3.8rem); }
.cover { margin: 1.4rem 0; background: var(--ice); border-radius: 1rem; overflow: hidden; }
.prose { max-width: 69ch; }
.prose section { margin-block: 2rem; scroll-margin-top: 1rem; }
.prose section h2 { font-size: clamp(1.38rem, 2.7vw, 2rem); }
.prose a { color: var(--deep); }
.note, .contents { border: 1px solid var(--line); border-radius: .7rem; margin-block: 1rem 1.65rem; padding: 1rem 1.2rem; background: white; }
.note { background: var(--ice); border-left: .28rem solid var(--blue); }
.contents h2 { font-size: 1.26rem; }
.contents ol, .credit-list { padding-inline-start: 1.35rem; }
.contents li + li, .credit-list li + li { margin-top: .45rem; }
.credit-list { margin-bottom: 3rem; }
footer { background: white; border-top: 1px solid var(--line); padding-block: 1.6rem; margin-top: 2rem; }
.foot { display: flex; align-items: center; gap: .5rem 1.4rem; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--muted); font-size: .86rem; }
.foot > a:last-child { margin-left: auto; font-size: .88rem; font-weight: 700; color: var(--deep); }
@media (min-width: 901px) {
  .hero-copy { padding-block: clamp(1.55rem, 2.2vw, 2rem); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bar { flex-wrap: wrap; padding-block: .46rem; }
  .bar nav { width: 100%; order: 3; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { grid-template-columns: 1fr; margin-top: .82rem; }
  .hero-media { min-height: clamp(8.5rem, 30vw, 13rem); }
  .hero-break { display: none; }
  .hero-caption { inset: auto .5rem .5rem auto; padding: .38rem .55rem .38rem .38rem; }
  .hero-caption strong { font-size: .76rem; }
  .hero-icon { margin-right: .4rem; width: 1.8rem; height: 1.8rem; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 599px) {
  .bar nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 0; }
  .bar nav a { justify-content: center; padding: .22rem .16rem; font-size: .83rem; min-height: 2.18rem; }
  .hero-copy { padding: 1rem 1.2rem; }
  .hero h1 { font-size: clamp(1.98rem, 7.9vw, 2.85rem); }
  .hero .lead { margin-bottom: .85rem; }
  .cards { grid-template-columns: 1fr; }
  .section-head { margin-bottom: .56rem; }
  .section-head .text-link { min-height: 2rem; }
  .foot > a:last-child { margin-left: 0; }
}
@media (max-width: 365px) {
  .section-head .text-link { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
}

/* Editorial front page and long reads */
.compact-hero { grid-template-columns: 1.5fr 1fr; }
.compact-hero .hero-copy { padding: clamp(1rem, 3vw, 2.3rem); }
.compact-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.compact-hero .lead { margin: 0; max-width: 46ch; }
.compact-hero .hero-media { min-height: 0; }
.front-page { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: .65rem 1rem; }
.story a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, .37fr); gap: .7rem; align-items: center; background: white; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: .8rem; padding: .7rem; height: 100%; }
.story a:hover :is(h3,h4) { color: var(--deep); text-decoration: underline; }
.story img { aspect-ratio: 16/10; object-fit: cover; border-radius: .48rem; }
.story p { color: var(--muted); margin: .35rem 0 0; font-size: .9rem; }
.story h3 { margin-bottom: 0; }
.front-page .story:first-child { grid-row: span 3; }
.front-page .story:first-child a { align-content: start; grid-template-columns: 1fr; }
.front-page .story:first-child h3 { font-size: clamp(1.3rem, 2.45vw, 2.05rem); }
.front-page .story:first-child img { aspect-ratio: 2.65; object-position: center; }
.shelf-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-top: .9rem; }
.shelf { background: white; border: 1px solid var(--line); border-top: .23rem solid var(--blue); border-radius: .8rem; padding: 1rem; scroll-margin-top: 1rem; }
.shelf-heading { display: flex; gap: .55rem; align-items: center; }
.shelf-heading h3 { margin: 0; }
.shelf-num { font: 700 .76rem ui-monospace, monospace; background: var(--ice); color: var(--deep); padding: .36rem; border-radius: .35rem; }
.shelf > p { color: var(--muted); font-size: .9rem; margin: .55rem 0; }
.shelf .story a { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .6rem 0; }
.shelf .story h4 { font-size: .95rem; line-height: 1.25; margin: 0; }
.topic-grid a { border: 1px solid var(--line); min-height: 2.8rem; }
.studio { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.75fr); align-items: center; gap: 1rem; background: var(--ink); color: white; border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.studio .eyebrow { color: var(--amber); }
.studio p { margin-bottom: 0; }
.studio video { display: block; width: 100%; height: auto; border-radius: .7rem; background: var(--deep); }
.home-faq, .newsletter { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.newsletter { background: var(--ice); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding-block: .72rem; font-weight: 720; }
details p { margin: 0 0 .78rem; }
.article-intro { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.5; }
.essentials h2, .sources h2, .case-study h2 { letter-spacing: -.025em; font-size: 1.32rem; }
.essentials ul, .sources ul { padding-inline-start: 1.2rem; }
.essentials li + li, .sources li + li { margin-top: .42rem; }
.sources, .case-study { margin-top: 1.8rem; padding: 1rem 1.2rem; border-radius: .8rem; background: #e9edf6; }
.case-study { background: #fff3d6; border-left: .28rem solid #c98a28; }
.contact-form { margin: 0 0 2rem; max-width: 42rem; background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form label { display: grid; gap: .3rem; margin-block: .8rem; font-weight: 650; }
.contact-form :is(input,textarea) { font: inherit; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); padding: .5rem; width: 100%; }
.contact-form button { font: inherit; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .55rem; }
@media (max-width: 900px) { .shelf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .compact-hero { grid-template-columns: 1fr minmax(4.5rem,.34fr); }
  .compact-hero h1 { font-size: clamp(1.5rem, 5.9vw, 2.6rem); }
  .compact-hero .lead { font-size: .9rem; }
  .front-page { grid-template-columns: 1fr; gap: .5rem; }
  .front-page .story:first-child { grid-row: auto; }
  .front-page .story:first-child a { grid-template-columns: minmax(0,1fr) minmax(4rem,.4fr); align-content: center; }
  .front-page .story:first-child img { aspect-ratio: 1; }
  .front-page .story:first-child p { display: none; }
  .studio { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .shelf-grid { grid-template-columns: 1fr; } }

/* Homepage: full-width editorial chapters around a shared reading grid. */
.mag-band { padding-block: clamp(2.35rem, 5.3vw, 5rem); scroll-margin-top: .65rem; }
.mag-heading { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); align-items: end; gap: .6rem 2rem; margin-bottom: clamp(1rem, 2.6vw, 2rem); }
.mag-heading h2, .mag-band.newsletter h2 { font-size: clamp(2rem, 4.9vw, 4.2rem); margin: 0; text-wrap: initial; }
.mag-heading > p { color: var(--muted); max-width: 38ch; margin: 0 0 .18rem; }
.magazine-home .compact-hero .hero-copy { padding-block: clamp(.85rem, 2.3vw, 1.8rem); }
.magazine-home #guides { margin-top: 0; padding-top: clamp(1.1rem, 2.4vw, 2rem); }
.mag-lead .mag-heading { margin-bottom: .95rem; }
.mag-lead .mag-heading h2 { font-size: clamp(2rem, 4.1vw, 3.45rem); }
.mag-lead .front-page .story:first-child a { background: var(--deep); color: white; }
.mag-lead .front-page .story:first-child a:hover h3 { color: var(--amber); }
.mag-lead .front-page .story:first-child a p { color: #e6edff; }
.mag-workshop { background: var(--ice); border-block: 1px solid var(--line); }
.mag-workshop .mag-heading { max-width: 62rem; }
.mag-workshop .mag-heading h2, .mag-benchmarks .mag-heading h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); }
.decision-routes, .benchmark-cards { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; padding: 0; margin: 0; }
.decision-routes > li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .75rem; padding: clamp(.9rem, 1.65vw, 1.35rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.route-step { display: grid; place-items: center; width: 2.1rem; aspect-ratio: 1; border-radius: 50%; background: var(--deep); color: white; font: 750 .78rem ui-monospace,monospace; }
.decision-routes h3 { margin-top: .15rem; }
.decision-routes p { color: var(--muted); }
.decision-routes a { color: var(--deep); font-weight: 700; }
.mag-library { background: white; }
.mag-library .topic-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: .55rem; }
.mag-library .topic-grid a { background: var(--ice); }
.mag-library .topic-grid a:hover { background: #d4e1ff; text-decoration: underline; }
.mag-library .shelf-grid { gap: 1.2rem; margin-top: 1.4rem; }
.mag-library .shelf { background: var(--paper); padding: 0 .9rem .6rem; border-top: 0; }
.mag-library .shelf-heading { min-height: 3.5rem; padding: .65rem .9rem; margin-inline: -.9rem; border-radius: .76rem .76rem 0 0; background: var(--ice); }
.mag-library .shelf:nth-child(3n+2) .shelf-heading { background: #ffefcc; }
.mag-library .shelf .story a { background: transparent; }
.mag-benchmarks { background: #fff0d0; border-block: 1px solid #e8d7af; padding-block: clamp(1.8rem, 3.7vw, 3.4rem); }
.mag-benchmarks .mag-heading > p { color: var(--ink); }
.benchmark-cards > li { background: var(--surface); border: 1px solid #e8d7af; border-radius: .9rem; padding: clamp(1rem, 2vw, 1.5rem); }
.benchmark-cards strong { display: block; font-size: clamp(1.55rem, 3.4vw, 3rem); font-weight: 820; letter-spacing: -.055em; line-height: 1.08; }
.benchmark-cards a, .faq-layout a { color: var(--deep); font-weight: 720; }
.cash-example { margin-top: 1.25rem; padding: clamp(1rem,2.5vw,1.8rem); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 1.35rem; align-items: center; color: white; background: var(--ink); border-radius: 1rem; }
.cash-example .eyebrow, .cash-example a { color: var(--amber); }
.cash-example a:focus-visible { outline-color: var(--amber); }
.cash-example h3 { font-size: clamp(1.4rem,2.7vw,2.2rem); }
.cash-example a { font-weight: 730; }
.cash-example-calculation { background: white; color: var(--ink); border-radius: .75rem; padding: .95rem 1rem; }
.cash-example-calculation h4 { margin: 0; }
.cash-example ol { padding-inline-start: 1.35rem; margin-bottom: 0; }
.cash-example li + li { margin-top: .35rem; }
.mag-band.home-faq, .mag-band.newsletter { border: 0; border-radius: 0; padding-block: clamp(2.35rem, 5.3vw, 5rem); }
.faq-layout, .mag-band.newsletter > .wrap { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 1.25rem; align-items: start; }
.faq-layout details { border: 0; background: var(--paper); border-radius: .7rem; padding: 0 .95rem; margin-bottom: .55rem; }
.faq-layout aside { background: var(--ice); border-radius: .9rem; padding: 1.2rem; }
.mag-band.newsletter { background: var(--deep); color: white; }
.mag-band.newsletter .eyebrow { color: var(--amber); }
.mag-band.newsletter .mail-status { align-self: center; background: white; color: var(--ink); border-radius: .85rem; padding: 1.1rem; margin: 0; }
.magazine-home + footer { margin-top: 0; }
@media (min-width: 721px) { .magazine-home .compact-hero .hero-copy { padding-block: 1.3rem; } }
@media (max-width: 1000px) { .mag-library .topic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .mag-heading, .decision-routes, .cash-example, .faq-layout, .mag-band.newsletter > .wrap { grid-template-columns: 1fr; }
  .mag-lead .mag-heading > p { display: none; }
  .magazine-home .compact-hero .hero-copy { padding-inline: .85rem; }
  .magazine-home .compact-hero .lead { line-height: 1.38; }
  .benchmark-cards { grid-template-columns: 1fr; gap: .65rem; }
}
@media (max-width: 480px) { .mag-library .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
