:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  color: #e8e8e8;
}

#app {
  max-width: 900px;
  width: 100%;
  margin: 2rem;
  padding: 4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 3.5em;
  line-height: 1.1;
  margin: 0 0 0.5rem 0;
  color: #f0f0f0;
}

.tagline {
  font-size: 1.1em;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.card {
  padding: 1.5rem;
}

.card img {
  max-width: 350px;
  height: auto;
  border-radius: 16px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.icon {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.links a:hover .icon {
  filter: brightness(1.2);
}

.home-links {
  margin-bottom: 1.5rem;
}

.blog-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.blog-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Blog styles */
.blog-index, .blog-post {
  text-align: left;
}

.back-link {
  display: inline-block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #f0f0f0;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.blog-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.blog-list .post-title {
  font-size: 1.25rem;
  color: #f0f0f0;
  transition: color 0.2s ease;
}

.blog-list a:hover .post-title {
  color: #32BFF9;
}

.blog-list time {
  color: #64748b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.blog-list .post-desc {
  color: #94a3b8;
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-post time {
  color: #64748b;
  display: block;
  margin-bottom: 2rem;
}

.blog-post .content {
  line-height: 1.8;
  color: #cbd5e1;
}

.blog-post .content .hero-image {
  float: right;
  max-width: 280px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.blog-post .content p {
  margin-bottom: 1.5rem;
}

.blog-post .content .small-logo {
  float: right;
  max-width: 140px;
  margin: 0 0 1rem 1.5rem;
}


.blog-post .content h2 {
  color: #f0f0f0;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-post .content ul,
.blog-post .content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post .content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.blog-post .content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post .content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #a5d6ff;
}

.blog-post .content a {
  color: #32BFF9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post .content a:hover {
  color: #7dd3fc;
}

.blog-post .content .callout {
  background: rgba(50, 191, 249, 0.1);
  border-left: 4px solid #32BFF9;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #e2e8f0;
}

.share-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-links span {
  color: #94a3b8;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.share-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.share-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 480px) {
  #app {
    margin: 1rem;
    padding: 2rem;
  }

  h1 {
    font-size: 2em;
  }

  .card img {
    max-width: 150px;
  }

  .links a {
    width: 44px;
    height: 44px;
  }
}
