/* FinanceInTime public site. Tokens follow the brand mockups; dark theme via
   prefers-color-scheme or html[data-theme] (set by the toggle in /site.js). */

/* Self-hosted so readers' IP addresses are not sent to a font CDN (GDPR). SIL OFL, see /fonts/OFL.txt. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  /* Warm ink and champagne brass on ivory paper: a quiet, premium financial palette. */
  --ink-800: #1b1916;
  --ink-900: #11100e;
  --brass: #b08d57;
  --brass-hover: #9a7a47;
  --brass-text: #7c6034;
  --brass-soft: rgba(176, 141, 87, 0.12);
  --up: #1d7a4c;
  --down: #b3393c;
  --text: #1a1815;
  --text-soft: #3e3a34;
  --muted: #7a736a;
  --border: #e7e1d6;
  --surface: #f4f0e8;
  --bg: #fbf9f5;
  --card: #ffffff;
  --ink: #15130f;
  --focus: #7c6034;
  --linkedin: #0a66c2;
  --shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 10px 30px rgba(26, 24, 21, 0.06);
  --radius: 4px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --header-h: 65px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brass: #c9a66b;
    --brass-hover: #d8b87f;
    --brass-text: #d4b47c;
    --brass-soft: rgba(201, 166, 107, 0.14);
    --up: #4cbf85;
    --down: #e57373;
    --text: #ece7de;
    --text-soft: #cfc8bc;
    --muted: #a0988c;
    --border: #2d2a25;
    --surface: #1b1916;
    --bg: #0f0e0c;
    --card: #161512;
    --ink: #f6f2ea;
    --focus: #d4b47c;
    --linkedin: #70b5f9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --brass: #c9a66b;
  --brass-hover: #d8b87f;
  --brass-text: #d4b47c;
  --brass-soft: rgba(201, 166, 107, 0.14);
  --up: #4cbf85;
  --down: #e57373;
  --text: #ece7de;
  --text-soft: #cfc8bc;
  --muted: #a0988c;
  --border: #2d2a25;
  --surface: #1b1916;
  --bg: #0f0e0c;
  --card: #161512;
  --ink: #f6f2ea;
  --focus: #d4b47c;
  --linkedin: #70b5f9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ink);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.icon {
  flex: none;
  vertical-align: middle;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:not(.js) .js-only {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-800);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 860px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold {
  background: var(--brass);
  color: var(--ink-900);
}

.btn-gold:hover {
  background: var(--brass-hover);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--brass);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface);
}

/* ---------------------------------------------------------------- Header */

.site-header {
  background: var(--bg);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-icon {
  display: inline-flex;
  border-radius: 10px;
}

.brand-icon img {
  display: block;
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.wordmark {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wm-in {
  color: var(--brass);
  font-size: 0.8em;
  text-transform: lowercase;
  margin: 0 1px;
}

.tagline {
  margin-top: 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.tagline .sep {
  color: var(--brass);
  margin: 0 2px;
}

.search-pill {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 520px;
  height: 48px;
  margin: 0 auto;
  padding: 0 6px 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.search-pill:focus-within {
  border-color: var(--brass);
}

.search-pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.search-pill input:focus {
  outline: none;
}

.search-pill input::placeholder {
  color: var(--muted);
}

.search-pill button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.theme-toggle .icon-moon {
  display: none;
}

.search-icon,
.menu {
  display: none;
}

/* Dark: brand icon on a white tile, moon icon in the toggle */
:root[data-theme='dark'] .brand-icon {
  background: #fff;
  padding: 3px 6px;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-icon {
    background: #fff;
    padding: 3px 6px;
  }

  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: none;
  }

  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: inline;
  }
}

/* ---------------------------------------------------------------- Navigation */

.primary-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-row ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-row ul::-webkit-scrollbar {
  display: none;
}

.nav-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0 12px;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-row a:hover {
  color: var(--ink);
  border-bottom-color: var(--border);
}

.nav-row a.is-active {
  border-bottom-color: var(--brass);
  color: var(--ink);
  font-weight: 700;
}

.live-link {
  flex: none;
}

/* ---------------------------------------------------------------- Ticker */

.ticker-row {
  border-bottom: 1px solid var(--border);
}

.tv-widget {
  position: relative;
}

.tv-ticker .tradingview-widget-container {
  min-height: 46px;
}

.tradingview-widget-copyright {
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
  color: var(--muted);
}

.tradingview-widget-copyright a {
  color: var(--muted);
  text-decoration: none;
}

.tradingview-widget-copyright a:hover {
  text-decoration: underline;
}

.tv-ticker .tradingview-widget-copyright {
  padding-bottom: 4px;
}

/* ---------------------------------------------------------------- Shared bits */

.pill {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.pill-outline {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass-text);
}

.kicker {
  margin: 0 0 6px;
  color: var(--brass-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker-kind {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.block-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.block-head h2 a {
  color: inherit;
  text-decoration: none;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brass-text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
}

.section-title {
  margin: 36px 0 18px;
  font-size: 22px;
  font-weight: 800;
}

.empty {
  padding: 32px 0;
  color: var(--muted);
}

/* Placeholder for articles without an image */
.ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.ph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ph-bars {
  fill: rgba(176, 141, 87, 0.28);
}

.ph-line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Cards */

.card {
  position: relative;
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.card-media img,
.card-media .ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

/* Whole card is clickable through the headline link. */
.card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-title a:focus-visible {
  outline: none;
}

.card-title a:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.card:hover .card-title a {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-dek {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-compact {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-compact .card-media {
  height: 100%;
  min-height: 96px;
}

.card-compact .card-body {
  padding: 12px 14px 12px 0;
}

.card-standard .card-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.card-standard .card-title {
  font-size: 19px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.card-lead .card-media {
  margin: 0;
}

.card-lead .card-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.card-lead .card-dek {
  font-size: 17px;
}

/* ---------------------------------------------------------------- Home */

.home {
  padding-top: 24px;
}

.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-areas: 'hero secondary aside';
  gap: 18px;
}

.home-hero {
  grid-area: hero;
}

.home-secondary {
  grid-area: secondary;
}

.home-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home .topics {
  display: none;
}

.home-secondary .block-head {
  display: none;
}

.compact-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
  height: 100%;
}

.compact-list .card-compact .card-media {
  aspect-ratio: auto;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-900);
  color: #fff;
  isolation: isolate;
  --focus: #e3c04d;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img,
.hero-media .ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0) 25%, rgba(12, 11, 9, 0.5) 55%, rgba(12, 11, 9, 0.92) 100%);
}

.hero-overlay {
  position: relative;
  padding: 32px;
  max-width: 760px;
}

.hero-overlay .pill {
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title a {
  color: #fff;
  text-decoration: none;
}

.hero-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-title a:focus-visible {
  outline: none;
}

.hero-title a:focus-visible::after {
  outline: 3px solid var(--focus);
  outline-offset: -6px;
  border-radius: 14px;
}

.hero-title .accent {
  color: var(--brass);
}

.hero-dek {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.hero-empty {
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.top-stories {
  padding: 18px 18px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.numbered {
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbered li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.numbered .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass-text);
  font-weight: 800;
}

.numbered a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.numbered a:hover {
  text-decoration: underline;
}

.newsletter-box {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border: 1px solid var(--border);
  color: #fff;
  --focus: #e3c04d;
}

/* Faint rising bars, echoing the logo */
.newsletter-box::before {
  content: '';
  position: absolute;
  right: 16px;
  top: 14px;
  width: 92px;
  height: 72px;
  opacity: 0.16;
  background:
    linear-gradient(var(--brass), var(--brass)) 0 100% / 12px 30% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 20px 100% / 12px 45% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 40px 100% / 12px 62% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 60px 100% / 12px 80% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 80px 100% / 12px 100% no-repeat;
}

.nl-icon {
  display: inline-grid;
  color: var(--brass);
}

.newsletter-box h2 {
  position: relative;
  margin: 10px 0 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.newsletter-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.subscribe-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.subscribe-form input[type='email'] {
  flex: 1 1 150px;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

.subscribe-form input[type='email']::placeholder {
  color: #64748b;
}

.subscribe-form .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
}

/* Honeypot: off-screen for people, still in the form for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 12px 6px;
  border-radius: var(--radius);
  background: var(--brass-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.topic-grid li:nth-child(even) a {
  background: var(--surface);
  border: 1px solid var(--border);
}

.topic-icon {
  color: var(--brass-text);
}

.cat-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 0;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cat-block {
  padding: 0 20px;
  border-left: 1px solid var(--border);
}

.cat-block:nth-child(4n + 1) {
  padding-left: 0;
  border-left: 0;
}

.cat-block:nth-child(4n) {
  padding-right: 0;
}

.cat-block .card-compact {
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 8px;
  overflow: visible;
}

.cat-block .card-compact .card-media {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  border-radius: 8px;
}

.cat-block .card-compact .card-body {
  padding: 0;
}

.cat-block .kicker {
  display: none;
}

.cat-block .card-title {
  font-size: 15.5px;
}

.cat-block .meta {
  font-size: 12.5px;
  gap: 2px 6px;
}

/* ---------------------------------------------------------------- Listings */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.page-head {
  margin: 18px 0 28px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-desc {
  max-width: 70ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--brass);
}

.chip.is-active {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #fff;
}

:root[data-theme='dark'] .chip.is-active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink-900);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .chip.is-active {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink-900);
  }
}

.results-title {
  margin: 0 0 20px;
  font-size: 20px;
}

.search-page {
  margin: 16px 0 0;
  max-width: 640px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

a.page-link:hover {
  border-color: var(--brass);
}

.page-link.is-disabled {
  opacity: 0.4;
}

.page-status {
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- Article */

.article-container {
  max-width: 828px;
}

.article-head {
  margin: 16px 0 24px;
}

.article-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.article-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-dek {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.byline-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

.byline-name a {
  color: var(--ink);
}

.byline-pending {
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}

.byline-role {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--linkedin);
}

.icon-link:hover {
  background: var(--surface);
}

.article-meta-side {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--brass);
}

.copy-status {
  color: var(--up);
  font-size: 13px;
  font-weight: 600;
}

.article-hero {
  margin: 0 0 28px;
}

.article-hero img,
.article-hero .ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-hero figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.article-hero .credit {
  display: block;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.prose {
  font-size: 18.5px;
  line-height: 1.72;
  color: var(--text);
  overflow-wrap: break-word;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  margin: 0 0 1.2em;
}

.prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: 25px;
  font-weight: 800;
}

.prose h3 {
  margin: 1.4em 0 0.5em;
  font-size: 21px;
  font-weight: 700;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--brass-text);
}

.prose blockquote {
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--brass);
  color: var(--text-soft);
}

.prose img {
  border-radius: 8px;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15.5px;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.9em;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.info-box {
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: 10px;
  background: var(--surface);
}

.info-box h2 {
  margin: 0 0 10px;
  color: var(--brass-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.info-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.info-box li {
  margin: 6px 0;
}

.info-box li::marker {
  color: var(--brass);
}

.story-box {
  margin: 36px 0;
}

.story-box-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 17px;
}

.mini-timeline {
  margin: 0 0 14px 6px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.mini-timeline li {
  position: relative;
  padding: 0 0 12px 18px;
  font-size: 15px;
}

.mini-timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brass);
}

.mini-timeline time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-timeline .is-current {
  font-weight: 700;
}

.sources {
  margin: 36px 0 24px;
}

.sources h2,
.more-in h2 {
  font-size: 22px;
  font-weight: 800;
}

.sources ol {
  padding-left: 1.3em;
}

.sources li {
  margin: 8px 0;
}

.src-publisher {
  color: var(--text-soft);
}

.src-type {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.notes {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.note {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink-800);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
}

.note-correction {
  border-left-color: var(--brass);
}

.note time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.disclaimer-box {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 10px;
  background: var(--brass-soft);
  font-size: 14.5px;
}

.disclaimer-box p {
  margin: 0;
}

.more-in {
  margin-top: 48px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--ink-900);
  font-size: 15px;
}

.preview-banner a {
  color: var(--ink-900);
  font-weight: 700;
}

.preview-banner.is-live {
  background: #15803d;
  color: #fff;
}

.preview-banner.is-live a {
  color: #fff;
}

/* ---------------------------------------------------------------- People, stories, pages */

.author-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 20px 0 8px;
}

.author-head h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.avatar-lg {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.author-role {
  margin: 0 0 8px;
  color: var(--brass-text);
  font-weight: 700;
}

.author-cats,
.person-cats {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 15px;
}

.author-bio {
  max-width: 70ch;
  margin: 0 0 10px;
  color: var(--text-soft);
}

.social-links {
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
}

.social-links .icon-link {
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.person-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.person-card .avatar {
  width: 64px;
  height: 64px;
}

.avatar-initials {
  display: grid;
  place-items: center;
  background: var(--ink-800);
  color: #fff;
  font-weight: 800;
}

.person-card h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.person-role {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.timeline,
.corrections-list {
  margin: 0 0 0 6px;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.timeline li,
.corrections-list li {
  position: relative;
  padding: 0 0 28px 26px;
}

.timeline li::before,
.corrections-list li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--brass);
}

.timeline h3,
.corrections-list h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.timeline h3 a,
.corrections-list h2 a {
  text-decoration: none;
}

.timeline h3 a:hover,
.corrections-list h2 a:hover {
  text-decoration: underline;
}

.timeline p,
.corrections-list p {
  margin: 0;
  color: var(--text-soft);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px !important;
  color: var(--muted) !important;
  font-size: 13.5px;
}

.timeline-meta .kicker {
  margin: 0;
}

.static-page h1 {
  margin: 18px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.markets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  margin-bottom: 20px;
}

.market-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.market-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.tv-overview .tradingview-widget-container,
.tv-chart .tradingview-widget-container {
  height: 560px;
}

.message-page {
  padding-top: 56px;
  padding-bottom: 32px;
}

.message-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.lead {
  font-size: 18px;
  color: var(--text-soft);
}

.form-error {
  color: var(--down);
  font-weight: 600;
}

.error-code {
  margin: 0;
  color: var(--brass-text);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.message-page .subscribe-form {
  max-width: 520px;
  margin-bottom: 24px;
}

.message-page .search-page {
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  margin-top: 64px;
  padding: 44px 0 28px;
  background: var(--ink-900);
  color: #cbd5e1;
  --focus: #e3c04d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr;
  gap: 32px;
}

.brand-footer .brand-icon {
  background: #fff;
  padding: 3px 6px;
}

.brand-footer .brand-icon img {
  height: 40px;
}

.brand-footer .wordmark,
.brand-footer .tagline {
  color: #fff;
}

.brand-footer .wordmark {
  font-size: 24px;
}

.brand-footer .tagline {
  font-size: 7px;
}

.footer-about {
  margin: 16px 0 0;
  font-size: 14px;
  max-width: 34ch;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.footer-col li {
  margin: 0 0 8px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-newsletter p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  color: #cbd5e1;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Mobile tab bar & menu */

.tabbar {
  display: none;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu .icon-shut,
.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-shut {
  display: inline;
}

.menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  padding: 8px 16px calc(96px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.menu-list a.is-active {
  color: var(--brass-text);
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.theme-toggle-wide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1180px) {
  .home-top {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      'hero hero'
      'secondary aside';
  }

  .hero-card {
    min-height: 440px;
  }

  .cat-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-block:nth-child(n) {
    padding: 0 20px;
    border-left: 1px solid var(--border);
  }

  .cat-block:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .cat-block:nth-child(2n) {
    padding-right: 0;
  }

  .nav-row ul {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 65px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .container {
    padding: 0 16px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--border);
  }

  .preview-banner ~ .site-header {
    top: 42px;
  }

  .header-bar {
    min-height: 64px;
    height: 64px;
    gap: 8px;
  }

  .brand-icon img {
    height: 40px;
  }

  .wordmark {
    font-size: 23px;
  }

  .tagline {
    font-size: 6.6px;
    margin-top: 4px;
  }

  .search-pill,
  .subscribe-btn,
  .header-actions > .theme-toggle,
  .primary-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 4px;
  }

  .search-icon {
    display: inline-grid;
    background: var(--surface);
  }

  .menu {
    display: block;
  }

  .home-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .home .topics {
    display: block;
  }

  .home-secondary .block-head {
    display: flex;
  }

  .home-aside .top-stories {
    display: none;
  }

  .hero-card {
    min-height: 440px;
  }

  .hero-overlay {
    padding: 22px;
  }

  .hero-dek {
    font-size: 16px;
  }

  .compact-list {
    display: block;
  }

  .compact-list .card-compact {
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .compact-list .card-compact:last-child {
    border-bottom: 0;
  }

  .compact-list .card-compact .card-media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    border-radius: 8px;
  }

  .compact-list .card-compact .card-body {
    padding: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .markets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tv-overview .tradingview-widget-container,
  .tv-chart .tradingview-widget-container {
    height: 480px;
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(26, 24, 21, 0.06);
  }

  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
  }

  .tabbar a.is-active {
    color: var(--brass-text);
  }

  .more-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .tagline {
    display: none;
  }

  .wordmark {
    font-size: 22px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-sections {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-block:nth-child(n) {
    padding: 0;
    border-left: 0;
  }

  .author-head {
    flex-direction: column;
    gap: 12px;
  }

  .avatar-lg {
    width: 88px;
    height: 88px;
  }

  .prose {
    font-size: 17.5px;
  }

  .pagination {
    gap: 6px;
  }

  .page-link {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .chip,
  .page-link,
  .share-btn,
  .icon-btn {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease;
  }
}

@media print {
  .site-header,
  .ticker-row,
  .site-footer,
  .tabbar,
  .share,
  .more-in,
  .preview-banner {
    display: none !important;
  }

  body {
    padding: 0;
  }
}

/* ================================================================
   Editorial theme: ivory paper, warm ink, champagne brass, serif headlines.
   Kept last so it refines the component rules above.
   ================================================================ */

body {
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
.card-title,
.hero-title,
.block-head h2,
.section-title,
.newsletter-box h2,
.welcome-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(176, 141, 87, 0.28);
}

/* Header */
.site-header {
  background: var(--bg);
  border-top: 3px solid var(--brass);
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wm-in {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.86em;
  color: var(--brass);
}

.tagline {
  color: var(--muted);
  letter-spacing: 0.14em;
}

.search-pill {
  background: var(--card);
  height: 44px;
}

.btn {
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-gold {
  background: var(--ink-800);
  color: #fbf9f5;
}

.btn-gold:hover {
  background: var(--brass);
  color: var(--ink-900);
}

/* Navigation: small caps with a brass underline */
.nav-row a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom-width: 2px;
}

.nav-row a.is-active {
  font-weight: 700;
}

/* Labels */
.pill {
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.view-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.block-head h2 {
  font-size: 22px;
}

/* Image placeholder: ivory with a brass line instead of a dark block */
.ph {
  background: linear-gradient(135deg, var(--surface) 0%, #ebe4d7 100%);
}

.ph-bars {
  fill: rgba(176, 141, 87, 0.18);
}

/* Cards: flat, hairline borders, generous type */
.card-compact {
  box-shadow: none;
}

.card-title {
  font-size: 18px;
  line-height: 1.28;
}

.card-standard .card-title {
  font-size: 21px;
}

.card:hover .card-title a {
  text-decoration-thickness: 1px;
}

/* Hero */
.hero-card {
  border-radius: var(--radius);
}

.hero-title {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-title .accent {
  font-style: italic;
  color: #d9bd8c;
}

/* Top stories: serif numerals instead of filled circles */
.top-stories {
  background: var(--card);
}

.numbered li {
  border-bottom: 1px solid var(--border);
}

.numbered li:last-child {
  border-bottom: 0;
}

.numbered .num {
  width: auto;
  height: auto;
  background: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--brass);
}

.numbered a {
  font-size: 15px;
}

/* Newsletter: light panel with a brass rule */
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--brass);
  color: var(--text);
  padding: 26px 22px 24px;
}

.newsletter-box::before {
  display: none;
}

.newsletter-box h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.newsletter-box p {
  color: var(--text-soft);
}

.subscribe-form input[type='email'] {
  border-radius: 2px;
  background: var(--card);
  color: var(--text);
}

.subscribe-form input[type='email']::placeholder {
  color: var(--muted);
}

.subscribe-form .btn {
  border-radius: 2px;
}

/* Popular topics (mobile) */
.topic-grid a,
.topic-grid li:nth-child(even) a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Home before the first stories are published */
.home-top.is-empty {
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  grid-template-areas: 'hero aside';
  gap: 32px;
}

.welcome {
  position: relative;
  padding: 56px 56px 48px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(176, 141, 87, 0.12) 0%, rgba(176, 141, 87, 0) 60%),
    var(--card);
}

.welcome::after {
  content: '';
  position: absolute;
  left: 56px;
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--brass);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--brass-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.welcome-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.06;
}

.welcome-title em {
  color: var(--brass);
  font-weight: 500;
}

.welcome-dek {
  max-width: 56ch;
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.welcome-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.welcome-sections a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.welcome-sections a:hover {
  border-color: var(--brass);
  color: var(--ink);
}

.empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

/* Footer: light, quiet, with a brass rule */
.site-footer {
  background: var(--surface);
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  box-shadow: inset 0 2px 0 var(--brass);
  --focus: var(--brass-text);
}

.brand-footer .brand-icon {
  background: transparent;
  padding: 0;
}

.brand-footer .wordmark {
  color: var(--ink);
}

.brand-footer .tagline {
  color: var(--muted);
}

.footer-title {
  color: var(--brass-text);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.footer-col a {
  color: var(--text-soft);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top-color: var(--border);
  color: var(--muted);
}

.footer-note {
  color: var(--text-soft);
}

/* Dark theme: buttons turn brass so they stay visible on ink */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn-gold {
    background: var(--brass);
    color: #11100e;
  }
  :root:not([data-theme='light']) .ph {
    background: linear-gradient(135deg, #1b1916 0%, #24211d 100%);
  }
  :root:not([data-theme='light']) .brand-icon {
    background: #fbf9f5;
    border-radius: 4px;
    padding: 2px 4px;
  }
}

:root[data-theme='dark'] .btn-gold {
  background: var(--brass);
  color: #11100e;
}

:root[data-theme='dark'] .ph {
  background: linear-gradient(135deg, #1b1916 0%, #24211d 100%);
}

:root[data-theme='dark'] .brand-icon {
  background: #fbf9f5;
  border-radius: 4px;
  padding: 2px 4px;
}

@media (max-width: 899px) {
  .home-top.is-empty {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'hero' 'aside';
  }

  .welcome {
    padding: 40px 22px 32px;
  }

  .welcome::after {
    left: 22px;
  }
}

.brand-footer .brand-icon {
  flex: none;
}

.brand-footer .brand-icon img {
  width: auto;
  max-width: none;
}

.footer-title {
  font-family: var(--font);
  font-weight: 700;
}

/* Financial figures read best with lining numerals, even in the serif headlines. */
h1, h2, h3, .card-title, .hero-title, .block-head h2, .welcome-title {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1;
}
