:root {
  --success-color: #059669;
  --surface: rgba(255, 255, 255, 0.4);
  --text-dark: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #475569;
  --text-light-muted: #94a3b8;
  --brand-main: #334155;
  --brand-light: rgba(51, 65, 85, 0.08);
  --brand-accent: #0f172a;
  --bg-page: #f8fafc;
  --border: #cbd5e1;
  --shadow-rgb: 51, 65, 85;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s, box-shadow 0.4s ease;
}

html {
  color-scheme: light;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
}

.bg-layer-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(var(--shadow-rgb), 0.08) 0, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(var(--shadow-rgb), 0.05) 0, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(var(--shadow-rgb), 0.06) 0, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.bg-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--brand-main) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
  position: relative;
  z-index: 10;
}

header {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, rgba(var(--shadow-rgb), 0.15), rgba(var(--shadow-rgb), 0.35));
  border: 1px solid rgba(var(--shadow-rgb), 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-color: var(--border);
  box-shadow: 0 4px 10px rgba(var(--shadow-rgb), 0.05);
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 0 8rem;
}

.page-content {
  width: 100%;
}

.hero {
  max-width: 900px;
  text-align: center;
  animation: fade-up 0.8s ease-out forwards;
  margin: 0 auto 3.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 10px rgba(var(--shadow-rgb), 0.05);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 8px rgba(var(--shadow-rgb), 0.4);
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}

h1 span,
.section-heading span,
.article-body h2 span {
  color: var(--brand-accent);
}

.subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.section-heading {
  text-align: center;
  color: var(--text-heading);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  animation: fade-up 0.8s ease-out 0.2s forwards;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bento-item,
.article-shell {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  color: var(--text-dark);
  box-shadow: 0 4px 15px -1px rgba(var(--shadow-rgb), 0.05), 0 2px 4px -2px rgba(var(--shadow-rgb), 0.05);
}

.post-thumb-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -5px rgba(var(--shadow-rgb), 0.1), 0 8px 10px -6px rgba(var(--shadow-rgb), 0.05);
  border-color: rgba(var(--shadow-rgb), 0.3);
  background: rgba(255, 255, 255, 0.6);
}

.post-meta,
.article-meta,
.eyebrow-link {
  font-size: 0.85rem;
  color: var(--text-light-muted);
}

.post-title {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.post-title a {
  text-decoration: none;
}

.post-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-link,
.eyebrow-link {
  text-decoration: none;
  font-weight: 600;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
}

.article-figure {
  margin: 1.25rem 0 2rem;
}

.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 14px 30px -18px rgba(var(--shadow-rgb), 0.35);
  display: block;
}

.article-figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.article-meta {
  margin-bottom: 1.5rem;
}

.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body pre,
.article-body blockquote {
  margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body h2,
.article-body h3 {
  color: var(--text-heading);
  margin: 2.8rem 0 1.4rem;
  line-height: 1.2;
}

.article-body a {
  color: var(--brand-accent);
}

.article-body code {
  background: rgba(var(--shadow-rgb), 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}

.article-body pre code {
  background: transparent;
  padding: 0;
}

footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light-muted);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
  width: 100%;
}

img{
  width: 100%;
  height: auto;
}
img[data-fallback-applied="1"] {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--border);
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo img {
  height: 1.4rem;
  width: auto;
  object-fit: contain;
}
figcaption {
  text-align: center;
  font-size: 0.8em;
  margin-bottom: 20px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  header {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .article-shell,
  .bento-item {
    padding: 1.5rem;
  }
}
