/* FitnessFor.Us — forest & morning light */
:root {
  --paper: #f6f2e8;
  --card: #fffdf7;
  --ink: #1f241e;
  --muted: #5f6858;
  --green: #2e5234;
  --green-deep: #1b3121;
  --moss: #5f8148;
  --gold: #b9822a;
  --gold-soft: #f1e2bf;
  --line: #e2d9c4;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --narrow: 720px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121812;
    --card: #192119;
    --ink: #e8e5da;
    --muted: #a4ad9c;
    --green: #9cc884;
    --green-deep: #0c120d;
    --moss: #8fb878;
    --gold: #e2b25c;
    --gold-soft: #3a3020;
    --line: #2b362b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.7 var(--serif);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.wrap.narrow { max-width: calc(var(--narrow) + 40px); }
.section { padding: 56px 20px; }
.section-title { font-size: 1.5rem; margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.meta { font: 500 .82rem/1.4 var(--sans); color: var(--muted); margin: 0 0 6px; letter-spacing: .01em; }
.meta a { color: var(--moss); text-decoration: none; }
.meta a:hover { color: var(--gold); }
.dot { opacity: .6; margin: 0 2px; }
.more { font: 600 .92rem/1 var(--sans); text-decoration: none; color: var(--green); display: inline-block; margin-top: 8px; }
.more:hover { color: var(--gold); }
.btn {
  display: inline-block; font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--gold); color: #1b1407; border: 2px solid var(--gold);
  padding: 13px 22px; border-radius: 999px; transition: transform .15s, background .15s;
}
.btn:hover { color: #1b1407; transform: translateY(-1px); background: #d0993a; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 1.3rem/1 var(--display); }
.brand img { border-radius: 50%; width: 38px; height: 38px; object-fit: cover; }
.brand b, .footer-name b { color: var(--gold); font-weight: 650; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; font: 600 .92rem/1 var(--sans); color: var(--ink); text-decoration: none; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--gold-soft); color: var(--ink); }
.nav-search a { display: flex; align-items: center; gap: 8px; }
.sr-mobile { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .sr-mobile { display: inline; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-deep); }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,26,16,.88) 0%, rgba(14,26,16,.62) 48%, rgba(14,26,16,.15) 100%),
              url(/wp-content/uploads/2026/03/Forest-1200px.jpg) center 60% / cover no-repeat;
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 96px; max-width: var(--wrap); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 14ch; margin: 0 0 18px; font-weight: 500; }
.hero h1 em { font-style: italic; color: #f2c66d; }
.hero .eyebrow { color: #f2c66d; }
.hero .lede { font-size: 1.22rem; max-width: 36rem; margin: 0 0 28px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

/* Latest */
.latest-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 4px 0 12px; }
.feature h3 a, .post-item h3 a, .fav-list a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover, .post-item h3 a:hover, .fav-list a:hover { color: var(--green); }
.feature-img { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; aspect-ratio: 3 / 2; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.feature-img:hover img { transform: scale(1.03); }
.excerpt { margin: 0; color: var(--muted); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 0; }
.post-item h3 { font-size: 1.22rem; margin: 0 0 6px; font-weight: 600; }
.post-item .excerpt { font-size: 1rem; }
.latest-list .post-item h3 { font-size: 1.1rem; margin: 0; }

@media (max-width: 860px) { .latest-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Topic cards */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-cards a {
  display: flex; flex-direction: column; height: 100%; padding: 22px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.topic-cards a:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.tc-name { font: 650 1.3rem/1.2 var(--display); }
.tc-count { font: 600 .78rem/1 var(--sans); color: var(--gold); margin: 8px 0 10px; text-transform: uppercase; letter-spacing: .1em; }
.tc-blurb { font-size: .98rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .topic-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .topic-cards { grid-template-columns: 1fr; } }

/* About + favorites */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-blurb img { float: left; width: 150px; height: auto; border-radius: 12px; margin: 6px 20px 10px 0; }
.about-blurb p { margin: 0 0 14px; }
.fav-list { margin: 0; padding: 0; list-style: none; counter-reset: fav; }
.fav-list li { counter-increment: fav; display: grid; grid-template-columns: 2.2rem 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 1.05rem/1.4 var(--serif); }
.fav-list li::before { content: counter(fav, decimal-leading-zero); font: 600 .85rem/1.9 var(--sans); color: var(--gold); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .about-blurb img { width: 110px; } }

/* Single post / page */
.entry { padding-top: 48px; padding-bottom: 40px; }
.entry-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 6px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips a { font: 600 .8rem/1 var(--sans); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); }
.chips a:hover { background: var(--gold); color: #1b1407; }
.cover { margin: 0 0 28px; }
.cover img { border-radius: var(--radius); width: 100%; }
.prose { overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { font-size: 1.65rem; margin: 2em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .4em; }
.prose h4 { font: 700 1rem/1.4 var(--sans); margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: 8px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font: 500 .85rem/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.prose .alignleft { float: left; margin: .35em 1.5em 1em 0; max-width: 45%; }
.prose .alignright { float: right; margin: .35em 0 1em 1.5em; max-width: 45%; }
.prose .aligncenter, .prose .wp-block-image.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.prose .wp-caption.alignleft, .prose .wp-caption.alignright { width: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.4em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
@media (max-width: 560px) {
  .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
}

/* YouTube (click to load) */
.video { margin: 1.6em 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; opacity: .88; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #e62117; border-radius: 12px; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video > iframe { position: static; aspect-ratio: 16 / 9; height: auto; }

.entry-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.tags { font: 500 .88rem/1.5 var(--sans); color: var(--muted); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.prevnext a { display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font: 600 1rem/1.35 var(--serif); }
.prevnext a:hover { border-color: var(--gold); }
.prevnext span { display: block; font: 600 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 8px; }
.prevnext .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { grid-column: 1; } }

/* Lists, topics, archive */
.list-head { margin-bottom: 30px; }
.list-head h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin: 0 0 8px; }
.topic-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.topic-groups section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.topic-groups h2 { font-size: 1.3rem; margin: 0 0 12px; }
.topic-groups ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.topic-groups li { padding: 5px 0; break-inside: avoid; }
.count { font: 600 .78rem/1 var(--sans); color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 3px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
@media (max-width: 760px) { .topic-groups { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .topic-groups ul { columns: 1; } }

.filter input, .search-form input {
  width: 100%; font: 400 1.05rem/1.4 var(--sans); padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.filter input:focus, .search-form input:focus, .contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.filter { display: block; margin: 20px 0 14px; }
.years { display: flex; flex-wrap: wrap; gap: 6px; font: 600 .85rem/1 var(--sans); }
.years a { text-decoration: none; padding: 7px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.year { scroll-margin-top: 80px; }
.year h2 { font-size: 1.6rem; margin: 34px 0 8px; position: sticky; top: 66px; background: var(--paper); padding: 8px 0; z-index: 2; }
.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.title-list time { font: 500 .82rem/1.9 var(--sans); color: var(--muted); }
.title-list a { text-decoration: none; color: var(--ink); }
.title-list a:hover { color: var(--green); }
.search-form { display: flex; gap: 10px; margin: 18px 0 12px; }
.search-form .btn { flex: none; }

/* Contact */
.contact-box { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-form p { margin: 0 0 18px; }
.contact-form label { display: block; font: 600 .9rem/1.3 var(--sans); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: 400 1.05rem/1.5 var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.notice { border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; font-family: var(--sans); font-size: 1rem; }
.notice p { margin: 0; }
.notice.ok { background: #e3efdc; color: #1f3d1f; }
.notice.err { background: #f8e1dc; color: #6b1d10; }

/* Books page (bookshop.org widgets) */
.page-health-fitness-books .prose { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.page-health-fitness-books .prose > p { grid-column: 1 / -1; }

/* Footer */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.78); margin-top: 0; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f2c66d; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 28px; }
.footer-name { font: 650 1.5rem/1 var(--display); color: #fff; margin: 0 0 12px; }
.footer-name b { color: #f2c66d; }
.footer-brand p:last-child { max-width: 30rem; margin: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; font: 500 .95rem/1 var(--sans); }
.footer-nav li { padding: 7px 0; }
.footer-small { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 28px; font: 400 .82rem/1.5 var(--sans); }
.footer-small a { text-decoration: underline; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  body { font-size: 1.08rem; }
  .section { padding: 44px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
