/* MAOKA — base: tokens, reset, typography, layout */
:root {
  --ivory: #F3F1EC;
  --offwhite: #FAF9F6;
  --stone: #D8D4CC;
  --softgrey: #E9E8E4;
  --graphite: #25272A;
  --charcoal: #111315;
  --ink: #17202A;
  --text-dark: #111315;
  --text-light: #F8F7F3;
  --muted-dark: #5D5F63;
  --muted-light: #A9A8A3;
  --accent: #245DFF;
  --accent-soft: #8FA8F5;
  --line-dark: rgba(17, 19, 21, .14);
  --line-light: rgba(248, 247, 243, .18);

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --fs-hero: clamp(46px, 9vw, 160px);
  --fs-display: clamp(44px, 7.2vw, 110px);
  --fs-h2: clamp(36px, 4.8vw, 76px);
  --fs-h3: clamp(24px, 2.4vw, 40px);
  --fs-lead: clamp(19px, 1.55vw, 24px);
  --fs-body: clamp(17px, 1.15vw, 19px);
  --fs-meta: 13px;

  --gutter: clamp(20px, 4.2vw, 72px);
  --maxw: 1680px;
  --section: clamp(88px, 12vw, 220px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--charcoal); color: var(--text-light); padding: 14px 20px; font-size: 15px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }
.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; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.section { padding-top: var(--section); padding-bottom: var(--section); position: relative; }
.section--tight { padding-top: calc(var(--section) * .6); padding-bottom: calc(var(--section) * .6); }

/* surfaces — data-theme drives the header colour */
.t-ivory { background: var(--ivory); color: var(--text-dark); }
.t-offwhite { background: var(--offwhite); color: var(--text-dark); }
.t-grey { background: var(--softgrey); color: var(--text-dark); }
.t-stone { background: var(--stone); color: var(--text-dark); }
.t-dark { background: var(--charcoal); color: var(--text-light); }
.t-graphite { background: var(--graphite); color: var(--text-light); }
.t-ink { background: var(--ink); color: var(--text-light); }
.t-dark .muted, .t-graphite .muted, .t-ink .muted { color: var(--muted-light); }
.muted { color: var(--muted-dark); }

/* ---------- typography ---------- */
.eyebrow {
  font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--plain::before { display: none; }
.display { font-size: var(--fs-display); font-weight: 400; letter-spacing: -0.045em; line-height: .96; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; line-height: 1.1; }
.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.01em; }
.meta { font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.upper { text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: 64ch; }
.measure-s { max-width: 46ch; }

.prose { font-size: var(--fs-body); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.035em; line-height: 1.04; margin-top: 2.2em; margin-bottom: .2em; }
.prose h3 { font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -0.02em; line-height: 1.15; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line-dark); }
.prose li:last-child { border-bottom: 1px solid var(--line-dark); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 16px; height: 1px; background: currentColor; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-size: 13px; letter-spacing: .06em; opacity: .6; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(17,19,21,.35); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 2em 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.t-dark .prose li, .t-ink .prose li, .t-graphite .prose li { border-color: var(--line-light); }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; background: var(--graphite); }
.media picture, .story-img picture, .ba > picture, .ba-after picture { width: 100%; height: 100%; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--cover { position: absolute; inset: 0; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.caption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 14px; opacity: .65; }

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