@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
  isolation: isolate;
}

html.reveal-ready body {
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 240ms ease;
}

a:hover {
  color: var(--color-focus);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  font-family: var(--font-display);
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-strong);
  color: var(--color-accent-contrast);
}

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