/* Shared styles. */

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

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --ink: #0b1324;
  --muted: #5b6676;
  --rule: #d9dee5;
  --accent: #2b59ff;

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

  /* Scale (ratio ~1.25 on an 18px body). */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: 2.25rem;

  --measure: 34em;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}

.wordmark {
  color: var(--ink);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.masthead nav a {
  color: var(--ink);
  font-weight: 500;
}

.colophon {
  padding: 3rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.colophon p {
  margin: 0;
}
