/*
Theme Name: Fitness Guide
Theme URI: https://fitnessguide.co.in
Author: Rajni Sharma
Author URI: https://fitnessguide.co.in
Description: Hindi health journal theme for FitnessGuide.co.in. Warm paper, forest ink, clay accent.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitnessguide
Tags: blog, news, custom-menu, featured-images, threaded-comments
*/

:root {
  --paper: #f3eee4;
  --ink: #1c241f;
  --forest: #1b4d38;
  --deep: #10281e;
  --clay: #b85c38;
  --muted: #6a635a;
  --line: #ddd4c6;
  --card: #faf7f1;
  --wash: #e4efe8;
  --note: #f7efd8;
  --gold: #8d6d2f;
  --display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --sans: "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  --wrap: 72rem;
}

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

html { background: var(--paper); color: var(--ink); }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--forest); }
button, input, textarea { font: inherit; }
::selection { background: var(--wash); color: var(--deep); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: var(--card);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mobile-search { display: none; padding: 0.25rem 0 0.75rem; }
.mobile-search .search-form input[type="search"] { flex: 1; width: auto; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--forest);
}
.brand-site { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.9rem; }

.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
  width: 14rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
}
.search-form button,
.btn {
  border: 0;
  background: var(--forest);
  color: var(--card);
  min-height: 2.75rem;
  padding: 0 1rem;
  cursor: pointer;
}
.search-form button:hover,
.btn:hover { background: var(--deep); color: var(--card); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.site-nav { border-top: 1px solid var(--line); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

.hero, .section, .archive-head, .article, .page-body { padding: 2.5rem 0; }
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.kicker { margin: 0; color: var(--clay); font-size: 0.95rem; font-weight: 600; }
.display {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
}
.dek { color: var(--muted); font-size: 1.15rem; }
.meta { color: var(--ink); font-size: 0.92rem; }
.thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }

.topics {
  display: grid;
  background: var(--card);
  border-block: 1px solid var(--line);
}
.topics a { display: block; padding: 1.4rem 1.5rem; }
.topics h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--forest);
}
.topics p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }

.story-list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-block: 1px solid var(--line); }
.story-list li { border-bottom: 1px solid var(--line); }
.story-list li:last-child { border-bottom: 0; }
.story {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 0;
}
.story h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.entry-content { max-width: 42rem; font-size: 1.12rem; }
.entry-content h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.3;
}
.entry-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
}
.entry-content p { margin: 0 0 1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--forest); text-decoration: underline; text-underline-offset: 0.15em; }
.entry-content .fg-article { max-width: none; padding: 0; margin: 0; }

.note, .disclaimer {
  border-left: 4px solid var(--gold);
  background: var(--note);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.disclaimer { border-color: var(--line); background: var(--card); color: var(--muted); font-size: 0.95rem; }

.related { list-style: none; margin: 0.8rem 0 0; padding: 0; border-block: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.related h3 { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 400; }

.pager { display: flex; gap: 1rem; margin-top: 2rem; }
.pager a { color: var(--forest); text-decoration: underline; }

.site-footer { margin-top: 3rem; background: var(--deep); color: var(--card); }
.site-footer a { color: var(--card); text-decoration: underline; text-underline-offset: 0.15em; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.footer-name { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.footer-muted { color: var(--wash); font-size: 0.95rem; }
.site-footer h2 { margin: 0 0 0.6rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--note); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .topics a + a { border-left: 1px solid var(--line); }
  .story { grid-template-columns: 4fr 8fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .desktop-only { display: flex; }
}

@media (max-width: 799px) {
  .desktop-only { display: none; }
  .nav-toggle-label { display: inline-flex; }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { display: block; padding: 0.5rem 0 1rem; }
  .nav-toggle:checked ~ .site-nav .mobile-search { display: block; }
  .site-nav ul { flex-direction: column; }
  .topbar span:last-child { display: none; }
}

/* Legal and utility links in the footer */
.footer-legal-links { list-style: none; margin: 0; padding: 0; }
.footer-legal-links li { margin: 0.35rem 0; }
.footer-legal-links a { display: inline-block; }
