/*
Theme Name:   Healthy Free Press
Theme URI:    https://healthyfreepress.example.com/
Description:  Child theme for an aggregator-style health and wellness news site, modeled after CitizenFreePress. Black & white, dense feed layout with Today / Yesterday / Last Week buckets and human-readable "time since posted" stamps. Pairs with a `hfp_headline` custom post type.
Author:       Healthy Free Press
Author URI:   https://healthyfreepress.example.com/
Template:     twentytwentyfour
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  healthyfreepress
*/

/* ===========================================================================
   HEALTHY FREE PRESS — feed styles
   All selectors are prefixed .hfp- so they won't collide with parent theme.
   =========================================================================== */

/* Google Fonts are loaded via functions.php so the theme header stays clean. */

.hfp-root{
  --hfp-display: 'Playfair Display', Georgia, serif;
  --hfp-body: 'Source Serif 4', Georgia, serif;
  --hfp-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --hfp-bg: #ffffff;
  --hfp-ink: #000000;
  --hfp-dim: #555555;
  --hfp-rule: #bfbfbf;
  --hfp-measure: 1100px;
}
.hfp-root{
  background: #ffffff;
  color: #000000;
  font-family: 'Source Serif 4', Georgia, serif;
  min-height: 100vh;
  padding: 28px 20px 60px;
  box-sizing: border-box;
}
.hfp-root *{ box-sizing: border-box; }
.hfp-wrap{ max-width: var(--hfp-measure); margin: 0 auto; }

/* -- 70/30 layout (feed + sidebar) --------------------------------------- */
.hfp-grid{
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 40px;
  margin-top: 16px;
}
.hfp-main{ min-width: 0; }
.hfp-side{
  padding-left: 24px;
  min-width: 0;
}
.hfp-side .hfp-side-block{
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px dotted var(--hfp-rule);
}
.hfp-side .hfp-side-block:last-child{ border-bottom: none; }
.hfp-side h3{
  font-family: var(--hfp-display);
  font-size: 13px; margin: 0 0 10px 0;
  text-transform: uppercase; letter-spacing: 0.22em; font-weight: 800;
}
.hfp-ad-slot{
  min-height: 250px;
  border: 1px dashed var(--hfp-rule);
  display: flex; align-items: center; justify-content: center;
  color: var(--hfp-dim);
  font-family: var(--hfp-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 20px;
}

@media (max-width: 640px){
  .hfp-grid{ grid-template-columns: 1fr; gap: 24px; }
  .hfp-side{ padding-left: 0;
             border-top: 1px solid var(--hfp-rule); padding-top: 24px; }
}

/* -- masthead ------------------------------------------------------------- */
.hfp-mast{
  text-align: center;
  border-bottom: 3px double var(--hfp-ink);
  padding-bottom: 12px;
}
.hfp-wordmark{
  font-family: var(--hfp-display);
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  color: var(--hfp-ink);
}
.hfp-sub{
  margin-top: 8px;
  font-family: var(--hfp-mono);
  font-size: 11px; color: var(--hfp-dim);
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* -- section heads (TODAY / YESTERDAY / LAST WEEK) ------------------------ */
.hfp-sec{
  margin-top: 28px; margin-bottom: 8px;
  border-top: 2px solid var(--hfp-ink);
  padding-top: 8px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.hfp-sec h2{
  font-family: var(--hfp-display);
  font-size: 15px; margin: 0;
  text-transform: uppercase; letter-spacing: 0.22em; font-weight: 800;
}
.hfp-sec .hfp-meta{
  font-family: var(--hfp-mono); font-size: 10px; color: var(--hfp-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* -- headline rows -------------------------------------------------------- */
.hfp-feed{ list-style: none; margin: 0; padding: 0; }
.hfp-row{
  padding: 4px 0;
  border-bottom: 1px dotted var(--hfp-rule);
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  line-height: 1.3;
}
.hfp-ago{
  font-family: var(--hfp-mono); font-size: 10px; color: var(--hfp-dim);
  margin-right: 6px; font-variant-numeric: tabular-nums;
  flex-shrink: 0; min-width: 28px;
}
.hfp-hd,
.hfp-hd:link,
.hfp-hd:active{
  color: var(--hfp-ink);
  font-size: 15px; font-weight: 500;
  font-family: var(--hfp-body);
  text-decoration: none; flex: 1;
  min-width: 200px;
  line-height: 1.3;
}
.hfp-hd:visited{ color: #047857; }
.hfp-hd:hover,
.hfp-hd:focus{ text-decoration: underline; }
.hfp-row.hfp-big .hfp-hd{
  font-family: var(--hfp-display);
  font-size: 19px; font-weight: 800;
}
.hfp-src{
  color: var(--hfp-dim);
  font-family: var(--hfp-mono); font-size: 10px; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0.02em;
  white-space: nowrap;
}

/* -- empty-state --------------------------------------------------------- */
.hfp-empty{
  padding: 24px 0;
  color: var(--hfp-dim);
  font-style: italic;
  text-align: center;
}
