/* ==============================================================
   KIH SKATEBOARDING — hand-drawn skate-zine stylesheet
   Palette + accents are CSS variables so they're easy to retune.
================================================================= */

:root {
  --teal: #1FA8B8;
  --gold: #E5B12E;
  --black: #0A0A0A;
  --cream: #FAF3E3;
  --purple: #7B4EA8; /* mascot hair accent only */
  --denim: #2C4E9E;  /* mascot jeans accent only */

  --border-thick: 5px;
  --border-thin: 3px;
  --shadow-flat: 6px 6px 0 var(--black);
  --shadow-flat-lg: 10px 10px 0 var(--black);
  --shadow-flat-sm: 4px 4px 0 var(--black);
}

/* ---------------- reset ---------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--teal);
  color: var(--black);
  font-family: "Kalam", cursive, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

input,
select,
textarea {
  font-family: "Kalam", cursive, sans-serif;
}

h1, h2, h3 {
  font-family: "Permanent Marker", cursive, sans-serif;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
}

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

/* ---------------- shared bits ---------------- */

.underline-svg,
.scribble-underline,
.hand-line {
  display: block;
  fill: none;
  stroke: var(--black);
  stroke-width: 6;
  stroke-linecap: round;
}

.underline-svg {
  width: 100%;
  height: 10px;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link.active .underline-svg {
  opacity: 1;
}

.scribble-underline {
  width: 100%;
  height: 26px;
  stroke-width: 7;
  margin-top: -6px;
}

.scribble-underline.small {
  height: 20px;
  stroke-width: 6;
}

.hand-line {
  flex: 1;
  height: 10px;
  stroke-width: 5;
  min-width: 60px;
}

.arrow-svg {
  width: 26px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 16px 26px;
  min-height: 48px;
  border: var(--border-thick) solid var(--black);
  border-radius: 14px;
  color: var(--black);
  transform: rotate(-2deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  box-shadow: var(--shadow-flat);
}

.btn:hover,
.btn:focus-visible {
  animation: wobble 0.4s ease-in-out;
}

.btn:active {
  transform: translate(3px, 3px) rotate(0deg);
  box-shadow: 3px 3px 0 var(--black);
}

@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.section-heading {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--black);
  display: inline-block;
}

.section-heading.light {
  color: var(--black);
}

/* ==============================================================
   NAV
================================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--teal);
  border-bottom: var(--border-thick) solid var(--black);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.nav-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--black);
  background: var(--teal);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  width: 100%;
  justify-content: flex-start;
}

.nav-link {
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 6px 2px;
  min-height: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

/* ==============================================================
   HERO
================================================================= */

.hero {
  position: relative;
  background: var(--teal);
  overflow: hidden;
  padding-top: clamp(24px, 5vw, 56px);
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.hero-title {
  line-height: 0.88;
}

.hero-title-line1 {
  display: block;
  font-size: clamp(4.5rem, 22vw, 8.5rem);
  color: var(--black);
}

.hero-title-line2 {
  display: block;
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  color: var(--black);
  margin-top: 6px;
}

.hero-tagline {
  font-family: "Permanent Marker", cursive, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1rem, 3.4vw, 1.4rem);
  line-height: 1.4;
  margin: 22px 0 28px;
  color: var(--black);
}

.hero-btn {
  font-size: 1.2rem;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
}

.gold-splatter {
  position: absolute;
  inset: -10% -10% 0 -10%;
  width: 120%;
  height: 120%;
}

.mascot {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  animation: sway 2.5s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.road {
  position: relative;
  width: 100%;
  height: 34px;
  background: var(--black);
  display: flex;
  align-items: center;
}

.road-lane {
  width: 100%;
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    var(--cream) 0,
    var(--cream) 34px,
    transparent 34px,
    transparent 68px
  );
}

/* ==============================================================
   VIDEOS
================================================================= */

.videos-section {
  position: relative;
  background: var(--teal);
  padding: 0 24px 90px;
  margin-top: -40px;
}

.videos-card {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--cream);
  border: var(--border-thick) solid var(--black);
  border-radius: 28px 12px 32px 16px;
  box-shadow: var(--shadow-flat);
  padding: 28px 24px 32px;
}

.videos-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--black);
  margin-bottom: 22px;
}

.videos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.splatter-blob {
  position: relative;
  max-width: 260px;
  margin: 26px auto 0;
}

.black-splatter {
  width: 100%;
  height: auto;
  display: block;
}

.splatter-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Kalam", cursive, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--cream);
  line-height: 1.25;
  margin: 0;
}

/* ==============================================================
   INSTRUCTOR
================================================================= */

.instructor {
  background: var(--cream);
  border-top: var(--border-thick) solid var(--black);
  padding: 60px 24px;
}

.instructor > .section-heading {
  display: block;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.team-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

.team-member {
  text-align: center;
}

.polaroid {
  position: relative;
  background: #fff;
  border: var(--border-thin) solid var(--black);
  border-radius: 4px;
  padding: 16px 16px 56px;
  max-width: 280px;
  margin: 0 auto;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-flat);
}

.polaroid-2 {
  transform: rotate(2.5deg);
}

.polaroid-3 {
  transform: rotate(-1.5deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--border-thin) solid var(--black);
}

.polaroid-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: 1.4rem;
  color: var(--black);
  margin: 0;
}

.tape {
  position: absolute;
  width: 76px;
  height: 34px;
  fill: var(--cream);
  opacity: 0.85;
  stroke: var(--black);
  stroke-width: 1;
}

.tape-left {
  top: -16px;
  left: -18px;
  transform: rotate(-38deg);
}

.tape-right {
  top: -14px;
  right: -18px;
  transform: rotate(32deg);
}

.member-bio {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 30ch;
  margin: 18px auto 0;
}

.offer-cards {
  max-width: 1100px;
  margin: 56px auto 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.instructor-cta {
  display: flex;
  max-width: 320px;
  margin: 0 auto;
  justify-content: center;
}

.offer-card {
  border: var(--border-thick) solid var(--black);
  padding: 18px 20px;
  box-shadow: var(--shadow-flat-sm);
}

.offer-card h3 {
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.offer-card p {
  margin: 0;
  font-size: 1rem;
}

.card-cream {
  background: var(--cream);
  border-radius: 22px 8px 24px 10px;
  transform: rotate(-1.5deg);
}

.card-teal {
  background: var(--teal);
  border-radius: 8px 24px 10px 22px;
  transform: rotate(1.5deg);
}

/* ==============================================================
   BOOK
================================================================= */

.book-section {
  position: relative;
  background: var(--teal);
  border-top: var(--border-thick) solid var(--black);
  padding: 70px 24px 90px;
  overflow: hidden;
}

.book-splatter {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  max-width: 480px;
  opacity: 0.9;
  z-index: 0;
}

.book-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.book-subheading {
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 18px auto 40px;
}

.notebook-form {
  position: relative;
  background: var(--cream);
  border: var(--border-thick) solid var(--black);
  border-top: none;
  border-radius: 4px 4px 20px 20px;
  padding: 46px 28px 32px;
  text-align: left;
  box-shadow: var(--shadow-flat);
  overflow: visible;
}

.torn-edge {
  position: absolute;
  top: -18px;
  left: calc(-1 * var(--border-thick));
  width: calc(100% + 2 * var(--border-thick));
  height: 26px;
  fill: var(--cream);
  stroke: var(--black);
  stroke-width: 5;
  stroke-linejoin: round;
}

.form-row {
  margin-bottom: 20px;
  border-bottom: 2px dashed rgba(10, 10, 10, 0.25);
  padding-bottom: 14px;
}

.form-row label {
  display: block;
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.form-row .optional {
  font-family: "Kalam", cursive, sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 0.8rem;
  opacity: 0.6;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--black);
  padding: 6px 2px;
  min-height: 32px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: rgba(31, 168, 184, 0.1);
}

.form-row textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  transform: rotate(1deg);
  margin-top: 6px;
}

/* ==============================================================
   FOOTER
================================================================= */

.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 40px 24px 24px;
  border-top: var(--border-thick) solid var(--black);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.social-circle:hover,
.social-circle:focus-visible {
  transform: translateY(-3px) rotate(-6deg);
}

.social-circle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.6;
}

.footer-tagline {
  font-family: "Permanent Marker", cursive, sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--cream);
  margin: 0;
}

.footer-skateboard {
  width: 100px;
  height: auto;
}

.footer-skateboard rect,
.footer-skateboard circle {
  fill: var(--cream);
}

.footer-skateboard .motion-line {
  stroke: var(--cream);
  stroke-width: 3;
  stroke-linecap: round;
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 28px 0 0;
}

/* ==============================================================
   RESPONSIVE — tablet & up
================================================================= */

@media (min-width: 700px) {
  .splatter-blob {
    position: absolute;
    right: 4%;
    bottom: -30px;
    max-width: 220px;
    margin: 0;
  }

  .videos-section {
    padding-bottom: 140px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .offer-cards {
    flex-direction: row;
  }

  .offer-card {
    flex: 1;
  }
}

@media (min-width: 860px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .hero-copy {
    width: 55%;
    text-align: left;
  }

  .hero-art {
    width: 45%;
    max-width: none;
  }

  .book-content {
    text-align: left;
  }

  .book-subheading {
    margin-left: 0;
  }

  .submit-btn {
    width: auto;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-copyright {
    text-align: left;
  }
}
