*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: var(--weight-body); font-size: var(--text-base); line-height: 1.6;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: var(--weight-title); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.label { margin: 0; font-family: var(--font-title); font-weight: var(--weight-title); font-size: var(--text-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--space-4); top: -4rem; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: var(--space-3); }

/* Learning page style: thin, wide, uppercase headlines + film grain over everything */
body[data-chapter="learning"] h1, body[data-chapter="learning"] h2 { font-weight: var(--weight-display); text-transform: uppercase; letter-spacing: 0.04em; }
body[data-chapter="learning"] .label { font-weight: 500; }
body[data-chapter="learning"]::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; background-image: var(--grain-image); opacity: var(--grain-opacity); }

/* The VAIBHAV. wordmark: Fraunces + a round red full stop */
.wordmark { font-family: var(--font-wordmark); font-weight: 900; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; }
.wordmark__dot { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em; border-radius: 50%; background: var(--red); }

.section { padding: var(--space-7) var(--gutter); }
.stub { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: var(--space-4); padding: var(--gutter); }
.stub h1 { font-size: var(--text-title); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
