/* Shared styling for the ZenRead blog — mirrors the design tokens used across the
   marketing site (terms/privacy/index) so posts feel native, without duplicating a
   full <style> block in every file. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f7f3ee;
  --surface:   #ffffff;
  --text:      #1d1d1d;
  --subtitle:  #4a443d;
  --muted:     #a09888;
  --accent:    #c48e3a;
  --accent-deep:#a9762a;
  --accent-bg: #f0e8d8;
  --border:    #e4ddd4;
  --font-h: 'Space Grotesk', sans-serif;
  --font-b: 'Readex Pro', sans-serif;
  --r-md: 12px;
  --r-lg: 18px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-logo { font-family: var(--font-h); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.3px; }
.nav-logo span { color: var(--accent); }
.nav-back { font-family: var(--font-h); font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.nav-back:hover { opacity: 0.75; }

/* ── PAGE ── */
.page { max-width: 720px; margin: 0 auto; padding: 56px 32px 100px; }
.eyebrow { font-family: var(--font-h); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h1 { font-family: var(--font-h); font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.post-meta span { color: var(--accent); }
.rule { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 40px; }

.lead { font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 36px; }

h2 { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--text); margin: 44px 0 14px; letter-spacing: -0.3px; }
h3 { font-family: var(--font-h); font-size: 17px; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
p  { color: var(--subtitle); margin-bottom: 16px; }
ul, ol { color: var(--subtitle); padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }
strong { color: var(--text); font-weight: 600; }

blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-bg);
  border-radius: var(--r-md);
  padding: 16px 22px; margin: 0 0 24px;
  font-style: italic; color: var(--text);
}

/* ── Figures / images ── */
figure { margin: 34px 0; }
figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg); border: 1px solid var(--border);
}
/* Phone screenshots are tall — constrain them and centre on a soft plate so a
   single portrait shot doesn't tower over the column. */
figure.shot img {
  max-width: 300px; margin: 0 auto;
  background: #14110d; padding: 6px; box-shadow: 0 12px 34px rgba(60,48,30,0.16);
}
figcaption {
  font-size: 13px; color: var(--muted); text-align: center;
  margin-top: 12px; line-height: 1.5;
}
figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ── CTA box ── */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 26px 28px; margin: 48px 0 40px;
}
.cta h3 { margin-top: 0; font-size: 19px; }
.cta p { margin-bottom: 18px; }
.cta-btn {
  display: inline-block; font-family: var(--font-h); font-weight: 600; font-size: 14px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 999px;
}
.cta-btn:hover { background: var(--accent-deep); opacity: 1; }

/* ── Related ── */
.related { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 28px; }
.related h2 { font-size: 16px; margin-top: 0; }
.related a { display: block; font-family: var(--font-h); font-weight: 500; font-size: 15px; margin-bottom: 10px; text-decoration: none; }

/* ── Blog index ── */
.post-list { list-style: none; padding: 0; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(60,48,30,0.10); opacity: 1; }
.post-card .pc-eyebrow { font-family: var(--font-h); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.post-card h2 { font-size: 20px; margin: 8px 0 6px; }
.post-card p { color: var(--subtitle); margin: 0; font-size: 15px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 24px 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--font-h); font-weight: 700; font-size: 15px; }
.footer-logo span { color: var(--accent); }
.footer-right { font-size: 12px; color: var(--muted); }
.footer-right a { color: inherit; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .page { padding: 36px 20px 80px; }
  footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
