/*
Theme Name: Women and Family Health
Theme URI: https://www.wfhealth.co.uk/
Author: WF Health
Description: A wide, editorial WordPress theme for Women and Family Health — warm clay and sage palette, asymmetric full-bleed layouts, and a home page that showcases the six latest articles with their content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wfhealth
Tags: blog, editorial, wide-blocks, custom-menu, featured-images, translation-ready
*/

:root {
  --wf-cream: #fbf6ef;
  --wf-paper: #ffffff;
  --wf-ink: #241c17;
  --wf-ink-soft: #5d5147;
  --wf-clay: #d1663a;
  --wf-clay-deep: #a94a26;
  --wf-sage: #7b8f6b;
  --wf-blush: #f6ddd0;
  --wf-line: #e6dbcd;
  --wf-radius: 26px;
  --wf-wide: 1560px;
  --wf-text: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wf-cream);
  color: var(--wf-ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--wf-clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wf-ink); }
img { max-width: 100%; height: auto; display: block; }

.wf-wide { width: min(100% - 48px, var(--wf-wide)); margin-inline: auto; }
.wf-text { width: min(100% - 48px, var(--wf-text)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wf-skip:focus { position: fixed; left: 16px; top: 16px; background: #fff; padding: 10px 16px; z-index: 99; }

/* ---------- Header ---------- */
.wf-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wf-line);
}
.wf-header__inner { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.wf-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--wf-ink); }
.wf-brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: 50% 50% 50% 6px;
  background: linear-gradient(140deg, var(--wf-clay), var(--wf-sage));
}
.wf-brand__name { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.wf-brand__tag { display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wf-ink-soft); }
.wf-nav { margin-left: auto; }
.wf-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.wf-nav a { font-size: 15px; color: var(--wf-ink); text-decoration: none; }
.wf-nav a:hover, .wf-nav .current-menu-item > a { color: var(--wf-clay-deep); }

/* ---------- Hero ---------- */
.wf-hero { padding: 72px 0 40px; }
.wf-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.wf-eyebrow { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--wf-sage); margin: 0 0 20px; }
.wf-hero h1 { font-size: clamp(44px, 6.2vw, 92px); }
.wf-hero h1 em { font-style: italic; color: var(--wf-clay); }
.wf-hero p { font-size: 20px; color: var(--wf-ink-soft); max-width: 46ch; }
.wf-hero__media { border-radius: 200px 24px 200px 24px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(60,35,20,.55); }
.wf-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wf-pill {
  border: 1px solid var(--wf-line); background: var(--wf-paper);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--wf-ink-soft);
}

/* ---------- Section head ---------- */
.wf-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--wf-line); padding-top: 22px; margin: 56px 0 34px; }
.wf-sec-head h2 { font-size: clamp(28px, 3vw, 44px); margin: 0; }

/* ---------- Post stream ---------- */
.wf-stream { display: grid; gap: 28px; }
.wf-card {
  background: var(--wf-paper);
  border: 1px solid var(--wf-line);
  border-radius: var(--wf-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wf-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -38px rgba(60,35,20,.6); }
.wf-card--flip { grid-template-columns: 1.1fr 0.9fr; }
.wf-card--flip .wf-card__media { order: 2; }
.wf-card__media { min-height: 300px; background: var(--wf-blush); overflow: hidden; }
.wf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.wf-card__body { padding: 44px clamp(28px, 3.5vw, 56px); align-self: center; }
.wf-card__index { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wf-sage); }
.wf-card h3 { font-size: clamp(26px, 2.4vw, 38px); margin: 12px 0 14px; }
.wf-card h3 a { color: inherit; text-decoration: none; }
.wf-card h3 a:hover { color: var(--wf-clay-deep); }
.wf-card__content { color: var(--wf-ink-soft); }
.wf-card__content p { margin: 0 0 14px; }
.wf-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wf-cats a { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--wf-clay-deep); }
.wf-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--wf-ink);
  border-bottom: 2px solid var(--wf-clay); padding-bottom: 3px;
}
.wf-more:hover { color: var(--wf-clay-deep); gap: 16px; transition: gap .2s ease; }

/* wider full-bleed lead card */
.wf-card--lead { grid-template-columns: 1fr; }
.wf-card--lead .wf-card__media { min-height: 380px; height: 440px; }
.wf-card--lead .wf-card__media img { height: 100%; object-fit: cover; object-position: center; }
.wf-card--lead .wf-card__body { padding: 48px clamp(28px, 6vw, 110px) 56px; max-width: 1100px; }
.wf-card--lead h3 { font-size: clamp(32px, 4vw, 58px); }

/* ---------- Band ---------- */
.wf-band { background: var(--wf-ink); color: var(--wf-cream); margin-top: 80px; padding: 84px 0; }
.wf-band h2 { font-size: clamp(30px, 3.6vw, 52px); color: var(--wf-cream); max-width: 20ch; }
.wf-band p { color: #cbbfb3; max-width: 56ch; }
.wf-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wf-btn {
  display: inline-block; background: var(--wf-clay); color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; margin-top: 12px;
}
.wf-btn:hover { background: var(--wf-blush); color: var(--wf-ink); }

/* ---------- Single / page ---------- */
.wf-entry { padding: 64px 0 40px; }
.wf-entry h1 { font-size: clamp(36px, 5vw, 68px); max-width: 20ch; }
.wf-entry__hero { border-radius: var(--wf-radius); overflow: hidden; margin: 34px 0 44px; }
.wf-prose { font-size: 19px; }
.wf-prose p, .wf-prose ul, .wf-prose ol { margin: 0 0 1.2em; }
.wf-prose h2 { font-size: 34px; margin-top: 1.6em; }
.wf-prose h3 { font-size: 26px; margin-top: 1.4em; }
.wf-prose blockquote {
  margin: 2em 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--wf-clay);
  font-family: "Fraunces", Georgia, serif; font-size: 24px; font-style: italic;
}
.wf-prose img { border-radius: 18px; }
.wf-pager { display: flex; justify-content: space-between; gap: 20px; margin: 56px 0; }

/* ---------- Footer ---------- */
.wf-footer { border-top: 1px solid var(--wf-line); padding: 56px 0 40px; }
.wf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.wf-footer h4 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-family: inherit; color: var(--wf-ink-soft); }
.wf-footer ul { list-style: none; margin: 0; padding: 0; }
.wf-footer li { margin-bottom: 8px; }
.wf-footer a { color: var(--wf-ink); text-decoration: none; }
.wf-footer a:hover { color: var(--wf-clay-deep); }
.wf-colophon { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--wf-line); font-size: 14px; color: var(--wf-ink-soft); }

@media (max-width: 1024px) {
  .wf-hero__grid, .wf-band__grid, .wf-card, .wf-card--flip { grid-template-columns: 1fr; }
  .wf-card--flip .wf-card__media { order: 0; }
  .wf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wf-header__inner { flex-wrap: wrap; gap: 14px; }
  .wf-nav { margin-left: 0; }
  .wf-hero { padding-top: 44px; }
  .wf-card__body { padding: 30px 24px; }
  .wf-footer__grid { grid-template-columns: 1fr; }
}
