/* =============================================================================
   energydrops.com — Blog stylesheet
   Shared by: post.html, blog-index.html, category.html
   Design: editorial, 680px measure, 19px/1.8, red accents only
   ============================================================================= */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --red:        #DC1A2E;
  --red-bright: #E63946;
  --ink:        #0A0A0A;
  --ink-soft:   #1A1A1A;
  --charcoal:   #2A2A2A;
  --gray:       #6B6B6B;
  --gray-light: #C4C4C4;
  --off-white:  #F7F5F3;
  --white:      #FFFFFF;
  --line:       rgba(0, 0, 0, 0.08);

  --sans:    'Archivo', system-ui, -apple-system, sans-serif;
  --display: 'Archivo Black', 'Archivo', system-ui, sans-serif;

  --measure: 680px;   /* max-width for post body prose */
  --wide:    1100px;  /* max-width for card grids */
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Skip link (accessibility) ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0.75rem; outline: 3px solid var(--red); outline-offset: 2px; }

/* ── Minimal sticky nav ─────────────────────────────────────────────────────── */
.blog-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-nav__wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 2px;
}
.blog-nav__wordmark .bolt { color: var(--red); }
.blog-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.blog-nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.blog-nav__link:hover { color: var(--ink); }
.blog-nav__cta {
  background: var(--red);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.blog-nav__cta:hover { background: var(--red-bright); }

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb a {
  color: var(--gray);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--gray-light); user-select: none; }
.breadcrumb__current { color: var(--ink-soft); }

/* ── Category pill ──────────────────────────────────────────────────────────── */
.cat-pill {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}
.cat-pill:hover { background: var(--red-bright); }

/* ── Post hero figure ───────────────────────────────────────────────────────── */
.post-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: var(--gray-light);
  margin-bottom: 0;
}
.post-hero img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}
/* Placeholder SVG should not be cropped — show it letterboxed */
.post-hero--placeholder { background: var(--off-white); }
.post-hero--placeholder img { object-fit: contain; }

/* ── Post page layout ───────────────────────────────────────────────────────── */
.post-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Post header ────────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 40px; }
.post-header__cat { margin-bottom: 18px; }
.post-header__title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.post-header__meta {
  font-size: 14px;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.post-header__meta time { color: var(--ink-soft); font-weight: 500; }
.post-header__sep { color: var(--gray-light); }

/* ── Post body prose ────────────────────────────────────────────────────────── */
/* font-size and line-height are inherited from body (19px / 1.8) */
.post-body { color: var(--ink-soft); }

.post-body h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}
.post-body h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 40px 0 14px;
}
.post-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}
.post-body p { margin-bottom: 28px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body ul,
.post-body ol {
  margin: 0 0 28px 1.5em;
}
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.post-body a:hover { color: var(--red-bright); }
.post-body blockquote {
  border-left: 3px solid var(--red);
  padding: 2px 0 2px 22px;
  margin: 36px 0;
  color: var(--gray);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
}
.post-body code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 6px;
}
.post-body pre {
  background: var(--ink);
  color: var(--off-white);
  border-radius: 6px;
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.post-body pre code { background: none; border: none; padding: 0; font-size: inherit; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 52px 0;
}
.post-body figure { margin: 36px 0; }
.post-body figure img { border-radius: 6px; }
.post-body figcaption { font-size: 14px; color: var(--gray); margin-top: 10px; text-align: center; }

/* ── FAQ section ────────────────────────────────────────────────────────────── */
.faq-section {
  margin: 64px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-section__heading {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item__q {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
  display: block; /* <dt> is block by default but explicit here for clarity */
}
.faq-item__a {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  display: block; /* <dd> */
  margin: 0;
}

/* ── Author bio ─────────────────────────────────────────────────────────────── */
.author-bio {
  margin: 56px 0 0;
  padding: 28px 32px;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
}
.author-bio__name {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.author-bio__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.author-bio__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.author-bio__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  transition: color 0.15s;
}
.author-bio__link:hover { color: var(--red-bright); }

/* ── Related posts ──────────────────────────────────────────────────────────── */
.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-posts__heading {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .related-posts__grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.related-card__link {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  height: 100%;
  transition: background 0.15s;
}
.related-card__link:hover { background: var(--off-white); }
.related-card__cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.related-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  flex: 1;
}
.related-card__excerpt {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__meta { font-size: 12px; color: var(--gray-light); }

/* ── Post card (blog index + category pages) ────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.post-card__link {
  display: flex;
  flex-direction: column;
  padding: 28px;
  height: 100%;
}
.post-card__cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.post-card__title {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  flex: 1;
}
.post-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta { font-size: 12px; color: var(--gray-light); margin-bottom: 14px; }
.post-card__cta { font-size: 13px; font-weight: 700; color: var(--red); }

/* ── Blog index header ──────────────────────────────────────────────────────── */
.blog-index-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 60px 24px 56px;
  text-align: center;
}
.blog-index-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.blog-index-header__title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.blog-index-header__desc {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Blog index body ────────────────────────────────────────────────────────── */
.blog-index-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.index-category { margin-bottom: 80px; }
.index-category__header { margin-bottom: 28px; }
.index-category__heading {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.index-category__desc { font-size: 16px; color: var(--gray); line-height: 1.6; }
.index-category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 600px) {
  .index-category__grid { grid-template-columns: repeat(2, 1fr); }
}
.index-category__viewall {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  transition: color 0.15s;
}
.index-category__viewall:hover { color: var(--red-bright); }

/* ── Category page header ───────────────────────────────────────────────────── */
.category-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 48px 24px;
}
.category-header__inner { max-width: var(--wide); margin: 0 auto; }
.category-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.category-header__title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.category-header__desc { font-size: 17px; color: var(--gray); line-height: 1.65; }
.category-header__count { font-size: 14px; color: var(--gray-light); margin-top: 8px; }

/* ── Category page body ─────────────────────────────────────────────────────── */
.category-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
.no-posts { font-size: 17px; color: var(--gray); padding: 32px 0; }

/* ── Shared footer ──────────────────────────────────────────────────────────── */
.blog-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.45);
  padding: 44px 24px;
  font-size: 13px;
  line-height: 1.6;
}
.blog-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.blog-footer__brand {
  font-family: var(--display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  line-height: 1;
}
.blog-footer__brand .bolt { color: var(--red); }
.blog-footer__legal { max-width: 560px; }
.blog-footer__link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.blog-footer__link:hover { color: var(--white); }

/* ── CTA strip (bottom of post) ─────────────────────────────────────────────── */
.post-cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}
.post-cta__heading {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.post-cta__sub { font-size: 17px; opacity: 0.85; margin-bottom: 28px; line-height: 1.5; }
.post-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.post-cta__btn {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.post-cta__btn:hover { opacity: 0.9; }
.post-cta__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.post-cta__btn--ghost:hover { border-color: var(--white); opacity: 1; }
