/*
Theme Name: Walking Challenge Guide
Theme URI: https://businessfromhome.site/
Author: Jeremy Criddle
Description: A purpose-built editorial theme for practical walking accountability guides.
Version: 1.0.6
Text Domain: wcg
*/

:root {
  --paper: #f7f9f7;
  --white: #ffffff;
  --ink: #10263f;
  --blue: #1769e0;
  --green: #138a5b;
  --yellow: #f2c14e;
  --line: #d7e0e5;
  --muted: #526579;
  --wash: #eaf1f7;
  --max: 1180px;
  --reading: 740px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: .17em; text-decoration-thickness: .08em; }
a:hover { color: #0d4fae; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header {
  background: rgba(247,249,247,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner, .footer-inner, .shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-mark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; }
.site-mark svg { width: 38px; height: 38px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 700; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav .nav-action { color: var(--white); background: var(--blue); padding: 9px 15px; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 800; }

.hero { padding: clamp(34px,4vw,48px) 0 38px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,1fr); align-items: center; gap: clamp(34px,5vw,68px); }
.kicker { color: var(--green); font-size: 15px; font-weight: 800; margin: 0 0 18px; }
h1,h2,h3 { line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(42px,4.25vw,58px); margin: 0 0 22px; max-width: 780px; }
h2 { font-size: clamp(32px,4vw,49px); margin: 0 0 20px; }
h3 { font-size: clamp(23px,2.4vw,30px); margin: 34px 0 12px; }
.hero-copy { font-size: clamp(19px,2vw,23px); line-height: 1.5; max-width: 630px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.button { display: inline-block; background: var(--blue); color: var(--white); padding: 14px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 #0d4fae; }
.button:hover { color: var(--white); transform: translateY(1px); box-shadow: 0 4px 0 #0d4fae; }
.text-link { font-weight: 800; }
.hero-art { position: relative; }
.hero-art img { width: 100%; display: block; border-radius: 26px; border: 1px solid var(--line); background: var(--white); }
.hero-art::after { content: "5 walkers · 1 team score"; position: absolute; right: 18px; bottom: 18px; background: var(--ink); color: white; padding: 9px 13px; border-radius: 10px; font-size: 14px; font-weight: 800; }

.status-strip { background: var(--ink); color: var(--white); }
.status-inner { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.status-number { color: var(--yellow); font-weight: 900; font-size: 25px; }
.status-copy { font-weight: 700; }

.section { padding: clamp(64px,8vw,104px) 0; }
.section-white { background: var(--white); }
.section-intro { max-width: 720px; margin-bottom: 42px; color: var(--muted); font-size: 20px; }
.paths { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); }
.path { padding: 28px 32px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
.path:nth-child(odd) { border-right: 1px solid var(--line); }
.path:nth-child(even) { padding-left: 32px; }
.path-mark { width: 42px; height: 42px; border: 3px solid var(--blue); border-radius: 50% 50% 50% 8px; transform: rotate(-25deg); }
.path h3 { margin: 0 0 8px; font-size: 25px; }
.path p { margin: 0 0 10px; color: var(--muted); }
.path a { font-weight: 800; }

.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px,7vw,92px); align-items: start; }
.steps { border-left: 5px solid var(--green); padding-left: 28px; }
.step { padding: 4px 0 28px; }
.step:last-child { padding-bottom: 0; }
.step strong { display: block; font-size: 23px; line-height: 1.2; }
.step p { margin: 7px 0 0; color: var(--muted); }

.invite { background: var(--blue); color: var(--white); border-radius: 28px; padding: clamp(34px,6vw,68px); display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; align-items: center; }
.invite > div:first-child { display: grid; gap: 16px; }
.invite .kicker { color: var(--yellow); margin: 0; }
.invite h2 { color: var(--white); }
.invite p { margin: 0; color: #edf5ff; max-width: 670px; }
.invite .button { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 #ba8c16; text-align: center; }
.invite-note { margin-top: 16px !important; font-size: 14px; }

.article-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(54px,7vw,86px) 0; }
.article-head-inner { width: min(calc(100% - 40px), 920px); margin-inline: auto; }
.article-head h1 { font-size: clamp(42px,6vw,70px); }
.answer { color: var(--muted); font-size: 22px; max-width: 790px; margin: 0; }
.article-layout { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,var(--reading)) 240px; justify-content: space-between; gap: 64px; padding: 64px 0 92px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content li { max-width: 74ch; }
.entry-content h2 { margin-top: 56px; font-size: clamp(30px,4vw,43px); }
.entry-content h3 { letter-spacing: -.025em; }
.entry-content blockquote { margin: 38px 0; padding: 2px 0 2px 24px; border-left: 5px solid var(--yellow); font-size: 23px; font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; vertical-align: top; }
.entry-content th { color: var(--ink); }
.quick-answer { background: var(--wash); border-left: 5px solid var(--blue); padding: 24px 26px; margin: 0 0 42px; }
.quick-answer strong { display: block; margin-bottom: 7px; }
.article-aside { position: sticky; top: 100px; align-self: start; border-top: 5px solid var(--green); padding-top: 18px; font-size: 15px; }
.article-aside strong { display: block; font-size: 19px; }
.article-aside p { color: var(--muted); }
.article-aside a { font-weight: 800; }

.site-footer { background: var(--ink); color: #dce7f0; padding: 54px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 38px; }
.footer-title { color: white; font-weight: 900; font-size: 22px; }
.footer-copy { max-width: 600px; color: #b8c7d4; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.footer-links a { color: white; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #31465d; padding-top: 22px; font-size: 13px; color: #9fb0bf; }

@media (max-width: 860px) {
  .hero-grid, .explainer, .invite, .article-layout { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; }
  .article-aside { position: static; border-top: 1px solid var(--line); padding-top: 24px; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--paper); padding: 22px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .header-inner, .footer-inner, .shell, .status-inner, .article-head-inner, .article-layout { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art::after { position: static; display: block; border-radius: 0 0 16px 16px; text-align: center; }
  .paths { grid-template-columns: 1fr; }
  .path, .path:nth-child(even) { padding: 24px 0; border-right: 0; }
  .invite { border-radius: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
