/* ==========================================================================
   Wolfpack Softball — Drill Cards
   A modern, helper-friendly design system for 3rd/4th grade practice.
   ========================================================================== */

:root {
  /* Brand */
  --red: #d71920;
  --red-dark: #a81117;
  --red-soft: #fef2f2;

  /* Neutrals */
  --ink: #0b0f14;
  --graphite: #1f2937;
  --slate: #475569;
  --mute: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f3f6;
  --paper: #f6f7fb;
  --white: #ffffff;

  /* Warm accents */
  --sun: #fbbf24;
  --sun-soft: #fef3c7;
  --sun-ink: #78350f;

  --mint: #dcfce7;
  --mint-edge: #86efac;
  --mint-ink: #065f46;

  --berry: #fee2e2;
  --berry-edge: #fca5a5;
  --berry-ink: #9f1239;

  /* Category accents (used for chips + thin borders) */
  --cat-catching: #0284c7;
  --cat-throwing: #ea580c;
  --cat-hitting:  #7c3aed;

  /* System */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 20, 25, 0.05);
  --shadow:    0 10px 30px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 20, 25, 0.10);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
}

a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.smallcaps {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  color: var(--graphite);
}

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ==========================================================================
   INDEX PAGE
   ========================================================================== */

.site {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.site-header .mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  flex: none;
  box-shadow: var(--shadow-sm);
}
.site-header .mark img { width: 100%; height: 100%; object-fit: cover; }

.site-header .title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-header .title .kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.site-header .title .name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.site-header .spacer { flex: 1; }

.site-header .meta {
  font-size: 13px;
  color: var(--mute);
}

/* Hero */
.hero {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 900;
  margin: 0 0 18px;
}

.hero h1 .accent {
  color: var(--red);
  white-space: nowrap;
}

.hero p.lede {
  font-size: 17px;
  color: var(--slate);
  max-width: 56ch;
  margin: 0 0 22px;
}

.hero .bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14px;
  color: var(--slate);
}
.hero .bullets li {
  display: flex; gap: 10px; align-items: flex-start;
}
.hero .bullets li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sun-soft);
  border: 2px solid var(--sun);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute; inset: auto -40px -40px auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--red-soft), transparent 70%);
  pointer-events: none;
}
.hero-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-card ol {
  margin: 0; padding-left: 20px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
}
.hero-card ol li { margin-bottom: 6px; }

/* Category sections */
.section {
  margin-top: 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.02em;
  font-weight: 900;
}
.section-head .count {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}
.section-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--line-soft);
  color: var(--graphite);
}
.section-head .chip .dot { width: 8px; height: 8px; }

.cat-catching .chip { background: #e0f2fe; color: #075985; }
.cat-catching .chip .dot { background: var(--cat-catching); }
.cat-throwing .chip { background: #ffedd5; color: #9a3412; }
.cat-throwing .chip .dot { background: var(--cat-throwing); }
.cat-hitting  .chip { background: #ede9fe; color: #5b21b6; }
.cat-hitting  .chip .dot { background: var(--cat-hitting); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.drill-card {
  display: flex; flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
  isolation: isolate;
}
.drill-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d1d5db;
}
.drill-card .top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.drill-card .num {
  font-variant-numeric: tabular-nums;
}
.drill-card .time {
  display: inline-flex; align-items: center; gap: 6px;
}
.drill-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
}
.drill-card p {
  margin: 0;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}
.drill-card .cue {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.drill-card .cue .label {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}
.drill-card .cue .arrow {
  opacity: 0; transform: translateX(-4px);
  transition: all .2s var(--ease);
  font-size: 16px; color: var(--ink);
}
.drill-card:hover .cue .arrow { opacity: 1; transform: translateX(0); }

.cat-catching .drill-card { border-top: 3px solid var(--cat-catching); }
.cat-throwing .drill-card { border-top: 3px solid var(--cat-throwing); }
.cat-hitting  .drill-card { border-top: 3px solid var(--cat-hitting); }

/* Site footer */
.site-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   DRILL PAGE
   ========================================================================== */

body.drill {
  background: var(--paper);
  padding: 24px 16px 40px;
}

.nav {
  max-width: 8.5in;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: all .15s var(--ease);
}
.nav a:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.nav .print-btn {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.nav .print-btn:hover { background: var(--red); border-color: var(--red); }

.page {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  page-break-after: always;
}

/* --- topbar --- */
.topbar {
  padding: 22px 32px 20px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: relative;
}

.topbar .mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line);
}
.topbar .mark img { width: 100%; height: 100%; object-fit: cover; }

.topbar .head-meta {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.topbar .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mute);
}
.topbar .eyebrow .dot { width: 7px; height: 7px; }
.topbar h1 {
  margin: 2px 0 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 900;
  color: var(--ink);
}

.topbar .time-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--sun-soft);
  color: var(--sun-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid #fde68a;
}

/* --- what they'll learn + equipment strip --- */
.teach {
  padding: 18px 32px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.teach .what {
  flex: 1 1 380px;
  min-width: 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.teach .what .tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.teach .what p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--graphite);
  font-weight: 500;
}

.equipment {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}
.equipment .label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.equipment .kit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite);
}

/* --- main content grid --- */
.content {
  flex: 1;
  padding: 18px 32px 16px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-content: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  background: var(--white);
  break-inside: avoid;
}
.card .label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}
.card .label .dot { width: 7px; height: 7px; background: var(--red); }

.card.primary  .label .dot { background: var(--red); }
.card.secondary .label .dot { background: var(--graphite); }

.card ul, .card ol {
  margin: 0; padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--graphite);
}
.card ul li, .card ol li { margin-bottom: 4px; }

.card ol.steps {
  list-style: none; padding: 0;
  counter-reset: step;
}
.card ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 32px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.card ol.steps li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.card ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  width: 22px; height: 22px;
}

.say-list {
  display: grid;
  gap: 6px;
}
.say {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--graphite);
  padding: 7px 10px;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  font-weight: 500;
  position: relative;
  padding-left: 22px;
}
.say::before {
  content: "“";
  position: absolute;
  left: 8px; top: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.highfive ul { list-style: none; padding: 0; }
.highfive li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--graphite);
  margin-bottom: 4px;
}
.highfive li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--sun);
  font-size: 13px;
  line-height: 1.45;
}
.highfive .label .dot { background: var(--sun); }

/* --- full-width high-five band --- */
.highfive-band {
  padding: 12px 32px 0;
}
.highfive-band .card.highfive {
  background: linear-gradient(180deg, var(--white) 0%, var(--sun-soft) 140%);
  border-color: #fde68a;
}
.highfive-band .highfive ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 22px;
  row-gap: 4px;
}
@media (max-width: 720px) {
  .highfive-band .highfive ul { grid-template-columns: 1fr; }
}

/* --- easier / level up row --- */
.progression {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 32px;
}
.progression .card {
  padding: 12px 14px 14px;
}
.progression .easier {
  background: var(--mint);
  border-color: var(--mint-edge);
}
.progression .easier .label { color: var(--mint-ink); }
.progression .easier .label .dot { background: var(--mint-ink); }
.progression .levelup {
  background: var(--berry);
  border-color: var(--berry-edge);
}
.progression .levelup .label { color: var(--berry-ink); }
.progression .levelup .label .dot { background: var(--berry-ink); }
.progression p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--graphite);
}

/* --- key cue --- */
.key-cue {
  margin: 12px 32px 0;
  background: linear-gradient(180deg, #0b0f14, #1a1f2a);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.key-cue::after {
  content: "";
  position: absolute; inset: auto -20px -20px auto;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251,191,36,.35), transparent 70%);
  pointer-events: none;
}
.key-cue .star {
  font-size: 28px;
  color: var(--sun);
  line-height: 1;
}
.key-cue .body { position: relative; }
.key-cue .body .label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 4px;
}
.key-cue .body .text {
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* --- page footer --- */
.page-footer {
  margin-top: auto;
  padding: 18px 32px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--slate);
}
.page-footer .goal strong {
  color: var(--ink);
  font-weight: 800;
}
.page-footer .stamp {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ==========================================================================
   PRINT — each drill prints as one clean 8.5x11 page.
   ========================================================================== */

@media print {
  /* Each drill is designed to fit a single Letter page. Margins are tight
     and everything inside .page is proportionally shrunk to guarantee fit. */
  @page { size: letter; margin: 0.3in; }

  html, body {
    background: var(--white) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.drill { padding: 0; }
  .nav { display: none !important; }
  a { text-decoration: none; color: inherit; }

  .page {
    width: 100%;
    min-height: auto;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    break-after: auto;
    page-break-after: auto;
    page-break-inside: avoid;
  }

  .card, .key-cue, .progression .card, .hero-card {
    box-shadow: none !important;
  }

  /* ---- Topbar ---- */
  .topbar {
    padding: 14px 24px 12px;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
  }
  .topbar .mark { width: 52px; height: 52px; }
  .topbar .eyebrow { font-size: 9.5px; letter-spacing: .15em; }
  .topbar h1 { font-size: 27px; }
  .topbar .time-pill { padding: 5px 10px; font-size: 10px; }

  /* ---- Teach + equipment ---- */
  .teach { padding: 10px 24px 8px; gap: 10px 18px; }
  .teach .what .tag { padding: 3px 8px; font-size: 9.5px; }
  .teach .what p { font-size: 13px; line-height: 1.4; }
  .equipment .label { font-size: 9px; }
  .equipment .kit { padding: 3px 8px; font-size: 11px; }

  /* ---- Main content grid ---- */
  .content { padding: 10px 24px 6px; gap: 10px; }
  .stack { gap: 8px; }
  .card { padding: 10px 12px 11px; border-radius: 10px; }
  .card .label { font-size: 10px; margin-bottom: 6px; letter-spacing: .14em; }
  .card ul, .card ol { font-size: 12px; line-height: 1.42; padding-left: 16px; }
  .card ul li, .card ol li { margin-bottom: 2px; }
  .card ol.steps li {
    padding-left: 26px; margin-bottom: 4px; padding-bottom: 4px;
  }
  .card ol.steps li::before {
    width: 19px; height: 19px; line-height: 19px; font-size: 10px;
  }

  .say-list { gap: 4px; }
  .say {
    padding: 5px 8px 5px 20px; font-size: 12px; line-height: 1.35;
  }
  .say::before { font-size: 18px; top: -1px; left: 7px; }

  /* ---- High-five band ---- */
  .highfive-band { padding: 6px 24px 0; }
  .highfive-band .card.highfive { padding: 10px 14px 11px; }
  .highfive-band .highfive ul { row-gap: 2px; column-gap: 18px; }
  .highfive li { font-size: 11.5px; padding-left: 17px; margin-bottom: 2px; }

  /* ---- Progression (easier / level up) ---- */
  .progression { padding: 0 24px; gap: 10px; margin-top: 2px; }
  .progression .card { padding: 9px 12px 11px; }
  .progression p { font-size: 12px; line-height: 1.38; }

  /* ---- Key cue ---- */
  .key-cue {
    margin: 8px 24px 0;
    padding: 12px 18px;
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .key-cue .star { font-size: 24px; }
  .key-cue .body .label { font-size: 10px; margin-bottom: 3px; }
  .key-cue .body .text { font-size: 18px; line-height: 1.1; }

  /* ---- Page footer ---- */
  .page-footer {
    padding: 10px 24px 12px;
    font-size: 11px;
    gap: 14px;
  }
  .page-footer .stamp { font-size: 9.5px; }

  /* Index page — keep but don't break */
  .site-footer { display: none; }
}
