/* Inskryb Chronicles Blog CSS - Minified, Production & CLS Optimized */
:root {
  --bg-background: #050b18;
  --bg-card: #1e293b;
  --color-accent: #14b8a6;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, serif;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #1e293b;
}

a, a:visited {
  color: inherit;
  text-decoration: inherit;
}

a:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  line-height: inherit;
  background-color: var(--bg-background);
  color: #cbd5e1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Image Aspect Ratio & Anti-CLS Rules */
img {
  max-width: 100%;
  height: auto;
}

img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

header {
  min-height: 65px;
}

header img {
  aspect-ratio: 153 / 36;
}

/* Typography & Utility classes */
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

.bg-background { background-color: var(--bg-background); }
.bg-background\/90 { background-color: rgba(5, 11, 24, 0.9); }
.bg-card { background-color: var(--bg-card); }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-950 { background-color: #020617; }
.bg-teal-400\/10 { background-color: rgba(45, 212, 191, 0.1); }

.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-teal-400 { color: #2dd4bf; }
.text-teal-500 { color: #14b8a6; }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-slate-300:hover { color: #cbd5e1; }

.border-slate-800 { border-color: #1e293b; }
.border-slate-900 { border-color: #0f172a; }
.border-teal-400\/20 { border-color: rgba(45, 212, 191, 0.2); }
.border-teal-500\/20 { border-color: rgba(20, 184, 166, 0.2); }
.border-teal-500\/30 { border-color: rgba(20, 184, 166, 0.3); }
.hover\:border-teal-500\/40:hover { border-color: rgba(20, 184, 166, 0.4); }

.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border { border-width: 1px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

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

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.min-h-screen { min-height: 100vh; }
.shrink-0 { flex-shrink: 0; }

.max-w-none { max-width: none; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.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-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.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-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-0\.5 { padding-bottom: 0.125rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.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; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }

.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.object-contain { object-fit: contain; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 150ms; }
.text-center { text-align: center; }

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:h-52 { height: 13rem; }
  .sm\:h-60 { height: 15rem; }
  .sm\:h-64 { height: 16rem; }
}

@media (min-width: 768px) {
  .md\:h-9 { height: 2.25rem; }
  .md\:h-60 { height: 15rem; }
  .md\:h-auto { height: auto; }
  .md\:w-80 { width: 20rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:text-left { text-align: left; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card & Interactive Hover Effects */
.group { position: relative; }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:text-teal-400 { color: #2dd4bf; }
.group:hover .group-hover\:border-teal-500\/40 { border-color: rgba(20, 184, 166, 0.4); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Markdown Article Prose Styling */
.prose {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #cbd5e1;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-serif);
  font-weight: 850;
  color: #ffffff;
  margin-top: 1.85em;
  margin-bottom: 0.65em;
  letter-spacing: -0.02em;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; border-bottom: 1px solid #1e293b; padding-bottom: 0.4em; }
.prose h3 { font-size: 1.35rem; }
.prose p {
  font-family: var(--font-serif);
  font-weight: 300;
  margin-bottom: 1.50em;
}
.prose ul, .prose ol {
  font-family: var(--font-serif);
  font-weight: 300;
  margin-bottom: 1.50em;
  padding-left: 2em;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose strong { font-weight: 700; color: #14b8a6; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: #fcd34d;
  border: 1px solid #1e293b;
}
.prose pre {
  background-color: #0f172a;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.50em;
  border: 1px solid #1e293b;
}
.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #cbd5e1;
  font-size: 0.85em;
  border: none;
}
.prose blockquote {
  border-left: 4px solid #14b8a6;
  padding-left: 1.25rem;
  font-style: italic;
  color: #94a3b8;
  margin-bottom: 1.50em;
  background-color: rgba(15, 23, 42, 0.4);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.prose a, .prose a:visited {
  color: #2dd4bf;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.prose a:hover, .prose a:focus-visible {
  color: #5eead4;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  display: block;
}
