/* The basic look of plain text and headings across the whole site. */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  color: var(--color-text);
}

/* One focus style for the whole site: a 2px orange ring, shown only when
   someone moves around with the keyboard (not on mouse clicks). */
:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 3px;
}
iframe:focus-visible { outline-offset: 0; }

/* "Skip to content": hidden until a keyboard user tabs to it, then it
   appears top left as a black callout bubble, like the other callouts. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 9px 14px 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #ffffff;
  background: #000000;
  border-radius: 16px;
  border-top-left-radius: 2px;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.text-muted {
  color: var(--color-text-muted);
}

main:focus { outline: none; }  /* landing point of "Skip to content" */

/* Videos with their own controls: the browser keeps focus inside the
   controls, so the ring is drawn on the video itself. */
video[controls]:focus { outline: 2px solid var(--color-signal); outline-offset: 3px; }

/* Text for screen readers only (e.g. "opens in a new tab"). */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
