/* Static site styles — same look as React app */
:root {
  --bg: #fafafa;
  --fg: #1e1e1e;
  --terracotta-50: #fdf5f0;
  --terracotta-100: #fbe8dc;
  --terracotta-200: #f5ccb3;
  --terracotta-300: #eeab85;
  --terracotta-400: #d4885f;
  --terracotta-500: #bf7b5a;
  --terracotta-600: #a8633e;
  --terracotta-700: #8a4e30;
  --terracotta-800: #6d3c25;
  --terracotta-900: #4f2b1a;
  --olive-50: #f3f7f3;
  --olive-100: #e2ede2;
  --olive-200: #c3dbc3;
  --olive-300: #9ec39e;
  --olive-400: #7a9e7e;
  --olive-500: #5f8563;
  --olive-600: #4a6b4d;
  --olive-700: #3c553e;
  --olive-800: #314532;
  --olive-900: #283928;
  --dark-bg: #0f0f0f;
  --dark-card: #1a1a1a;
  --dark-border: #2a2a2a;
  --dark-text: #e5e5e5;
  --dark-muted: #a3a3a3;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Dark theme values match tailwind.config.js */

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; outline: none; }
button:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 2px; border-radius: 0.75rem; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

::selection {
  background-color: rgba(191, 123, 90, 0.25);
  color: var(--fg);
}

.dark ::selection {
  background-color: rgba(122, 158, 126, 0.35);
  color: var(--dark-text);
}

/* Article card link: whole card is <a>, no underline or link color; поддержка rounded-xl и rounded-2xl */
a.group.block {
  text-decoration: none;
  color: inherit;
}

/* Dark mode cards subtle shadow */
.dark a.group.block.rounded-2xl {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Components */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gradient-terracotta {
  background: linear-gradient(135deg, #bf7b5a 0%, #d4885f 50%, #eeab85 100%);
}

.gradient-olive {
  background: linear-gradient(135deg, #5f8563 0%, #7a9e7e 50%, #9ec39e 100%);
}

.gradient-header {
  background: linear-gradient(135deg, rgba(191, 123, 90, 0.08) 0%, rgba(122, 158, 126, 0.08) 100%);
}

.dark .gradient-header {
  background: linear-gradient(135deg, rgba(191, 123, 90, 0.12) 0%, rgba(122, 158, 126, 0.12) 100%);
}

.gradient-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(191, 123, 90, 0.05) 50%, rgba(122, 158, 126, 0.08) 100%);
}

.dark .gradient-footer {
  background: linear-gradient(180deg, #0f0f0f 0%, rgba(191, 123, 90, 0.08) 50%, rgba(122, 158, 126, 0.1) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #bf7b5a 0%, #7a9e7e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.img-placeholder {
  background: linear-gradient(135deg, #e8ddd5 0%, #d5ddd5 100%);
}

/* Reserve space for images with dimensions to reduce CLS */
img[width][height] {
  height: auto;
}

.dark .img-placeholder {
  background: linear-gradient(135deg, #2a2420 0%, #202a20 100%);
}

.article-body { display: flex; flex-direction: column; }
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Layout & utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Sizing */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.h-px { height: 1px; }
.max-h-0 { max-height: 0; }
.max-h-80 { max-height: 20rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-\[18px\] { width: 18px; }
.h-\[18px\] { height: 18px; }
.w-\[500px\] { width: 500px; }
.h-\[500px\] { height: 500px; }
.w-\[400px\] { width: 400px; }
.h-\[400px\] { height: 400px; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.h-\[50vh\] { height: 50vh; }
.max-w-4xl { max-width: 56rem; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Padding / margin */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }

/* Display sizes (Tailwind theme) */
.text-display-sm { font-size: 2rem; line-height: 1.25; letter-spacing: -0.01em; }
.text-display-md { font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.text-display-lg { font-size: 3.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.text-display-xl { font-size: 4.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.text-\[2\.75rem\] { font-size: 2.75rem; }
.leading-\[1\.08\] { line-height: 1.08; }

/* Position */
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.top-20 { top: 5rem; }
.bottom-0 { bottom: 0; }

/* Border radius */
.rounded-r-xl { border-top-right-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* White on dark (overlays) */
.text-white { color: #fff; }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }

/* Gradients (black overlay) */
.bg-gradient-to-t { --tw-gradient-from: transparent; --tw-gradient-to: transparent; background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/20 { --tw-gradient-from: rgba(0, 0, 0, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-black\/70 { --tw-gradient-from: rgba(0, 0, 0, 0.7); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-black\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.2), var(--tw-gradient-to); }
.via-black\/40 { --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.4), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.from-terracotta-50 { --tw-gradient-from: var(--terracotta-50); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-terracotta-50\/50 { --tw-gradient-from: rgba(253, 245, 240, 0.5); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to); }
.via-background { --tw-gradient-stops: var(--tw-gradient-from), var(--bg), var(--tw-gradient-to); }
.to-olive-50 { --tw-gradient-to: var(--olive-50); }
.to-olive-50\/50 { --tw-gradient-to: rgba(243, 247, 243, 0.5); }
.dark .from-dark-bg,
.dark .dark\:from-dark-bg { --tw-gradient-from: var(--dark-bg); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.dark .via-dark-bg,
.dark .dark\:via-dark-bg { --tw-gradient-stops: var(--tw-gradient-from), var(--dark-bg), var(--tw-gradient-to); }
.dark .to-dark-bg,
.dark .dark\:to-dark-bg { --tw-gradient-to: var(--dark-bg); }
.bg-gradient-to-br { --tw-gradient-from: transparent; --tw-gradient-to: transparent; background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* CTA block radial overlays (React Home) */
.bg-\[radial-gradient\(circle_at_top_right\,rgba\(191\,123\,90\,0\.3)\,transparent_60%\)\] { background-image: radial-gradient(circle at top right, rgba(191, 123, 90, 0.3), transparent 60%); }
.bg-\[radial-gradient\(circle_at_bottom_left\,rgba\(122\,158\,126\,0\.2)\,transparent_60%\)\] { background-image: radial-gradient(circle at bottom left, rgba(122, 158, 126, 0.2), transparent 60%); }

/* Blur (for hero orbs) */
.blur-\[120px\] { filter: blur(120px); }
.blur-\[100px\] { filter: blur(100px); }

/* Duration */
.duration-400 { transition-duration: 400ms; }

/* Cursor */
.cursor-default { cursor: default; }

/* Disabled state */
.disabled\:bg-olive-500:disabled { background-color: var(--olive-500); }

/* Text */
.italic { font-style: italic; }

/* Space */
.space-y-2\.5 > * + * { margin-top: 0.625rem; }

/* Divide color */
.divide-foreground\/5 > * + * { border-color: rgba(30, 30, 30, 0.05); }

/* Transition */
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* SVG / icon animations: inline-block for reliable transform, explicit transition */
svg.group-hover\:translate-x-1,
.group-hover\:translate-x-1 {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}
svg.group-hover\:scale-105,
.group-hover\:scale-105 {
  display: inline-block;
}

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-28 { margin-top: 7rem; }
.-mt-20 { margin-top: -5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.ml-1 { margin-left: 0.25rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-1 { padding-left: 0.25rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-4 { padding-right: 1rem; }
.pr-6 { padding-right: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.sticky { position: sticky; }
.top-28 { top: 7rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.min-h-\[380px\] { min-height: 380px; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[21\/9\] { aspect-ratio: 21/9; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-terracotta-500\/10 { border-color: rgba(191, 123, 90, 0.1); }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-transparent { border-color: transparent; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.dark .border-dark-border,
.dark .dark\:border-dark-border { border-color: var(--dark-border); }
.divide-y > * + * { border-top-width: 1px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-glass { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.shadow-glass-lg { box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.hover\:shadow-glass:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.shadow-card-hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.object-cover { object-fit: cover; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.85\] { line-height: 1.85; }
.leading-\[1\.8\] { line-height: 1.8; }
.leading-\[1\.1\] { line-height: 1.1; }
.text-\[2\.5rem\] { font-size: 2.5rem; }
.text-\[3\.5rem\] { font-size: 3.5rem; }
.underline { text-decoration-line: underline; }
.decoration-terracotta-500\/30 { text-decoration-color: rgba(191, 123, 90, 0.3); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.ease-out { transition-timing-function: cubic-bezier(0,0,0.2,1); }

/* Colors - light (using rgba to avoid opacity cascading to children) */
.text-foreground { color: var(--fg); }
.text-foreground\/30 { color: rgba(30, 30, 30, 0.3); }
.text-foreground\/35 { color: rgba(30, 30, 30, 0.35); }
.text-foreground\/40 { color: rgba(30, 30, 30, 0.4); }
.text-foreground\/45 { color: rgba(30, 30, 30, 0.45); }
.text-foreground\/50 { color: rgba(30, 30, 30, 0.5); }
.text-foreground\/55 { color: rgba(30, 30, 30, 0.55); }
.text-foreground\/60 { color: rgba(30, 30, 30, 0.6); }
.text-foreground\/65 { color: rgba(30, 30, 30, 0.65); }
.text-foreground\/70 { color: rgba(30, 30, 30, 0.7); }
.text-foreground\/75 { color: rgba(30, 30, 30, 0.75); }
.text-foreground\/80 { color: rgba(30, 30, 30, 0.8); }

.bg-background { background-color: var(--bg); }
.bg-terracotta-500 { background-color: var(--terracotta-500); }
.bg-terracotta-500\/8 { background-color: rgba(191, 123, 90, 0.08); }
.bg-terracotta-500\/10 { background-color: rgba(191, 123, 90, 0.1); }
.bg-terracotta-500\/15 { background-color: rgba(191, 123, 90, 0.15); }
.bg-terracotta-200\/20 { background-color: rgba(245, 204, 179, 0.2); }
.bg-terracotta-800\/10 { background-color: rgba(109, 60, 37, 0.1); }
.bg-olive-200\/20 { background-color: rgba(195, 219, 195, 0.2); }
.bg-olive-800\/10 { background-color: rgba(49, 69, 50, 0.1); }
.bg-olive-500 { background-color: var(--olive-500); }
.bg-olive-500\/10 { background-color: rgba(95, 133, 99, 0.1); }
.bg-foreground\/\[0\.02\] { background-color: rgba(30, 30, 30, 0.02); }
.bg-foreground\/\[0\.03\] { background-color: rgba(30, 30, 30, 0.03); }
.bg-foreground\/\[0\.015\] { background-color: rgba(30, 30, 30, 0.015); }
.bg-foreground { background-color: var(--fg); }
.bg-foreground\/3 { background-color: rgba(30, 30, 30, 0.03); }
.bg-foreground\/5 { background-color: rgba(30, 30, 30, 0.05); }
.bg-terracotta-500\/5 { background-color: rgba(191, 123, 90, 0.05); }
.from-black\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-olive-50 { --tw-gradient-from: var(--olive-50); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-black\/20 { --tw-gradient-to: rgba(0, 0, 0, 0.2); }
.to-terracotta-50\/50 { --tw-gradient-to: rgba(253, 245, 240, 0.5); }
.bg-\[radial-gradient\(circle_at_bottom_left\,rgba\(255\,255\,255\,0\.15\)\,transparent_60\%\)\] { background-image: radial-gradient(circle at bottom left, rgba(255,255,255,0.15), transparent 60%); }
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.border-foreground\/5 { border-color: rgba(30, 30, 30, 0.05); }
.border-foreground\/8 { border-color: rgba(30, 30, 30, 0.08); }
.border-foreground\/10 { border-color: rgba(30, 30, 30, 0.1); }
.hover\:border-foreground\/15:hover { border-color: rgba(30, 30, 30, 0.15); }
.dark .hover\:border-foreground\/15:hover { border-color: rgba(255, 255, 255, 0.15); }
.border-terracotta-500\/20 { border-color: rgba(191, 123, 90, 0.2); }
.border-olive-500\/20 { border-color: rgba(95, 133, 99, 0.2); }
.hover\:border-terracotta-200\/40:hover { border-color: rgba(245, 204, 179, 0.4); }
.hover\:border-terracotta-200\/60:hover { border-color: rgba(245, 204, 179, 0.6); }
.hover\:border-terracotta-300\/50:hover { border-color: rgba(238, 171, 133, 0.5); }
.dark .dark\:hover\:border-terracotta-800\/30:hover { border-color: rgba(109, 60, 37, 0.3); }
.dark .dark\:hover\:border-terracotta-800\/40:hover { border-color: rgba(109, 60, 37, 0.4); }
.dark .dark\:hover\:border-terracotta-700\/40:hover { border-color: rgba(138, 78, 48, 0.4); }
.text-terracotta-500 { color: var(--terracotta-500); }
.text-terracotta-600 { color: var(--terracotta-600); }
.text-olive-500 { color: var(--olive-500); }
.text-olive-600 { color: var(--olive-600); }
.text-olive-700 { color: var(--olive-700); }
.text-amber-400 { color: #fbbf24; }

/* Dark mode — selectors match both unprefixed and dark:-prefixed class names */
.dark .bg-dark-bg,
.dark .dark\:bg-dark-bg { background-color: var(--dark-bg); }
.dark .bg-dark-card,
.dark .dark\:bg-dark-card { background-color: var(--dark-card); }
.dark .bg-dark-card\/40,
.dark .dark\:bg-dark-card\/40 { background-color: rgba(26, 26, 26, 0.4); }
.dark .bg-dark-text,
.dark .dark\:bg-dark-text { background-color: var(--dark-text); }
.dark .text-dark-text,
.dark .dark\:text-dark-text { color: var(--dark-text); }
.dark .text-dark-muted,
.dark .dark\:text-dark-muted { color: var(--dark-muted); }
.dark .text-dark-muted\/60,
.dark .dark\:text-dark-muted\/60 { color: rgba(163, 163, 163, 0.6); }
.dark .text-dark-muted\/70,
.dark .dark\:text-dark-muted\/70 { color: rgba(163, 163, 163, 0.7); }
.dark .text-terracotta-400,
.dark .dark\:text-terracotta-400 { color: var(--terracotta-400); }
.dark .text-terracotta-300,
.dark .dark\:text-terracotta-300 { color: var(--terracotta-300); }
.dark .text-olive-400,
.dark .dark\:text-olive-400 { color: var(--olive-400); }
.dark .text-olive-300,
.dark .dark\:text-olive-300 { color: var(--olive-300); }
.dark .border-dark-border,
.dark .dark\:border-dark-border { border-color: var(--dark-border); }
.dark .divide-dark-border > * + *,
.dark .dark\:divide-dark-border > * + * { border-color: var(--dark-border); }
.dark .bg-white\/5,
.dark .dark\:bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.dark .bg-white\/10,
.dark .dark\:bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.dark .bg-white\/15,
.dark .dark\:bg-white\/15 { background-color: rgba(255,255,255,0.15); }
.dark .bg-terracotta-500\/15,
.dark .dark\:bg-terracotta-500\/15 { background-color: rgba(191, 123, 90, 0.15); }
.dark .bg-terracotta-500\/20,
.dark .dark\:bg-terracotta-500\/20 { background-color: rgba(191, 123, 90, 0.2); }
.dark .dark\:bg-terracotta-800\/10 { background-color: rgba(109, 60, 37, 0.1); }
.dark .dark\:bg-olive-800\/10 { background-color: rgba(49, 69, 50, 0.1); }
.dark .bg-terracotta-500\/25,
.dark .dark\:bg-terracotta-500\/25 { background-color: rgba(191, 123, 90, 0.25); }
.dark .bg-olive-500\/\[0\.08\],
.dark .dark\:bg-olive-500\/\[0\.08\] { background-color: rgba(95, 133, 99, 0.08); }
.dark .bg-olive-500\/30,
.dark .dark\:bg-olive-500\/30 { background-color: rgba(95, 133, 99, 0.3); }
.dark .bg-foreground\/\[0\.02\],
.dark .dark\:bg-foreground\/\[0\.02\] { background-color: rgba(255,255,255,0.02); }
.dark .border-terracotta-700\/40,
.dark .dark\:border-terracotta-700\/40 { border-color: rgba(191, 123, 90, 0.4); }
.dark .border-terracotta-800\/30,
.dark .dark\:border-terracotta-800\/30 { border-color: rgba(191, 123, 90, 0.3); }
.dark .border-terracotta-800\/40,
.dark .dark\:border-terracotta-800\/40 { border-color: rgba(191, 123, 90, 0.4); }
.dark .border-olive-500\/15,
.dark .dark\:border-olive-500\/15 { border-color: rgba(95, 133, 99, 0.15); }
.dark .placeholder-dark-muted\/50::placeholder,
.dark .dark\:placeholder\:text-dark-muted\/50::placeholder { color: rgba(163, 163, 163, 0.5); }
.dark .dark\:text-dark-bg { color: var(--dark-bg); }
.dark .dark\:text-dark-bg\/60 { color: rgba(15, 15, 15, 0.6); }
.dark .dark\:bg-dark-bg { background-color: var(--dark-bg); }
.dark .dark\:text-white { color: #fff; }
.dark .dark\:bg-dark-border { background-color: var(--dark-border); }
.dark .dark\:bg-terracotta-500 { background-color: var(--terracotta-500); }
.dark .dark\:border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.dark .dark\:hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.dark .dark\:hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.dark .dark\:hover\:bg-white\/15:hover { background-color: rgba(255, 255, 255, 0.15); }
.dark .dark\:hover\:text-dark-text:hover { color: var(--dark-text); }
.dark .dark\:hover\:text-terracotta-400:hover { color: var(--terracotta-400); }
.dark .dark\:hover\:border-terracotta-700:hover { border-color: rgba(164, 93, 58, 0.7); }
.dark .dark\:hover\:border-terracotta-800\/40:hover { border-color: rgba(138, 75, 44, 0.4); }

.dark .text-dark-text\/80,
.dark .dark\:text-dark-text\/80 { color: rgba(229, 229, 229, 0.8); }
.dark .bg-terracotta-500\/\[0\.08\],
.dark .dark\:bg-terracotta-500\/\[0\.08\] { background-color: rgba(191, 123, 90, 0.08); }
.dark .bg-terracotta-500\/10,
.dark .dark\:bg-terracotta-500\/10 { background-color: rgba(191, 123, 90, 0.1); }
.dark .border-terracotta-500\/20,
.dark .dark\:border-terracotta-500\/20 { border-color: rgba(191, 123, 90, 0.2); }
.dark .dark\:hover\:bg-dark-card\/50:hover { background-color: rgba(26, 26, 26, 0.5); }

/* Hover/focus */
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.group:hover .group-hover\:opacity-80 { opacity: 0.8; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:text-terracotta-500 { color: var(--terracotta-500); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:bg-terracotta-500 { background-color: var(--terracotta-500); }
.dark .group:hover .group-hover\:text-terracotta-400 { color: var(--terracotta-400); }
.dark .group:hover .dark\:group-hover\:text-terracotta-400 { color: var(--terracotta-400); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-terracotta-500\/20:hover { box-shadow: 0 10px 15px -3px rgba(191, 123, 90, 0.2), 0 4px 6px -4px rgba(191, 123, 90, 0.1); }
.hover\:shadow-card-hover:hover { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }
.hover\:text-foreground:hover { color: var(--fg); }
.hover\:text-terracotta-500:hover { color: var(--terracotta-500); }
.hover\:text-terracotta-600:hover { color: var(--terracotta-600); }
.hover\:text-white\/80:hover { color: rgba(255, 255, 255, 0.8); }
.hover\:bg-foreground\/5:hover { background-color: rgba(30, 30, 30, 0.05); }
.hover\:bg-foreground\/10:hover { background-color: rgba(30, 30, 30, 0.1); }
.hover\:bg-terracotta-600:hover { background-color: var(--terracotta-600); }
.hover\:border-terracotta-300:hover { border-color: var(--terracotta-300); }
.hover\:decoration-terracotta-500:hover { text-decoration-color: var(--terracotta-500); }
.focus\:ring-terracotta-500\/30:focus { box-shadow: 0 0 0 3px rgba(191, 123, 90, 0.3); }
.placeholder\:text-foreground\/30::placeholder { color: rgba(30, 30, 30, 0.3); }

/* Responsive */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:pt-16 { padding-top: 4rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:pb-28 { padding-bottom: 7rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-\[1\.2rem\] { font-size: 1.2rem; }
  .sm\:text-\[1\.8rem\] { font-size: 1.8rem; }
  .sm\:text-\[2\.5rem\] { font-size: 2.5rem; }
  .sm\:text-display-sm { font-size: 2rem; line-height: 1.25; letter-spacing: -0.01em; }
  .sm\:text-display-md { font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.01em; }
  .sm\:text-display-lg { font-size: 3.5rem; line-height: 1.15; letter-spacing: -0.02em; }
  .sm\:text-display-xl { font-size: 4.5rem; line-height: 1.1; letter-spacing: -0.02em; }
  .sm\:block { display: block; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:-mt-24 { margin-top: -6rem; }
  .sm\:h-\[55vh\] { height: 55vh; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:pb-16 { padding-bottom: 4rem; }
  .sm\:pt-14 { padding-top: 3.5rem; }
  .sm\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .sm\:text-\[3rem\] { font-size: 3rem; }
  .sm\:text-\[4\.5rem\] { font-size: 4.5rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:text-\[4rem\] { font-size: 4rem; }
  .lg\:text-\[1\.8rem\] { font-size: 1.8rem; }
  .lg\:grid-cols-\[1fr_280px\] { grid-template-columns: 1fr 280px; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:sticky { position: sticky; }
  .lg\:top-28 { top: 7rem; }
  .lg\:aspect-\[21\/9\] { aspect-ratio: 21/9; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:h-\[60vh\] { height: 60vh; }
  .lg\:p-14 { padding: 3.5rem; }
  .lg\:px-16 { padding-left: 4rem; padding-right: 4rem; }
  .lg\:text-\[4\.5rem\] { font-size: 4.5rem; }
}

/* Animations */
.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

/* Observed animation (JS adds .is-visible) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form inputs */
input, textarea {
  font: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  opacity: 0.5;
}

input:focus, textarea:focus {
  outline: none;
  ring: 2px;
}

.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(191, 123, 90, 0.3); }
.focus\:outline-none:focus { outline: none; }
.focus\:border-terracotta-500:focus { border-color: var(--terracotta-500); }

/* Resize */
.resize-none { resize: none; }

/* Table */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.75rem 1rem; }

/* Links in article */
.article-body a {
  color: var(--terracotta-500);
  text-decoration: underline;
  text-decoration-color: rgba(191, 123, 90, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--terracotta-500);
}

.dark .article-body a { color: var(--terracotta-400); }
