/* Base layer: the rules every later step assumes are in place.
*    Every value here comes from tokens.css. */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: var(--s3); }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s1); }
h4 { font-size: var(--s0); }

p, ul, ol { margin: 0 0 1em; }

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

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

code, kbd, samp, pre, tt { font-family: var(--mono); font-size: .92em; }

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

hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }

::selection { background: var(--blue-tint); color: var(--ink); }

/* Layout primitives */

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

.prose { max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-120%);
  padding: .6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.skip:focus { transform: translateY(0); }
