body {
  margin: 0;
  background: #f5f7fb;
  color: #111827;
  font-family: Inter, "Segoe UI", sans-serif;
}

.site-wrapper {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.site-header .inner,
.site-main .inner,
.site-footer .inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-header {
  padding: 30px 0 18px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.site-header-content {
  padding-bottom: 18px;
}

.site-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.08em;
  font-weight: 800;
  color: #0f172a;
}

.site-header .inner,
.site-main .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-content {
  padding: 0 0 12px;
}

.site-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.08em;
  font-weight: 800;
  color: #0f172a;
}

.site-logo {
  display: block;
  max-height: 76px;
  width: auto;
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.08);
  background: #fff;
  padding: 8px;
}

.site-description {
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #334155;
  font-weight: 600;
  text-align: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  width: 100%;
}

.site-nav-left ul.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #0f172a;
}

.site-nav-left ul.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #1f3a5f;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #0f172a;
}

.site-main {
  padding: 36px 0 70px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 26px;
  padding: 28px 26px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
  margin-bottom: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin: 0 0 12px;
  color: #3b82f6;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.hero-copy p {
  margin: 0;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link,
.featured-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.primary-link {
  background: #0f172a;
  color: #fff;
}

.secondary-link {
  background: #e2e8f0;
  color: #0f172a;
}

.primary-link:hover,
.secondary-link:hover,
.featured-card a:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-box strong {
  font-size: 1.35rem;
  color: #0f172a;
}

.metric-box span {
  margin-top: 4px;
  color: #475569;
  line-height: 1.5;
}

.featured-strip {
  margin-bottom: 24px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.04);
}

.pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.44rem 0.7rem;
  margin-bottom: 10px;
}

.featured-card h4 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.featured-card p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.7;
}

.featured-card a {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.65rem 1rem;
}

.archive-header {
  margin-top: 18px;
  margin-bottom: 18px;
}

.archive-header p {
  margin: 0;
  color: #475569;
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.post-card-image-link {
  display: block;
  position: relative;
  background: #e5e7eb;
  height: 220px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 18px 14px;
}

.post-card-content-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-tags {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  font-weight: 700;
}

.post-card-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.5vw, 1.8rem);
  line-height: 1.3;
  color: #111827;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.post-card-excerpt {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
  font-style: italic;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.author-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name-tooltip {
  font-size: 0.74rem;
  color: #374151;
  font-weight: 700;
}

.static-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #e5e7eb;
}

.author-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reading-time {
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 840px) {
  .site-header {
    padding-top: 20px;
  }

  .site-description {
    margin-top: 12px;
    font-size: 1.7rem;
  }

  .site-nav-left ul.nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .portfolio-hero,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .post-card-image-link {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .post-feed {
    grid-template-columns: 1fr;
  }

  .post-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-copy h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 520px) {
  .site-main {
    padding-top: 24px;
  }

  .post-card-title {
    font-size: 1.2rem;
  }

  .post-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
