/**
 * G-SMASH V2 - Base Styles
 * Reset, Typography, Global Styles
 */

/* ============================================
   CSS RESET / NORMALIZE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-wrap: break-word;
  word-break: normal;
  font-feature-settings: 'palt';
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-contrast);
  background-color: var(--color-secondary);

}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-dark-text);
}

h1 {
  font-size: var(--font-size-hero);
}

h2 {
  font-size: var(--font-size-headline);
}

h3 {
  font-size: var(--font-size-section-title);
}

h4 {
  font-size: var(--font-size-subheading);
}

h5 {
  font-size: var(--font-size-small-heading);
}

h6 {
  font-size: var(--font-size-small);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

/* ============================================
   FORM ELEMENTS
   ============================================ */

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

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

/* ============================================
   UTILITY RESET
   ============================================ */

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

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

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-white);
  color: var(--color-dark-text);
  padding: 8px;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

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

*:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}
