:root {
  color-scheme: light;
  --bg: #f8fbff;
  --bg-alt: #ffffff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(14, 165, 233, 0.12);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-soft: #38bdf8;
  --accent-strong: #0369a1;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #f0f9ff 0%, var(--bg) 52%, var(--bg-alt) 100%);
  color: var(--text);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-a {
  top: -120px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: rgba(14, 165, 233, 0.16);
}

.ambient-b {
  right: -90px;
  bottom: -100px;
  width: 360px;
  height: 360px;
  background: rgba(56, 189, 248, 0.14);
}

.ambient-c {
  left: 26%;
  bottom: 8%;
  width: 220px;
  height: 220px;
  background: rgba(96, 165, 250, 0.1);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  min-height: 100dvh;
  padding: 20px 12px 24px;
}

.hero-card {
  width: min(calc(100vw - 24px), 1240px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: floatIn 700ms ease-out both;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-about-link {
  margin-top: 10px;
  white-space: nowrap;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-title-row h1 {
  flex: 1;
  margin-bottom: 16px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.site-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 55%, #0284c7 100%);
  color: #ffffff;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.site-brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-nav,
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer-links a {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Roboto Mono", monospace;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.text-gradient {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 45%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

.lead {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.blog-section {
  margin-top: 32px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 12px 0 0;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.7;
}

.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.blog-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
  color: #64748b;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.blog-kicker {
  color: #075985;
  font-family: "Roboto Mono", monospace;
}

.blog-article h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.blog-article a {
  align-self: flex-start;
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.blog-page-shell {
  min-height: 100vh;
  padding: 12px 8px 18px;
  display: grid;
  place-items: start center;
}

.blog-page-card {
  width: min(calc(100vw - 16px), 1440px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.blog-page-meta {
  margin-top: 16px;
  color: #64748b;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
}

.blog-page-card h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.blog-page-card .blog-page-content {
  max-width: none;
}

.blog-page-content {
  margin-top: 28px;
}

.blog-page-content h2 {
  margin: 28px 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.blog-page-content p,
.blog-page-content li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.blog-page-content ul {
  margin: 14px 0 14px 22px;
}

.blog-page-content blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(14, 165, 233, 0.7);
  background: rgba(14, 165, 233, 0.08);
  border-radius: 14px;
  color: #0c4a6e;
  font-weight: 600;
}

.blog-page-content .blog-image {
  margin: 26px 0;
}

.blog-page-content .blog-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.blog-page-content .blog-image figcaption {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.blog-page-content a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.blog-page-actions {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 165, 233, 0.14);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-page-actions a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  font-size: 0.92rem;
  font-weight: 700;
}

.blog-page-actions a:hover {
  background: rgba(14, 165, 233, 0.14);
}

a:not(.no-underline):not(button) {
  position: relative;
  text-decoration: none;
}

a:not(.no-underline):not(button)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

a:not(.no-underline):not(button):hover::after {
  width: 100%;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .blog-page-actions {
    margin-top: 22px;
    gap: 8px;
  }

  .blog-page-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-title-row {
    gap: 10px;
  }

  .hero-about-link {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-nav,
  .site-footer-links {
    gap: 10px;
  }

  .site-nav a,
  .site-footer-links a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 12px 10px 18px;
  }

  .hero-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 2.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .blog-meta {
    justify-content: flex-start;
    row-gap: 8px;
  }

  .blog-article {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .blog-article h3 {
    font-size: 1.12rem;
  }

  .blog-page-content h2 {
    font-size: 1.28rem;
  }

  .blog-page-shell {
    padding: 10px 8px 16px;
  }

  .blog-page-card {
    padding: 20px 16px;
    border-radius: 22px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero {
    padding: 16px 12px 20px;
  }

  .hero-card,
  .blog-page-card {
    border-radius: 24px;
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-article {
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 20px;
  }

  .hero-card,
  .blog-page-card {
    width: min(calc(100vw - 24px), 1440px);
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .blog-page-content {
    max-width: 72ch;
  }
}

@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;
  }
}