/* Mirrors the design tokens from the main Next.js site's globals.css so the
   blog feels like the same site, not a bolted-on app. */
:root {
  --color-navy: #262d73;
  --color-navy-deep: #1a1f52;
  --color-ivory: #f9f6ef;
  --color-gold: #c8a96a;
  --color-copper: #a3603f;
  --color-ink: #1e2430;
  --color-muted: #5b6270;
  --color-soft: #f4f5f7;
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
  --font-logo: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--color-ivory);
  border-bottom: 1px solid rgba(38, 45, 115, 0.1);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(200, 169, 106, 0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .line1 {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}
.brand-text .line1 .gold {
  color: var(--color-gold);
}
.brand-text .line2 {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(38, 45, 115, 0.6);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: rgba(30, 36, 48, 0.7);
}
.nav-links a:hover {
  color: var(--color-navy);
}
.nav-links .cta {
  background: var(--color-navy);
  color: var(--color-ivory);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero / page title */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  color: var(--color-navy);
  margin: 14px 0 10px;
}
.page-hero p {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 20px 0 80px;
}
.post-card {
  background: #fff;
  border: 1px solid rgba(38, 45, 115, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  border-color: rgba(200, 169, 106, 0.5);
  transform: translateY(-2px);
}
.post-card .cover {
  aspect-ratio: 16 / 10;
  background: var(--color-navy) center/cover no-repeat;
}
.post-card .body {
  padding: 20px 22px 24px;
}
.post-card .date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  font-weight: 600;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 8px 0 8px;
  line-height: 1.3;
}
.post-card p {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
}
.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 60px 20px;
}

/* Single post */
.post-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--color-navy) center/cover no-repeat;
  border-radius: 16px;
  margin-bottom: 32px;
}
.post-article {
  padding: 40px 0 80px;
}
.post-article .date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  font-weight: 700;
}
.post-article h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--color-navy);
  margin: 12px 0 28px;
  line-height: 1.2;
}
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-ink);
}
.post-content p {
  margin: 0 0 1.4em;
}
.post-content h2 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-size: 26px;
  margin: 1.6em 0 0.6em;
}
.post-content h3 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-size: 21px;
  margin: 1.4em 0 0.5em;
}
.post-content img {
  border-radius: 12px;
  margin: 1.5em 0;
}
.post-content a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 106, 0.5);
}
.post-content blockquote {
  border-left: 3px solid var(--color-gold);
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.2em;
  font-style: italic;
  color: var(--color-muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  margin-bottom: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 60px;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(38, 45, 115, 0.15);
  color: var(--color-navy);
}
.pagination .current {
  background: var(--color-navy);
  color: var(--color-ivory);
  border-color: var(--color-navy);
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(249, 246, 239, 0.6);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}
.site-footer a {
  color: rgba(249, 246, 239, 0.8);
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-header .wrap {
    gap: 12px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand-text .line1 {
    font-size: 14px;
  }
  .brand-text .line2 {
    font-size: 8px;
    letter-spacing: 0.18em;
  }
  .nav-links {
    gap: 10px;
    font-size: 12px;
  }
  .nav-links .cta {
    padding: 8px 12px;
    font-size: 12px;
  }
}
