:root {
  --bg: #0b1d36;
  --bg-deep: #071428;
  --panel: #11294a;
  --ink: #ffffff;
  --text: #dfe7f2;
  --muted: #93a6c2;
  --rule: rgba(255, 255, 255, .14);
  --accent: #4fb3ff;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 50; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

/* Masthead */
.masthead { background: var(--bg-deep); border-bottom: 1px solid var(--rule); }
.masthead__top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); padding-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.masthead__brand { text-align: center; padding-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.brand {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -.02em; line-height: 1; text-decoration: none; color: var(--ink);
}
.brand em { font-style: normal; }
.brand--small { font-size: 26px; margin: 0 0 8px; }
.masthead__nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding-top: 12px; padding-bottom: 12px;
}
.masthead__nav a { text-decoration: none; color: var(--muted); padding: 2px 0; border-bottom: 2px solid transparent; }
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* Article head */
.article__head { padding-top: 56px; padding-bottom: 36px; }
.kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
.kicker__tag { background: var(--accent); color: var(--bg-deep); padding: 5px 10px; letter-spacing: .14em; }
.headline {
  font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12; letter-spacing: -.02em; margin: 0 0 22px; color: var(--ink); text-wrap: balance;
}
.headline em { font-style: normal; }
.dek { font-size: clamp(19px, 2.1vw, 22px); font-weight: 300; line-height: 1.6; color: var(--text); margin: 0 0 32px; text-wrap: pretty; }

.byline {
  display: flex; align-items: center; gap: 14px; padding: 18px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.byline p { margin: 0; line-height: 1.4; }
.byline__avatar, .author__avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule);
  font-family: var(--sans); font-weight: 700; font-size: 16px;
}
.byline__name { font-size: 15px; color: var(--ink); }
.byline__meta { font-size: 13px; color: var(--muted); }
.share { margin-left: auto; }
.share__btn {
  font: 700 13px var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.share__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }

/* Hero */
.hero { margin: 0 0 48px; }
.hero__frame { max-width: 1200px; margin: 0 auto; overflow: hidden; }
.hero__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hero.is-in .hero__frame img { transform: scale(1); }
figcaption { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
figcaption span { display: block; margin-top: 2px; font-weight: 700; color: var(--text); }

/* Body */
.article__body p { margin: 0 0 1.4em; color: var(--text); text-wrap: pretty; }
.lead::first-letter {
  float: left; font-family: var(--serif); font-weight: 900; color: var(--ink);
  font-size: 4.6em; line-height: .85; padding: 8px 12px 0 0;
}
.subhead {
  font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.25; color: var(--ink);
  margin: 2em 0 .7em; letter-spacing: -.01em;
}
.subhead::before { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-bottom: 16px; }

.pullquote { margin: 2.2em 0; padding: 28px 0 28px 28px; border-left: 4px solid var(--accent); }
.pullquote p {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(23px, 3vw, 29px); line-height: 1.45; color: var(--ink) !important; margin: 0 !important;
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 2.4em 0; background: var(--panel); border: 1px solid var(--rule);
}
.stat { padding: 28px 22px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--sans); font-weight: 700; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.05; color: var(--accent); white-space: nowrap; }
.stat__label { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--text); }

/* Rent comparison */
.rent { margin: 2.4em 0; padding: 26px 24px; background: var(--panel); border: 1px solid var(--rule); }
.rent__title { margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.rent__row { display: grid; grid-template-columns: 190px 1fr 78px; align-items: center; gap: 14px; margin-bottom: 14px; font-family: var(--sans); font-size: 14px; }
.rent__name { font-weight: 700; color: var(--text); line-height: 1.3; }
.rent__track { height: 16px; background: rgba(255,255,255,.08); }
.rent__bar { display: block; height: 100%; width: var(--w); background: var(--muted); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.rent__bar--hot { background: var(--accent); }
.rent.is-in .rent__bar { transform: scaleX(1); }
.rent__val { font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rent__note { margin: 6px 0 0 !important; font-family: var(--sans); font-size: 13px; color: var(--muted) !important; }
.rent__note strong { color: var(--ink); }

/* Photos sit beside the text (text wraps around them) so reading never stops */
.photo { margin: 0 0 1.2em; }
.photo img { width: 100%; border-radius: 3px; }
.photo figcaption { font-size: 12px; margin-top: 8px; }
.photo--right { float: right; width: 44%; margin-left: 28px; }
.photo--left { float: left; width: 44%; margin-right: 28px; }
.pullquote, .stats, .rent, .subhead, .author, .sources { clear: both; }
.article__body::after { content: ""; display: block; clear: both; }
@media (min-width: 1180px) {
  /* Wide screens: images hang partly into the margin, leaving more room for text */
  .photo--right { width: 52%; margin-right: -180px; }
  .photo--left { width: 52%; margin-left: -180px; }
}
.inset { max-width: 980px; margin: 3em auto; padding: 0 24px; }
.inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Charts pair (white charts sit on a light card so they read on navy) */
.chart img { background: #fff; padding: 10px; }
.photo--right.chart, .photo--left.chart { width: 40%; }
@media (min-width: 1180px) {
  .photo--right.chart { width: 44%; margin-right: -120px; }
  .photo--left.chart { width: 44%; margin-left: -120px; }
}
@media (max-width: 760px) {
  .photo--right.chart, .photo--left.chart { width: 100%; }
}

.closing { font-size: 1.05em; }
.endmark { color: var(--accent); font-size: .7em; margin-left: 8px; vertical-align: 1px; }

/* Author box */
.author { display: flex; gap: 18px; padding: 28px 0; margin-top: 2.6em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.author__avatar { width: 64px; height: 64px; font-size: 20px; background: var(--accent); color: var(--bg-deep); border: 0; }
.author__name { font-family: var(--serif); font-weight: 900; font-size: 21px; margin: 0 0 6px !important; color: var(--ink) !important; }
.author__bio { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text) !important; margin: 0 !important; }

/* Sources */
.sources { margin: 2.6em 0 4em; font-family: var(--sans); }
.sources__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.sources ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text); }
.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
.sources a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.disclaimer { font-size: 13px !important; font-style: italic; color: var(--muted) !important; margin-top: 18px !important; }

/* Footer */
.footer { background: var(--bg-deep); border-top: 1px solid var(--rule); color: var(--muted); padding: 40px 0; font-family: var(--sans); font-size: 13px; text-align: center; }
.footer p { margin: 0; }

/* Reveal: content is visible by default; JS only adds a gentle fade */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow, .inset { padding: 0 16px; }
  .masthead__top { font-size: 11px; }
  .masthead__edition { display: none; }
  .masthead__nav { gap: 4px 16px; font-size: 12px; }
  .article__head { padding-top: 36px; }
  .byline { flex-wrap: wrap; }
  .share { margin-left: 62px; }
  .hero__frame img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .rent__row { grid-template-columns: 1fr 72px; }
  .rent__name { grid-column: 1 / -1; }
  .photo--right, .photo--left { float: none; width: 100%; margin: 1.6em 0; }
}

@media print {
  .progress, .masthead__nav, .share { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
