/* Reset, type, layout primitives. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
.d1, .d2, .d3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
.d1 { font-size: var(--fs-d1); }
.d2 { font-size: var(--fs-d2); }
.d3 { font-size: var(--fs-d3); letter-spacing: -0.03em; line-height: 1.04; }
.h4 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: var(--fs-lede); line-height: 1.38; letter-spacing: -0.012em; text-wrap: pretty; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--mute); }

/* The kicker: plain words, muted. The orange square is kept for the logo and the headline. */
.kicker {
  display: flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; color: var(--mute);
}
.on-ink .kicker { color: var(--mute-on-ink); }
.on-orange .kicker { color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.on-ink { background: var(--ink); color: var(--white); }
.on-ink .muted { color: var(--mute-on-ink); }
.on-orange { background: var(--orange); color: var(--ink); }
.on-orange .muted { color: var(--ink); }
.on-white { background: var(--white); }

.skip-link {
  position: fixed; left: var(--gutter); top: 12px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Reveal: a short rise. Nothing fades in from far away. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
