:root {
  --primary-color: white;
  --secondary-color: #f9f9f9;
  --text-color: #333;
  --highlight-color: #e8e8e8;
  --active-color: #ddd;
  --border-color: #666;
  --shadow-color: rgba(0, 0, 0, 0.1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary-color: #1b1d22;
  --secondary-color: #101216;
  --text-color: #f1f3f5;
  --highlight-color: #2c3139;
  --active-color: #3a424d;
  --border-color: #aab4c0;
  --shadow-color: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #1b1d22;
    --secondary-color: #101216;
    --text-color: #f1f3f5;
    --highlight-color: #2c3139;
    --active-color: #3a424d;
    --border-color: #aab4c0;
    --shadow-color: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* Global Styles */
body {
  font-family: verdana, sans-serif;
  padding: 0.5vh 2vw 1vw;
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-size: 0.90rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  color: var(--text-color);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--border-color);
  outline-offset: 3px;
}

main {
  scroll-margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  padding: 8px;
}

#main-content {
  scroll-margin-top: 1rem;
}

.theme-toggle {
  display: block;
  margin: 0.25rem 0.25rem 0 auto;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--highlight-color);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--border-color);
  outline-offset: 2px;
}

h1 {
  font-family: Inter, system-ui, Helvetica, Arial, sans-serif;
  text-align: center;
  font-size: 2.85rem;
  margin-bottom: 0;
  margin-top: 0;
}

h2 {
  font-family: Inter, system-ui, Helvetica, Arial, sans-serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0;
}

h3 {
  font-family: Inter, system-ui, Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

p {
  margin-left: 25px;
  margin-right: 25px;
}

.center {
  align-content: center;
  text-align: center;
}

.email-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.copy-email-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--primary-color);
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
}

.copy-email-button:hover,
.copy-email-button:focus-visible {
  background: var(--highlight-color);
}

.copy-email-status {
  font-size: 0.85rem;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
  font-size: 0.90rem;
}

a,
a:visited,
a:hover,
a:active {
  color: var(--text-color);
}


/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  #videos iframe {
    width: 90%;
    height: 300px;
  }

  p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }

  main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
  }

  #videos iframe {
    width: 95%;
    height: 250px;
  }

  p {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

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