/* JACK'S MOBILE MASTERY — PREMIUM V2 */

:root {
  --jacks-navy: #14283d;
  --jacks-blue: #1d6898;
  --jacks-gold: #efb64b;
  --jacks-radius: 12px;
}

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

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  letter-spacing: -.025em;
  line-height: 1.2;
}

p, li {
  line-height: 1.65;
}

img, video {
  max-width: 100%;
  height: auto;
}

button,
input[type="submit"],
a.button,
a.btn {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

button:hover,
input[type="submit"]:hover,
a.button:hover,
a.btn:hover {
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--jacks-gold);
  outline-offset: 3px;
}

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

textarea {
  resize: vertical;
  min-height: 120px;
}

form input,
form textarea,
form select {
  max-width: 100%;
  box-sizing: border-box;
}

section {
  scroll-margin-top: 90px;
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  p, li {
    overflow-wrap: break-word;
  }

  form input,
  form textarea,
  form select {
    width: 100%;
  }

  button,
  input[type="submit"] {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
