/* ============================================================================
   REQUIZA — reset, elements, layout primitives
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--line);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[data-nav-open] body { overflow: hidden; }

/* -- Headings ---------------------------------------------------------------
   Archivo's width axis is the hierarchy. Sizes step, widths step with them:
   the broader the setting, the more of the institution is speaking. */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-broad), "wght" 700;
  font-weight: 700;
  color: var(--fg);
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--t-h1);
  font-variation-settings: "wdth" var(--wdth-wide), "wght" 700;
  line-height: 1.02;
  letter-spacing: -0.018em;
}

/* Balancing a headline is right when it sets in two or three lines. On a phone
   it runs to four or five and balancing just leaves short ragged lines, so the
   headline fills instead. */
@media (max-width: 46rem) {
  h1, .h1 { text-wrap: wrap; }
}

h2, .h2 {
  font-size: var(--t-h2);
  font-variation-settings: "wdth" var(--wdth-broad), "wght" 700;
  line-height: 1.08;
  letter-spacing: -0.014em;
}

h3, .h3 {
  font-size: var(--t-h3);
  font-variation-settings: "wdth" var(--wdth-open), "wght" 650;
  line-height: 1.16;
  letter-spacing: -0.008em;
}

h4, .h4 {
  font-size: var(--t-h4);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 650;
  line-height: 1.3;
  letter-spacing: -0.004em;
}

p { text-wrap: pretty; }
p + p { margin-top: var(--s-3); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg);
}

.prose { max-width: var(--wrap-text); }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: var(--s-1); }

/* No italic file is loaded, so emphasis is weight and a brass underline.
   It reads as a hand marking a line in the terms, which is what it means. */
em, i {
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: var(--hair);
  text-underline-offset: 0.2em;
}

strong, b { font-weight: 700; }

small { font-size: var(--t-label); }

/* -- Utility type ----------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: var(--t-label);
  line-height: var(--line);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--fg-muted);
  margin: 0;
}

.eyebrow--accent { color: var(--brass); }

.label {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-muted);
}

/* Every figure on this site is set here: narrowed Archivo, tabular, lining.
   The money column has to align on the digit at 360px, and it does. */
.figure, .num, td.num, th.num {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 550;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.005em;
}

.figure--lg {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-variation-settings: "wdth" 90, "wght" 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  display: block;
}

.muted { color: var(--fg-muted); }
.nowrap { white-space: nowrap; }

/* -- Links ------------------------------------------------------------------ */

a {
  color: var(--charter);
  text-decoration: underline;
  text-decoration-thickness: var(--hair);
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease);
}
a:hover { color: var(--charter-mid); text-decoration-color: currentColor; }
/* Buttons carry their own colour and must be excluded here: without :not(.btn)
   this rule outranks .btn--brass and paints brass text on a brass button. */
.on-charter a:not(.btn) { color: var(--brass-light); }
.on-charter a:not(.btn):hover { color: #F0CE86; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 999;
  transform: translateY(-120%);
  background: var(--charter);
  color: var(--chalk);
  padding: var(--s-2) var(--s-3);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "wght" 600;
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* -- Media ------------------------------------------------------------------- */

img, svg, video { max-width: 100%; height: auto; display: block; }
svg:not([fill]) { fill: currentColor; }

hr {
  border: 0;
  border-top: var(--hair) solid var(--hairline);
  margin: var(--s-5) 0;
}

/* -- Layout primitives --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--tight { max-width: var(--wrap-tight); }
.wrap--wide  { max-width: 88rem; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.625rem, 1.5rem + 4vw, 5.25rem); }
.section--flush-top { padding-top: 0; }

/* The ledger margin. On wide screens each section carries a rail on its left
   holding the folio number and a hairline that runs the height of the section
   — the margin of a ruled book. It collapses to an inline folio on phones. */
.section__inner { position: relative; }

@media (min-width: 64rem) {
  .section--railed .section__inner {
    padding-left: var(--rail);
  }
  .section--railed .section__inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    bottom: 0;
    width: 0;
    border-left: var(--hair) solid var(--hairline);
  }
  .folio {
    position: absolute;
    left: 0;
    top: 0;
    writing-mode: vertical-rl;
    transform: none;
  }
}

.folio {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: var(--s-2);
}

.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }
.stack-xl > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--s-4); }
@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--s-5); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--s-6); }
  .split--wide-left  { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

.section-head { max-width: 46rem; }
.section-head > * + * { margin-top: var(--s-2); }
.section-head .lead { margin-top: var(--s-3); }

.center { text-align: center; margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -- Reveal on scroll ------------------------------------------------------------
   The page settles rather than performs: content lifts by a quarter line. */

[data-reveal] {
  opacity: 0;
  transform: translateY(var(--s-2));
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }
html:not([data-js]) [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
