/* ─── QUICINE BRAND ─────────────────────────────────────────────────────── */
:root {
  --blue: #2B8EC7;
  --blue-dark: #1a6fa0;
  --blue-light: #e8f4fc;
  --cream: #F5F0E8;
  --cream-dark: #ede8df;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --footer-dark: #1a1a1a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 48px;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 142, 199, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img { height: 72px; width: auto; }

.nav-logo-text {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-dark) !important; }

/* ─── MAIN CONTENT AREA ─────────────────────────────────────────────────── */
.site-main {
  flex: 1;
  padding-top: 88px;
}

/* ─── BLOG HERO ─────────────────────────────────────────────────────────── */
.blog-hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── POST GRID ─────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-dark);
}

.post-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue-light), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.post-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--cream-dark);
  padding-top: 14px;
  margin-top: auto;
}

.post-card-read {
  color: var(--blue);
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── PAGINATION ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 0 64px;
}

.pagination a {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--blue);
  color: white;
}

.pagination .page-number {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── SINGLE POST ────────────────────────────────────────────────────────── */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.post-header-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.post-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.post-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-header-meta .dot { opacity: 0.4; }

.post-feature-image {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 24px;
  border-radius: 16px;
  overflow: hidden;
}

.post-feature-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

/* ─── POST CONTENT ───────────────────────────────────────────────────────── */
.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  margin: 48px 0 16px;
  color: var(--text);
}

.post-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  margin: 36px 0 12px;
}

.post-content p { margin-bottom: 24px; }

.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 32px 0;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--text-muted);
  font-style: italic;
}

.post-content img {
  border-radius: 12px;
  margin: 32px 0;
  width: 100%;
}

.post-content pre {
  background: var(--text);
  color: white;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ─── POST FOOTER / BACK ─────────────────────────────────────────────────── */
.post-back {
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.post-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.2s;
}

.post-back a:hover { gap: 10px; }

/* ─── TAG PAGE ───────────────────────────────────────────────────────────── */
.tag-hero {
  text-align: center;
  padding: 64px 24px 40px;
}

.tag-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  margin-bottom: 12px;
}

.tag-hero p { color: var(--text-muted); font-size: 16px; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 48px 64px;
  background: var(--footer-dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 6px;
}

.footer-tagline { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 12px; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; }

.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-app-badges { display: flex; flex-direction: column; gap: 10px; }

.footer-app-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 10px 16px;
  color: white; transition: background 0.2s;
  width: 185px; flex-shrink: 0;
}
.footer-app-badge:hover { background: rgba(255,255,255,0.12); }
.footer-app-badge.coming-soon { opacity: 0.4; pointer-events: none; }
.footer-app-badge-text { display: flex; flex-direction: column; }
.fbadge-sub { font-size: 10px; opacity: 0.7; }
.fbadge-main { font-size: 14px; font-weight: 500; }

.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-social a:hover { color: white; }

/* ─── KOENIG EDITOR WIDTHS ───────────────────────────────────────────────── */
.kg-width-wide {
  margin-left: -8vw;
  margin-right: -8vw;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 4px 20px; }
  .nav-links { display: none; }
  .post-grid { grid-template-columns: 1fr; padding: 0 20px 64px; }
  .blog-hero { padding: 48px 20px 32px; }
  .site-footer { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .footer-app-badges { align-items: center; }
  .footer-app-badge { width: 100%; }
  .footer-social { justify-content: center; }
  .post-feature-image img { height: 240px; }
}
