@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --orange: #ee440e;
  --orange-strong: #d63c0c;
  --orange-ink: #c2380b;
  --orange-soft: #fde9e1;
  --blue: #0e7deb;
  --blue-ink: #0a5bb8;
  --blue-deep: #0b2b5e;
  --blue-night: #071d40;
  --blue-soft: #e4effc;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #142033;
  --ink-muted: #4f5d72;
  --line: #d6dde7;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.75rem, 1.8rem + 4.6vw, 5rem);

  --gutter: 16px;
  --max: 1200px;
  --measure: 68ch;
  --bar-h: 64px;
  --radius-s: 4px;
  --radius-m: 10px;
  --slant: -8deg;
}

@media (min-width: 48em) {
  :root { --gutter: 32px; }
}

@media (min-width: 75em) {
  :root { --bar-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); font-style: italic; }
h2 { font-size: var(--step-4); font-style: italic; }
h3 { font-size: var(--step-2); font-stretch: 85%; line-height: 1.2; }
h4 { font-size: var(--step-1); font-stretch: 90%; line-height: 1.25; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

ul, ol { margin: 0; padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

.placeholder {
  display: inline;
  padding: 0.05em 0.35em;
  border: 1px dashed var(--orange-ink);
  border-radius: var(--radius-s);
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-size: 0.92em;
  font-weight: 600;
  font-style: normal;
  font-stretch: 100%;
}

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