/* Healify blog post layout — matches Framer brand typography */

:root {
  --bg: #ffffff;
  --bg-dark: #1a1a2e;
  --fg: #0a0a0a;
  --fg-muted: #5a5a6e;
  --fg-inverse: #ffffff;
  --accent: #6366f1;
  --border: rgba(10, 10, 10, 0.08);
  --max-w: 720px;
  --max-w-wide: 1120px;
  --font-body: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Rebond Grotesque", "Rebond Grotesque Medium Placeholder", "Inter", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------- Header ------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.site-header__nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.site-header__nav a {
  color: var(--fg);
  font-weight: 500;
}
.site-header__cta {
  background: var(--fg);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.site-header__cta:hover { text-decoration: none; opacity: 0.9; }

/* ------------- Article ------------- */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.article__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.article__eyebrow a { color: var(--fg-muted); }
.article__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
}
.article__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article__meta time { font-variant-numeric: tabular-nums; }
.article__hero {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto 48px;
  border-radius: 16px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article__body {
  font-size: 18px;
  line-height: 1.75;
}
.article__body > *:first-child { margin-top: 0; }
.article__body > *:last-child { margin-bottom: 0; }
.article__body p { margin: 0 0 1.25em; }
.article__body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 2em 0 0.6em;
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 1.8em 0 0.5em;
}
.article__body h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 1.5em 0 0.4em;
}
.article__body ul,
.article__body ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.article__body li { margin: 0.35em 0; }
.article__body blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--fg-muted);
  font-style: italic;
}
.article__body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: #f4f4f6;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.article__body pre {
  font-family: var(--font-mono);
  background: #0f0f1a;
  color: #f4f4f6;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 1.5em 0;
}
.article__body pre code { background: transparent; padding: 0; }
.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.article__body th,
.article__body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.article__body th {
  font-weight: 600;
  background: #fafafb;
}
.article__body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ------------- Tags ------------- */
.article__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f4f4f6;
  color: var(--fg-muted);
  padding: 6px 12px;
  border-radius: 999px;
}
.article__tag:hover { text-decoration: none; background: #e8e8ec; }

/* ------------- Related ------------- */
.related {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.related h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; }
.related a { color: var(--fg); font-weight: 500; }
.related a:hover { color: var(--accent); text-decoration: none; }

/* ------------- Footer ------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  padding: 64px 24px 48px;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
}
.site-footer__tagline { opacity: 0.7; font-size: 14px; max-width: 320px; }
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer__col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  opacity: 0.6;
  margin: 0 0 14px;
}
.site-footer__col a {
  display: block;
  color: var(--fg-inverse);
  opacity: 0.85;
  font-size: 14px;
  margin-bottom: 10px;
}
.site-footer__col a:hover { opacity: 1; text-decoration: none; }
.site-footer__bottom {
  max-width: var(--max-w-wide);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 720px) {
  .site-header__nav { display: none; }
  .article { padding: 40px 20px 72px; }
  .article__body { font-size: 17px; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__cols { gap: 32px; }
}
