@font-face {
  font-family: "CrimsonPro";
  src: url("fonts/CrimsonPro.ttf");
}

:root {
  --primary-color: #2fafe0;
  --primary-light: #4c8699;
  --primary-glow: rgba(47, 175, 224, 0.4);
  --primary-glow-soft: rgba(47, 175, 224, 0.15);
  --secondary-color: #8a0303;
  --bg-color: #0a0e12;
  --bg-secondary: #0f1418;
  --bg-tertiary: #161c22;
  --bg-card: rgba(47, 175, 224, 0.03);
  --text-color: #d8dee6;
  --text-muted: #7a8a9a;
  --border-color: rgba(47, 175, 224, 0.1);
  --border-glow: rgba(47, 175, 224, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: "CrimsonPro", Georgia, "Times New Roman", serif;
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image:
    radial-gradient(100% 600px at 50% 0%, rgba(47, 175, 224, 0.06) 0%, transparent 100%);
  background-repeat: no-repeat;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(47, 175, 224, 0.15);
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 0.6rem;
  margin-top: 1rem;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 12px rgba(47, 175, 224, 0.25);
}

h3 {
  font-size: 1.3rem;
  text-shadow: 0 0 8px rgba(47, 175, 224, 0.15);
}

p {
  margin: 0 0 1.2rem;
}

strong {
  color: #eef2f7;
}

/* ---- Links ---- */

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

#main a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(47, 175, 224, 0.4);
}

#main a:hover {
  text-decoration-color: #6dd5ff;
}

#main h1 a, #main h2 a, #main h3 a, #main h4 a, #main h5 a, #main h6 a {
  text-decoration: none;
}

a:hover {
  color: #6dd5ff;
  text-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(47, 175, 224, 0.2);
}

/* ---- Images ---- */

img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 4px;
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 340px;
  filter: drop-shadow(0 0 20px rgba(47, 175, 224, 0.2));
}

/* ---- Navigation ---- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 14, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 0 var(--border-glow);
}

nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem 0;
  flex-direction: column;
  gap: 5px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#nav-links {
  display: flex;
  align-items: center;
}

#nav-links a {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 1rem 1rem;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

#nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow-soft);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(47, 175, 224, 0.1);
}

/* ---- Lists ---- */

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

li strong {
  color: var(--primary-color);
  text-shadow: 0 0 6px rgba(47, 175, 224, 0.15);
}

/* ---- Tables ---- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

th {
  color: var(--primary-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(47, 175, 224, 0.2);
  border-bottom: 1px solid var(--border-glow);
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:hover {
  background-color: var(--bg-card);
}

tbody tr td:first-child {
  font-weight: bold;
}

/* ---- Forms ---- */

input, textarea, select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow-soft), 0 0 12px rgba(47, 175, 224, 0.1);
}

/* ---- Ticket form ---- */

#ticketForm label {
  display: block;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

#ticketForm button[type="submit"] {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#ticketForm button[type="submit"]:hover {
  background-color: #6dd5ff;
  box-shadow: 0 0 16px var(--primary-glow), 0 0 32px rgba(47, 175, 224, 0.15);
}

#ticketForm button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.sizing-chart {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.sizing-chart summary {
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(47, 175, 224, 0.4);
}

.sizing-chart h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ---- Instructor cards ---- */

h3 + p > img {
  display: block;
  border-radius: 6px;
  margin: 0.5rem 0 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(47, 175, 224, 0.06);
}

/* ---- Dividers / accents ---- */

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 2rem 0;
}

/* ---- Subscribe form ---- */

#subscribeForm {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

#subscribeForm input[type="email"] {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

#subscribeForm button {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#subscribeForm button:hover {
  background-color: #6dd5ff;
  box-shadow: 0 0 16px var(--primary-glow), 0 0 32px rgba(47, 175, 224, 0.15);
}

.error-msg {
  width: 100%;
  min-height: 1.5em;
  color: #fd3939;
}

/* ---- Updates feed ---- */

.feed > div {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.update-title {
  margin-bottom: 0.25rem;
}

.update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Gallery ---- */

#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--bg-tertiary);
  transition: box-shadow 0.2s ease;
}

.gallery-item:hover {
  box-shadow: 0 0 16px var(--primary-glow), 0 0 32px rgba(47, 175, 224, 0.1);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

.video-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ---- Lightbox ---- */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

#lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

#lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-media img, #lightbox-media video {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}

#lightbox-close, #lightbox-prev, #lightbox-next {
  position: fixed;
  z-index: 210;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#lightbox-close:hover, #lightbox-prev:hover, #lightbox-next:hover {
  opacity: 1;
}

#lightbox-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
}

#lightbox-prev {
  left: 1.5rem;
  font-size: 3rem;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-next {
  right: 1.5rem;
  font-size: 3rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---- Selection ---- */

::selection {
  background: rgba(47, 175, 224, 0.25);
  color: #fff;
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  #main {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .logo {
    max-width: 75%;
  }

  nav {
    padding: 0 1rem;
  }

  #nav-toggle {
    display: flex;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  #nav-links.open {
    display: flex;
  }

  #nav-links a {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
  }

  #nav-links a:last-child {
    border-bottom: none;
  }

  th, td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }

  img {
    max-width: 200px;
  }

  #gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  #lightbox-prev {
    left: 0.5rem;
    font-size: 2rem;
  }

  #lightbox-next {
    right: 0.5rem;
    font-size: 2rem;
  }

  #lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}
