/* ===============================
   FONTS & ROOT VARIABLES
   =============================== */

/* Google Fonts (optional but nice) */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Oswald:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core colors */
  --field-green: #1c4b2b;       /* chalkboard / turf */
  --deep-navy: #071826;         /* deep marine + arena shadows */
  --sea-teal: #1c6f73;          /* marine teal */
  --seafoam: #b6e1d8;           /* soft highlight */
  --foam-white: #f7f9f8;        /* background */
  --chalk-white: #fdfdf5;       /* text on dark bg */
  --sun-gold: #f5a623;          /* accent / highlight */
  --coral-accent: #f46b5a;      /* secondary accent */

  /* Neutrals */
  --line-gray: #dde3e8;
  --muted-gray: #88929c;

  /* Text */
  --text-main: #0d1b26;
  --text-muted: #607080;

  /* Shadows */
  --soft-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ===============================
   GLOBAL PAGE STYLING
   =============================== */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #e4f1f0 0, #f6fafb 45%, #f8fbfd 100%);
  line-height: 1.6;
}

/* Center content a bit and soften edges */
.main-container, .page-inner, .quarto-container {
  max-width: 900px;
  margin: 2.5rem auto 4rem auto;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

/* ===============================
   HEADINGS
   =============================== */

h1, h2, h3, h4 {
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-navy);
}

h1.title {
  font-family: "Permanent Marker", "Oswald", system-ui, sans-serif;
  text-align: center;
  font-size: 2.7rem;
  margin-bottom: 0.25rem;
  color: var(--deep-navy);
}

.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sea-teal);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Chalkboard underline vibe */
h2 {
  font-size: 1.6rem;
  margin-top: 2.2rem;
  padding-bottom: 0.15rem;
  border-bottom: 3px solid rgba(28, 75, 43, 0.18);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
}

/* ===============================
   TEXT ELEMENTS & LINKS
   =============================== */

p {
  margin: 0.6rem 0;
}

a {
  color: var(--sea-teal);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sun-gold);
}

/* Emphasis for sports terms */
em {
  font-style: italic;
}

/* ===============================
   TOC (Playbook Contents)
   =============================== */

#TOC, .toc, nav.toc {
  background: #f3f8f7;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-gray);
  font-size: 0.95rem;
}

#TOC .toc-title, .toc-title {
  font-family: "Permanent Marker", "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sea-teal);
  margin-bottom: 0.7rem;
}

#TOC ul, nav.toc ul {
  list-style: none;
  padding-left: 0;
}

#TOC li, nav.toc li {
  margin-bottom: 0.35rem;
}

#TOC a, nav.toc a {
  text-decoration: none;
}

#TOC a:hover, nav.toc a:hover {
  text-decoration: underline;
}

/* ===============================
   IMAGES & FIGURES
   =============================== */

img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
}

/* ===============================
   HORIZONTAL RULES / DIVIDERS
   =============================== */

hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(to right, transparent, #b8c6cc, transparent);
}

/* ===============================
   TABLES (Team Rosters / Stats)
   =============================== */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line-gray);
}

th {
  background: #e8f2ef;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--deep-navy);
}

tbody tr:nth-child(even) {
  background: #f7fbfa;
}

/* ===============================
   BLOCKQUOTES (Coach Quotes)
   =============================== */

blockquote {
  border-left: 4px solid var(--sea-teal);
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  background: #f3f8f7;
  border-radius: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===============================
   SPECIAL “PLAYBOOK” CALLOUTS
   =============================== */

/* All custom cards share base style */
.playbook-card {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Card headers */
.playbook-card h3,
.playbook-card h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* 1. Coach’s Clipboard (concept explainers) */
.coach-clipboard {
  background: linear-gradient(135deg, #fef8eb, #fbead1);
  border-color: rgba(245, 166, 35, 0.55);
}

.coach-clipboard h4::before {
  content: "📋 Coach’s Clipboard — ";
  font-family: "Permanent Marker", "Oswald", sans-serif;
}

/* 2. Condition Check (environmental section) */
.condition-check {
  background: linear-gradient(135deg, #e1f4f1, #cde8e2);
  border-color: rgba(28, 111, 115, 0.5);
}

.condition-check h4::before {
  content: "🌡️ Condition Check — ";
  font-family: "Permanent Marker", "Oswald", sans-serif;
}

/* 3. Replay Review (acclimation vs adaptation / nuance) */
.replay-review {
  background: linear-gradient(135deg, #fefefe, #f3f5f8);
  border: 1px dashed rgba(7, 24, 38, 0.55);
}

.replay-review h4::before {
  content: "🎥 Replay Review — ";
  font-family: "Permanent Marker", "Oswald", sans-serif;
}

/* 4. Official Review (trust, peer review) */
.official-review {
  background: repeating-linear-gradient(
    135deg,
    #ffffff,
    #ffffff 8px,
    #f3f5f7 8px,
    #f3f5f7 16px
  );
  border-color: rgba(7, 24, 38, 0.7);
}

.official-review h4::before {
  content: "🦓 Official Review — ";
  font-family: "Permanent Marker", "Oswald", sans-serif;
}

/* 5. Draft Board (future directions) */
.draft-board {
  background: radial-gradient(circle at top left, #cde8cf 0, #9dcba4 55%, #6a9b73 100%);
  border-color: rgba(28, 75, 43, 0.7);
  color: var(--chalk-white);
}

.draft-board h4 {
  color: var(--chalk-white);
}

.draft-board h4::before {
  content: "📋 Draft Board — ";
  font-family: "Permanent Marker", "Oswald", sans-serif;
}

/* ===============================
   CHALKBOARD FEATURE BLOCK
   (for big epigenetics explainer)
   =============================== */

.chalkboard {
  background: radial-gradient(circle at top left, #315c3c 0, #153220 55%, #08190f 100%);
  color: var(--chalk-white);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  margin: 1.8rem 0;
  box-shadow: 0 16px 35px rgba(0,0,0,0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.chalkboard h2,
.chalkboard h3,
.chalkboard h4 {
  color: var(--chalk-white);
  border-bottom-color: rgba(255,255,255,0.25);
}

.chalkboard::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 14px;
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: #fdfdf5; /* chalk stub */
  opacity: 0.7;
}

/* Chalky bullet points */
.chalkboard ul {
  list-style: none;
  padding-left: 0;
}

.chalkboard ul li::before {
  content: "•";
  color: var(--chalk-white);
  margin-right: 0.5rem;
}

/* ===============================
   SMALL SCREEN TWEAKS
   =============================== */

@media (max-width: 768px) {
  .main-container, .page-inner, .quarto-container {
    margin: 0.6rem;
    padding: 1.4rem 1rem;
    border-radius: 12px;
  }

  h1.title {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.35rem;
  }
}
