@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&family=Inter:wght@100;400;500;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: 240 30% 5%;
  --foreground: 0 0% 90%;
  --text: 0 0% 90%;
  --card: 240 22% 15%;
  --card-foreground: 0 0% 100%;
  --popover: 240 27% 8%;
  --popover-foreground: 0 0% 100%;
  --primary: 240 27% 8%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 22% 15%;
  --secondary-foreground: 0 0% 100%;
  --muted: 240 22% 15%;
  --muted-foreground: 240 5% 65%;
  --accent: 258 90% 66%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 22% 15%;
  --input: 240 22% 15%;
  --ring: 258 90% 66%;
  --radius: 0.625rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;

  --brand-primary: 240 27% 8%;
  --brand-secondary: 240 22% 15%;
  --brand-background: 240 30% 5%;
  --brand-accent: 258 90% 66%;
  --brand-text: 0 0% 90%;
  --brand-headline: 0 0% 100%;
  --brand-muted: 240 5% 65%;
  --brand-header-bg: 240 27% 8%;
}

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

html {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  scroll-behavior: smooth;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--text));
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: hsl(var(--accent));
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

input,
button,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--brand-headline));
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

.display-hero {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: hsl(var(--brand-headline));
}

.lead {
  font-size: 1.125rem;
}

.small,
.caption {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

.text-headline {
  color: hsl(var(--brand-headline));
}

.text-body {
  color: hsl(var(--text));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-accent {
  color: hsl(var(--accent));
}

.bg-background {
  background: hsl(var(--background));
}

.bg-primary {
  background: hsl(var(--primary));
}

.bg-secondary {
  background: hsl(var(--secondary));
}

.bg-accent {
  background: hsl(var(--accent));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 0 0 hsl(var(--accent) / 0%);
}

.btn-primary:hover {
  box-shadow: 0 0 20px hsl(var(--accent) / 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid hsl(var(--text));
  color: hsl(var(--text));
}

.btn-secondary:hover {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.card {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  color: hsl(var(--text));
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px hsl(var(--accent) / 0.2);
}

@media (min-width: 1024px) {
  .card {
    padding: 32px;
  }
}

.input {
  width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 12px 16px;
  color: hsl(var(--text));
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .site-header {
    height: 72px;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header a {
  color: hsl(var(--primary-foreground));
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.site-header a.secondary {
  color: hsl(var(--muted-foreground));
}

.site-header a:hover {
  color: hsl(var(--accent));
}

.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground) / 0.7);
  padding: 48px 0 32px;
}

.site-footer a {
  color: hsl(var(--primary-foreground) / 0.8);
  transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
  color: hsl(var(--accent));
}

.site-footer .legal {
  color: hsl(var(--muted-foreground));
}

.site-footer hr {
  border: 0;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.15);
  margin: 24px 0;
}

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

.prose {
  --tw-prose-body: hsl(var(--text));
  --tw-prose-headings: hsl(var(--text));
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: rgb(17 24 39/10%);
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: rgb(255 255 255/10%);
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0/50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1rem;
  line-height: 1.75;
}
.posts-archive-grid img {
  aspect-ratio: 16/9;
}
