/*
Theme Name: HealthFixHub
Theme URI: https://healthfixhub.store
Author: HealthFixHub
Description: A clean, fast-loading editorial theme for HealthFixHub.store — built for evidence-based health & wellness content, AdSense, and affiliate links.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthfixhub
*/

:root {
  --ink: #1B2421;
  --paper: #FBFAF6;
  --evergreen: #2F6B4F;
  --evergreen-dark: #234F3B;
  --ochre: #C99A3D;
  --sage: #EEF1EA;
  --rust: #A8472E;
  --line: #DEDCD2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--evergreen);
  outline-offset: 2px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Signature element: a measurement / vitals tick strip, used in exactly
   three places — the top bar, the logo mark, and the disclaimer callout. */
.vitals-strip {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--evergreen) 0 10px,
    transparent 10px 16px,
    var(--ochre) 16px 20px,
    transparent 20px 30px
  );
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img { max-height: 44px; width: auto; }
.site-logo__mark { display: flex; align-items: flex-end; }
.site-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--evergreen); }

/* Post eyebrow / labels */
.post-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--evergreen);
  margin: 0 0 10px;
}

/* Featured post (first item on index) */
.post-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.post-feature__media img { border-radius: 4px; }
.post-feature__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 14px;
}
.post-feature__title a { text-decoration: none; color: var(--ink); }
.post-feature__excerpt {
  color: #3c463f;
  line-height: 1.6;
  margin: 0 0 18px;
}
.read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--evergreen);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Post list rows */
.post-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post-row__media img { border-radius: 4px; height: 110px; object-fit: cover; }
.post-row__title { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 8px; }
.post-row__title a { text-decoration: none; color: var(--ink); }
.post-row__excerpt { color: #5b655d; font-size: 0.95rem; line-height: 1.55; margin: 0; }

.pagination { padding: 32px 0 60px; font-family: var(--font-mono); font-size: 0.85rem; }
.pagination a { color: var(--evergreen); text-decoration: none; margin-right: 16px; }

/* Single post */
.single-post { max-width: 680px; margin: 0 auto; padding: 48px 0 64px; }
.single-post__title { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; margin: 10px 0 14px; }
.single-post__meta { font-family: var(--font-mono); font-size: 0.8rem; color: #6b7569; margin: 0 0 28px; }
.single-post__media img { width: 100%; border-radius: 6px; margin-bottom: 32px; }
.single-post__content { font-size: 1.08rem; line-height: 1.75; color: #262f28; }
.single-post__content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 40px 0 14px; }
.single-post__content h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 32px 0 12px; }
.single-post__content p { margin: 0 0 20px; }
.single-post__content ul, .single-post__content ol { margin: 0 0 20px; padding-left: 22px; }
.single-post__content li { margin-bottom: 8px; }
.single-post__content a { color: var(--evergreen); text-decoration-thickness: 1px; }
.single-post__content img { border-radius: 6px; margin: 8px 0 20px; }

/* Vitals callout — used for medical disclaimers / important notes.
   The left edge carries the tick-strip signature motif. */
.vitals-callout {
  position: relative;
  margin: 40px 0;
  padding: 18px 22px 18px 30px;
  background: var(--sage);
  border-radius: 4px;
}
.vitals-callout::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--evergreen) 0 8px,
    transparent 8px 12px,
    var(--ochre) 12px 16px,
    transparent 16px 22px
  );
  border-radius: 4px 0 0 4px;
}
.vitals-callout p { margin: 0; font-size: 0.95rem; color: #33402f; line-height: 1.6; }
.vitals-callout strong { color: var(--rust); }

/* Pages */
.single-page { max-width: 680px; margin: 0 auto; padding: 48px 0 64px; }
.single-page__title { font-family: var(--font-display); font-size: 2.4rem; margin: 0 0 24px; }
.single-page__content { font-size: 1.05rem; line-height: 1.7; color: #262f28; }
.single-page__content p { margin: 0 0 18px; }

/* Comments */
.comments-area { max-width: 680px; margin: 0 auto 64px; }
.comments-title { font-family: var(--font-display); font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { border-top: 1px solid var(--line); padding: 18px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd6cd; margin-top: 40px; padding: 40px 0 30px; }
.site-footer__disclosure { font-size: 0.85rem; line-height: 1.6; max-width: 640px; color: #a9b3a8; margin: 0 0 20px; }
.footer-widgets { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.widget-title { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #cdd6cd; }
.site-footer__credit { font-family: var(--font-mono); font-size: 0.75rem; color: #7d877c; margin: 0; }

/* Mobile */
@media (max-width: 760px) {
  .post-feature { grid-template-columns: 1fr; padding: 36px 0; }
  .post-row { grid-template-columns: 1fr; }
  .post-row__media img { width: 100%; height: 180px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .single-post__title { font-size: 1.9rem; }
  .single-page__title { font-size: 1.9rem; }
}
