/* ============================================
   Foundation / Skip Link
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 0.75rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  z-index: 9999;
  transition: top 0.2s;

  &:focus { top: 0; }
}

/* ============================================
   Foundation / Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd, ol, ul {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

input, textarea, select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ============================================
   Foundation / Base
   ============================================ */
html {
  background: var(--color-paper);
}
html, body {
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
/* body stays transparent so the fixed .p-visual__layer--a can show through
   the (transparent) p-visual section while every other section is opaque */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--color-brand);
  color: #fff;
}

