/* Tailwind-like utility CSS for xdrang.is */
/* Party brand color: #2F45C5 (from xD logo blue) */

:root {
  --party: #2F45C5;
  --party-light: #4A5FE0;
  --party-dark: #1A2B8C;
}

/* === Fonts === */
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Martina Plantijn';
  src: url('/fonts/MartinaPlantijn-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Martina Plantijn', Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === Layout === */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

/* === Flexbox === */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* === Grid === */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* === Typography === */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

/* === Colors === */
.bg-party { background-color: var(--party); }
.bg-party-dark { background-color: var(--party-dark); }
.bg-party-light { background-color: var(--party-light); }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.text-white { color: #fff; }
.text-party { color: var(--party); }
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-t { border-top: 1px solid; }

/* === Components === */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border: 1px solid #e5e7eb; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.overflow-hidden { overflow: hidden; }
.min-h-screen { min-height: 100vh; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-20 { width: 5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-6 { height: 1.5rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.w-auto { width: auto; }
.object-cover { object-fit: cover; }
.space-y-1 > * + * { margin-top: 0.25rem; }

/* === Transitions === */
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }
.transition-shadow { transition: box-shadow 150ms; }
.transition-opacity { transition: opacity 150ms; }
.transition-all { transition: all 150ms; }

/* === Hover states === */
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-party-dark:hover { background-color: var(--party-dark); }
.hover\:bg-party-light:hover { background-color: var(--party-light); }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.hover\:text-blue-200:hover { color: #bfdbfe; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-party:hover { color: var(--party); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:border-party\/30:hover { border-color: rgb(47 69 197 / 0.3); }

/* === Opacity === */
.opacity-80 { opacity: 0.8; }

/* === Prose (for markdown content) === */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: #111827; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #111827; }
.prose p { margin-bottom: 1rem; color: #374151; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; color: #374151; }
.prose li::marker { color: var(--party); }
.prose a { color: var(--party); text-decoration: underline; }
.prose a:hover { color: var(--party-dark); }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--party);
  padding-left: 1rem;
  font-style: italic;
  color: #6b7280;
  margin: 1.5rem 0;
}

/* === Party-specific utility === */
.bg-party\/10 { background-color: rgb(47 69 197 / 0.1); }
.text-party\/30 { color: rgb(47 69 197 / 0.3); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.border-2 { border-width: 2px; }

/* === Form styles === */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus {
  outline: none;
  border-color: var(--party);
  box-shadow: 0 0 0 3px rgb(47 69 197 / 0.15);
}
textarea.form-input { resize: vertical; min-height: 8rem; }
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #374151;
}

/* === Responsive === */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline { display: inline; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:h-32 { height: 8rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}