/* =============================================================================
   base.css — reset and universal behaviour
   New England Users Group · prototype homepage
   ========================================================================== */

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

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

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

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: 0;
  margin: 0;
}

/* The attribute must always beat a component display rule. */
[hidden] {
  display: none !important;
}

/* Focus: a thin ink outline, in keeping with the hairline vocabulary. */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--focus, currentColor);
  outline-offset: 3px;
}

::selection {
  background: var(--marker, #ffd23f);
  color: var(--ink, #191c1f);
}

/* Screen-reader-only text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--marker, #ffd23f);
  color: #191c1f;
  font-family: var(--sans, sans-serif);
  font-size: 0.875rem;
  text-decoration: underline;
  transition: top 120ms ease;
}
.skip-link:focus {
  top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
