*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  background-color: black;
  background-image: url(/assets/backgrounds/helmet-angle-2.png);
  background-position: right;
  background-size: 80%;
  background-repeat: no-repeat;
  background-position-y: -20%;
  background-attachment: fixed;
  grid-template-rows:
    auto /* header */
    auto /* breadcrumb */
    1fr /* main */
    auto; /* footer */
  grid-template-areas:
    "header"
    "breadcrumb"
    "main"
    "footer";
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

main {
  width: 100%;
  min-height: 92vh;
  margin: 0 auto;
}

section {
  max-width: 1820px;
  min-height: 100vh;
  border-bottom: var(--border-width-hairline) solid var(--border-color);
  padding: var(--space-xs);
  padding-bottom: 5rem;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: white;
}

p {
  margin: 0;
}

ul,
ol {
  list-style: none;
}

article {
  padding: var(--space-md) 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-text-accent);
}

button {
  background-color: transparent;
  color: inherit;
  font: inherit;
  outline: none;
  padding: var(--space-2xs);
  border: var(--border-width-hairline) solid var(--border-color);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

button:hover {
  color: var(--color-text-accent);
}

textarea {
  resize: vertical;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Screen-reader only (for headings, labels, hints) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/*=== RDUCES MOTION SUPPORT (Web-Accessibility) ===*/

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/*Helpers */

.is-hidden {
  display: none !important;
}

/* Section Anchors */

.section-anchor,
.top-anchor {
  scroll-margin-top: var(--header-height);
}
