/* ── Clementine Blog — shared styles ── */
:root {
  --orange: #F57C20;
  --orange-deep: #E8740C;
  --orange-bright: #F5820D;
  --orange-glow: rgba(245, 124, 32, 0.12);
  --card-bg: #FDF0E2;
  --cream: #FFFBF5;
  --ink: #1a1a1a;
  --ink-light: #555;
  --ink-muted: #888;
  --border: rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.text-orange { color: var(--orange); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--card-bg);
  padding: 7px 16px;
  border-radius: 100px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 1px 2px rgba(245,124,32,0.3), 0 4px 16px rgba(245,124,32,0.2);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245,124,32,0.3), 0 12px 28px rgba(245,124,32,0.2);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #e2e2e2;
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--cream);
}
.btn-arrow svg { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ── Nav (shared) ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s;
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.05); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wordmark-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.85rem; border-radius: 8px; }
.nav-cta .btn-primary { color: #fff !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ── Blog index hero ── */
.blog-hero {
  padding: 160px 0 48px;
  position: relative;
  text-align: center;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.blog-hero .label { margin-bottom: 20px; }
.blog-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.blog-hero h1 em { font-style: italic; color: var(--orange); }
.blog-hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 640px;
  margin: 24px auto 0;
}

/* ── Post list ── */
.post-list {
  padding: 64px 0 120px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06), 0 6px 18px rgba(0,0,0,0.04);
  border-color: rgba(245,124,32,0.25);
}
.post-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #FDF0E2, #FFFBF5);
  overflow: hidden;
  position: relative;
}
.post-cover img, .post-cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.post-meta .tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange-deep);
  background: var(--card-bg);
  padding: 4px 10px;
  border-radius: 100px;
}
.post-card h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
.post-card p {
  font-size: 0.94rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.post-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  padding-top: 8px;
}
.post-card-link svg { transition: transform 0.25s ease; }
.post-card:hover .post-card-link svg { transform: translateX(4px); }

/* ── Article page ── */
.article-hero {
  padding: 140px 0 40px;
  background: linear-gradient(180deg, #FFFBF5 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.article-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.article-hero .label { margin-bottom: 20px; }
.article-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 20px;
}
.article-hero .lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 28px;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.article-byline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.article-byline strong { color: var(--ink); font-weight: 600; }

.article-cover {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}
.article-cover-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.05);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #FDF0E2, #FFFBF5);
}
.article-cover-frame img, .article-cover-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article body ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.article-body > * + * { margin-top: 1.25em; }
.article-body h2 {
  font-size: 1.85rem;
  margin-top: 2.2em;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.3em;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.article-body p { color: #2a2a2a; }
.article-body a {
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(245,124,32,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-color: var(--orange); }
.article-body ul, .article-body ol {
  padding-left: 1.3em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--orange); }
.article-body blockquote {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 24px;
  margin: 1.5em 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .callout {
  background: var(--cream);
  border: 1px solid rgba(245,124,32,0.18);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 1.8em 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-light);
}
.article-body .callout strong { color: var(--orange-deep); }

/* ── Article CTA ── */
.article-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(245,124,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 14px; }
.article-cta p { color: #aaa; max-width: 520px; margin: 0 auto 28px; }
.article-cta .cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.article-cta .label { background: rgba(245,124,32,0.12); color: #F5820D; margin-bottom: 18px; }
.article-cta .btn-secondary { background: transparent; border-color: #444; color: #ccc; }
.article-cta .btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: rgba(245,124,32,0.05); }

/* ── Footer ── */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid #f0f0f0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left .wordmark { margin-bottom: 6px; }
.footer-left p { font-size: 0.8rem; color: #bbb; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 0.85rem; color: #999; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    gap: 16px;
  }
  .nav-links.open .nav-cta { margin-left: 0; }
  .mobile-toggle { display: block; }
  .blog-hero { padding: 130px 0 32px; }
  .article-hero { padding: 120px 0 32px; }
  .article-body { padding: 56px 20px 72px; font-size: 1.02rem; }
  .article-body h2 { font-size: 1.55rem; }
  .article-body blockquote { font-size: 1.25rem; padding-left: 18px; }
  .post-list { padding: 48px 0 80px; }
  .post-grid { gap: 24px; grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 20px; }
}
