:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-secondary: #9333ea;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #ffffff;
  --color-yellow-50: #fefce8;
  --color-yellow-200: #fef08a;
  --color-yellow-500: #eab308;
  --color-yellow-600: #ca8a04;
  --color-red-600: #dc2626;
  --color-green-600: #16a34a;
  --color-indigo-50: #eef2ff;
  --color-indigo-100: #e0e7ff;
  --color-indigo-600: #4f46e5;
  --color-indigo-700: #4338ca;
  --color-purple-50: #faf5ff;
  --color-purple-600: #9333ea;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

#mobile-menu {
  display: none;
}

#mobile-menu.active {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  #mobile-menu {
    display: flex !important;
    position: static;
    background: transparent;
  }
  
  #mobile-menu-close {
    display: none;
  }
}

.iconify {
  display: inline-block;
  width: 1em;
  height: 1em;
}

form input:invalid:not(:placeholder-shown),
form textarea:invalid:not(:placeholder-shown),
form select:invalid:not(:placeholder-shown) {
  border-color: var(--color-red-600);
}

form input:valid:not(:placeholder-shown),
form textarea:valid:not(:placeholder-shown),
form select:valid:not(:placeholder-shown) {
  border-color: var(--color-green-600);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#cookie-banner.show {
  transform: translateY(0);
}

#cookie-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#cookie-modal.active {
  display: flex;
}

#cookie-modal .modal-content {
  background-color: var(--color-white);
  border-radius: 1rem;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}

@media (max-width: 768px) {
  #cookie-modal .modal-content {
    max-height: 100vh;
    border-radius: 0;
  }
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--color-indigo-600);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--color-indigo-700);
}

.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

@media print {
  header,
  footer,
  #cookie-banner,
  #cookie-modal {
    display: none;
  }
}