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

:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --blue-600: #2563eb;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --cyan-400: #22d3ee;
}

body {
  font-family: 'Manrope', sans-serif;
  /* Replace background-color with this: */
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
    linear-gradient(-45deg, #0f172a, #040928, #0f172a, #530404);
  background-size: 100% 100%, 100% 100%, 400% 400%;
  animation: gradient-shift 15s ease infinite;
  color: var(--slate-300);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile first: stacked layout */
header {
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.logo {
  font-family: 'Jura', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  flex: 1;
}

/* Desktop: side-by-side layout (homepage only) */
@media (min-width: 900px) {
  body.home {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
  }

  body.home .content-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    gap: 4rem;
  }

  body.home header {
    padding: 0;
    text-align: left;
  }

  body.home .logo {
    font-size: 3.5rem;
  }

  body.home main {
    max-width: none;
    padding: 0;
  }
}

main p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

main p:last-child {
  margin-bottom: 0;
  color: var(--slate-200);
  font-weight: 500;
}

/* Legal pages */
main.legal h2 {
  font-family: 'Jura', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.5rem;
}

main.legal .effective-date {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

main.legal h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-200);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

main.legal p {
  font-size: 1rem;
}

main.legal p:last-child {
  font-weight: 400;
  color: var(--slate-300);
}

main.legal a {
  color: var(--slate-300);
  text-decoration: none;
}

main.legal a:hover {
  color: var(--blue-400);
}

/* Blog listing */
main.blog-list h1 {
  font-family: 'Jura', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.5rem;
}

main.blog-list .subtitle {
  color: var(--slate-400);
  font-style: italic;
  margin-bottom: 3rem;
}

main.blog-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

main.blog-list time {
  font-size: 0.9rem;
  color: var(--slate-400);
  padding-top: 0.2rem;
}

main.blog-list h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

main.blog-list h2 a {
  color: var(--slate-200);
  text-decoration: none;
}

main.blog-list h2 a:hover {
  color: var(--blue-400);
}

main.blog-list .author {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 0;
}

/* Blog post */
main.blog-post h1 {
  font-family: 'Jura', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.5rem;
}

main.blog-post .meta {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 2.5rem;
}

main.blog-post h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

main.blog-post h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-200);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main.blog-post img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1.5rem 0;
}

main.blog-post a {
  color: var(--blue-400);
}

main.blog-post a:hover {
  color: var(--cyan-400);
}

main.blog-post code {
  background: var(--slate-800);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

main.blog-post pre {
  background: var(--slate-800);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

main.blog-post pre code {
  background: none;
  padding: 0;
}

main.blog-post ul,
main.blog-post ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

main.blog-post li {
  margin-bottom: 0.5rem;
}

main.blog-post blockquote {
  border-left: 3px solid var(--blue-400);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--slate-400);
  font-style: italic;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--slate-700);
}

footer p {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

footer nav a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
}

footer nav a:hover {
  color: var(--blue-400);
}

footer .separator {
  color: var(--slate-700);
  font-size: 0.875rem;
}

footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

footer .social-link svg {
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
  main.blog-list article {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
