/*
 * Modern CSS Reset
 * Based on Josh Comeau's reset + additions
 */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

:focus-visible {
  /* Background-agnostic focus ring (WCAG 1.4.11, >=3:1 on any ground):
     the ink-teal outline carries the indicator on light backgrounds, and the
     white inset halo carries it on dark sections where the teal alone is too
     low-contrast. */
  outline: 2px solid var(--color-verdigris-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85);
}

/* Skip to content — accessibility */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-verdigris-ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}
