/* Financial Market Advisors – base: fonts, tokens, reset, type, layout */
@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --carbon: #111111;
  --graphite: #252525;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --limestone: #ECE8DF;
  --text: #191919;
  --text-2: #5B5B57;        /* 6.3:1 paper, 5.6:1 limestone */
  --border: #D8D3C9;        /* decorative rules only */
  --border-dark: #444440;   /* rules on dark surfaces */
  --control: #76726A;       /* form boundaries, 4.8:1 on white */
  --on-dark: #FFFFFF;
  --on-dark-2: #CFCBC2;     /* secondary text on graphite/carbon, 9:1+ */
  --error: #9E2A1F;         /* 7.5:1 on white */

  --serif: "Libre Caslon Display", "Libre Caslon Text", "Baskerville", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 1rem + 2.2vw, 44px);
  --section: clamp(44px, 1rem + 5.5vw, 112px);
  --mh: 96px;                 /* masthead height */
  --logo-w: 204px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1279px) { :root { --mh: 76px; --logo-w: 158px; } }
@media (max-width: 359px) { :root { --logo-w: 140px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mh) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.68; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--control); transition: text-decoration-color .18s ease-out; }
a:hover { text-decoration-color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; }
.on-dark :focus-visible, .feature :focus-visible, .site-footer :focus-visible, .masthead-brand:focus-visible, .side-block--dark :focus-visible { outline-color: var(--white); }
::selection { background: var(--carbon); color: var(--white); }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--carbon); color: var(--white); padding: 12px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); outline-color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Logo: original white artwork, transparent margin clipped (art 669×185 at 14,18 in 700×220). Dark surfaces only. */
.logo-clip { position: relative; display: block; overflow: hidden; width: var(--logo-w); height: calc(var(--logo-w) * 185 / 669); }
.logo-clip img { position: absolute; max-width: none; width: calc(var(--logo-w) * 700 / 669); height: auto; left: calc(var(--logo-w) * -14 / 669); top: calc(var(--logo-w) * -18 / 669); }
.logo--footer { --logo-w: 240px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; flex: none; }

/* Editorial label (narrow label column) */
.ed-label { display: grid; gap: 6px; margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); line-height: 1.4; }
.ed-num { font-family: var(--serif); font-size: 1.75rem; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1; font-weight: 400; }
.ed-head { position: relative; display: grid; gap: 20px; padding-top: 22px; margin-bottom: clamp(32px, 1rem + 2.5vw, 64px); border-top: 2px solid var(--carbon); }
@media (min-width: 960px) { .ed-head { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } }
.ed-title { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem); line-height: 1.08; max-width: 20ch; }
.ed-deck { margin-top: 16px; color: var(--text-2); max-width: 40rem; font-size: 1.1875rem; }

@media print {
  .masthead, .nav-toggle, .skip-link, .strip-actions { display: none !important; }
  body { background: #fff; }
  .reveal, .enter { opacity: 1 !important; transform: none !important; }
}
