/* CE-IV — base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--night);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--haze); color: var(--night); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius); }

h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 600; color: var(--night); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--track-head); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--night); color: var(--stone); padding: .75rem 1rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

.visually-hidden {
  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 */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--flush-top { padding-top: 0; }

/* Type helpers */
.display { font-family: var(--sans); color: var(--night); font-size: var(--fs-display); line-height: .98; letter-spacing: -.04em; font-weight: 600; }
.accent { color: var(--blue); }           /* key words in headlines */
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--night); max-width: 36rem; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-small); }
.label {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--slate); line-height: 1.4;
}
.quote { font-family: var(--serif); font-style: italic; font-size: var(--fs-h3); line-height: 1.4; max-width: 34rem; }

/* The point: a Flamboyant dot that closes a headline, like the dot in the mark. */
.pt { color: var(--flame); }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: .35em; transition: color .2s var(--ease), text-underline-offset .2s var(--ease);
}
.text-link:hover { color: var(--night); text-underline-offset: .5em; }
.prose a { color: var(--blue); text-underline-offset: .2em; }
.prose a:hover { color: var(--night); }
