/* FreeCoachingDrills.com — shared stylesheet
   Palette: chalkboard green-black, whistle gold, turf green, paper white, ink navy
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --chalkboard: #1E2A22;
  --chalkboard-line: #37473C;
  --whistle: #E3A93C;
  --turf: #3F7D4C;
  --turf-dark: #2E5D38;
  --paper: #F6F3EC;
  --paper-card: #FCFAF5;
  --ink: #212A24;
  --ink-soft: #4B564E;
  --line: #D9D3C4;
  --focus: #1F6FB2;

  --headline: 'Barlow Condensed', sans-serif;
  --body: 'Lora', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--turf-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--whistle); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--headline);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: none; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--chalkboard);
  color: var(--paper);
  border-bottom: 4px solid var(--whistle);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-family: var(--headline);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo span { color: var(--whistle); }
.logo:hover { color: var(--paper); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--paper);
  font-family: var(--headline);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--whistle);
  color: var(--paper);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-family: var(--headline);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--turf-dark); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--chalkboard);
  color: var(--paper);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-diagram {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
}
.hero-kicker {
  font-family: var(--headline);
  color: var(--whistle);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero p.lede {
  color: #DDE3D8;
  font-size: 1.15rem;
  max-width: 52ch;
  margin-top: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--headline);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 26px;
  border: 2px solid var(--whistle);
  color: var(--ink);
  background: var(--whistle);
  margin-top: 22px;
  margin-right: 12px;
}
.btn:hover { background: transparent; color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: #6B7A6F;
}
.btn-ghost:hover { border-color: var(--whistle); color: var(--whistle); }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.section-head { margin-bottom: 28px; border-top: 3px dashed var(--line); padding-top: 20px; }
.section-head:first-child { border-top: none; padding-top: 0; }

/* ---------- Sport grid (home) ---------- */

.sport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sport-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.15s ease;
}
.sport-card:hover { border-color: var(--turf); color: var(--ink); }
.sport-card svg { width: 46px; height: 46px; margin-bottom: 14px; }
.sport-card h3 { margin-bottom: 6px; }
.sport-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
.sport-card .count {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--headline);
  font-size: 0.85rem;
  color: var(--turf-dark);
}

/* ---------- Drill list (category page) ---------- */

.drill-list {
  display: grid;
  gap: 16px;
}
.drill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.drill-row:last-child { border-bottom: 1px solid var(--line); }
.drill-row h3 { margin-bottom: 6px; }
.drill-row h3 a { text-decoration: none; color: var(--ink); }
.drill-row h3 a:hover { color: var(--turf-dark); }
.drill-row p { margin-bottom: 8px; color: var(--ink-soft); font-size: 0.98rem; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--headline);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--turf-dark);
  border: 1px solid var(--turf);
  padding: 2px 9px;
}
.meta-box {
  font-family: var(--headline);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
  padding-top: 4px;
}

/* ---------- Drill detail page ---------- */

.drill-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0 8px;
}
.drill-meta div {
  padding: 14px 18px;
  border-left: 1px solid var(--line);
}
.drill-meta div:first-child { border-left: none; }
.drill-meta .label {
  font-family: var(--headline);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 3px;
}
.drill-meta .value { font-weight: 600; font-family: var(--body); }

article.drill h2 {
  margin-top: 2.2em;
  border-top: 3px dashed var(--line);
  padding-top: 0.6em;
}
article.drill h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.6em; }

article.drill ol, article.drill ul { padding-left: 1.3em; }
article.drill li { margin-bottom: 0.6em; }

.coach-note {
  background: var(--paper-card);
  border-left: 4px solid var(--whistle);
  padding: 16px 20px;
  margin: 1.6em 0;
}
.coach-note .label {
  font-family: var(--headline);
  color: var(--turf-dark);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 4px;
}

.related-box {
  background: var(--chalkboard);
  color: var(--paper);
  padding: 30px 28px;
  margin-top: 3em;
}
.related-box h3 { color: var(--paper); }
.related-box ul { list-style: none; margin: 0; padding: 0; }
.related-box li { margin-bottom: 8px; }
.related-box a { color: var(--paper); text-decoration: none; border-bottom: 1px solid #4A5A4E; }
.related-box a:hover { color: var(--whistle); border-bottom-color: var(--whistle); }

/* ---------- Plan tips (home / category) ---------- */

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tip-grid h4 { color: var(--turf-dark); }
.tip-grid p { font-size: 0.97rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--chalkboard);
  color: #C8D0C6;
  margin-top: 60px;
  padding: 40px 0 30px;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: #C8D0C6; }
.site-footer a:hover { color: var(--whistle); }
.site-footer .brand {
  font-family: var(--headline);
  font-size: 1.15rem;
  color: var(--paper);
}
.site-footer .fine { margin-top: 18px; color: #8B9788; font-size: 0.85rem; }

/* ---------- Age-tier browse nav ---------- */

.age-tier-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 32px;
}
.age-tier-nav a {
  font-family: var(--headline);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border: 1px solid var(--turf);
  border-radius: 3px;
  color: var(--turf-dark);
  text-decoration: none;
  background: var(--paper-card);
  box-shadow: 0 1px 2px rgba(30, 42, 34, 0.06);
  margin: 0 14px 14px 0;
  display: inline-block;
}
.age-tier-nav a:last-child { margin-right: 0; }
.age-tier-nav a:hover,
.age-tier-nav a.is-active {
  background: var(--turf);
  color: #fff;
}

.plan-callout {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--turf);
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.plan-callout p { margin: 0; max-width: 48ch; }
.plan-callout .btn { margin: 0; padding: 10px 20px; font-size: 0.95rem; white-space: nowrap; }

/* ---------- Practice plan agenda blocks ---------- */

.agenda-block {
  border: 1px solid var(--line);
  border-top: 3px solid var(--turf);
  padding: 20px 24px;
  margin: 20px 0;
  background: var(--paper-card);
}
.agenda-block .agenda-time {
  font-family: var(--headline);
  color: var(--turf-dark);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 4px;
}
.agenda-block h3 { margin-bottom: 8px; }
.agenda-block h3 a { text-decoration: none; color: var(--ink); }
.agenda-block h3 a:hover { color: var(--turf-dark); }
.agenda-block p { margin-bottom: 0; font-size: 0.97rem; color: var(--ink-soft); }
.agenda-total {
  font-family: var(--headline);
  background: var(--chalkboard);
  color: var(--paper);
  padding: 16px 22px;
  margin: 24px 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.agenda-total span { color: var(--whistle); }

@media print {
  .site-header, .site-nav, .breadcrumbs, .hero, .plan-callout,
  .related-box, .site-footer, .btn { display: none !important; }
  body { font-size: 13px; }
  .agenda-block { break-inside: avoid; }
}



@media (max-width: 860px) {
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
  .tip-grid { grid-template-columns: 1fr; }
  .drill-meta { grid-template-columns: repeat(2, 1fr); }
  .drill-meta div:nth-child(3) { border-left: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sport-grid { grid-template-columns: 1fr; }
  .drill-row { grid-template-columns: 1fr; }
  .meta-box { text-align: left; }
  .drill-meta { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  section { padding: 38px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
