:root {
  --brand-pink: #e8397a;
  --brand-blue: #1d8fe1;
  --brand-dark: #111827;
  --bg: #ffffff;
  --paper: #f7f8fa;
  --line: rgba(17, 24, 39, 0.1);
  --muted: #667085;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brand-dark);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(29, 143, 225, 0.25));
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-transform: uppercase;
}

.brand strong {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 0.2rem;
  color: var(--brand-blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.34em;
}

.site-nav > div {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--brand-dark);
}

.nav-cta {
  padding: 0.82rem 1.1rem;
  color: #ffffff !important;
  background: var(--brand-blue);
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(29, 143, 225, 0.22);
}

.blog-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 7vw, 5rem);
}

.eyebrow,
.post-date,
.article-meta {
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.blog-hero h1,
.article-header h1 {
  max-width: 900px;
  margin: 0.8rem 0 1.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.blog-hero > p:last-child,
.article-header > p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 5rem;
}

.post-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.post-card h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.read-link,
.back-link {
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(135deg, #f7fbff, #fff5fa);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.blog-empty h2 {
  margin: 0.5rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.blog-empty p:last-child {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.category-list span {
  padding: 0.45rem 0.72rem;
  color: #155a8a;
  background: #eef8ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.article-image {
  width: 100%;
  max-height: 520px;
  margin: 2.5rem 0;
  object-fit: cover;
  border-radius: 0.5rem;
}

.article-body {
  color: #344054;
  font-size: 1.07rem;
  line-height: 1.86;
}

.article-body h2,
.article-body h3 {
  margin: 2.2rem 0 0.8rem;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-body h2 {
  font-size: 2rem;
}

.article-body h3 {
  font-size: 1.45rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 1.15rem 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  padding: 0.2rem 0 0.2rem 1.2rem;
  color: #475467;
  border-left: 3px solid var(--brand-blue);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 0.5rem;
}

.article-body figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: 48px;
  height: 48px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav > div {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
