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

@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;       /* turf / chalkboard */
  --deep-navy: #071826;         /* deep marine */
  --sea-teal: #1c6f73;          /* marine teal */
  --seafoam: #b6e1d8;           /* soft highlight */
  --foam-white: #f7f9f8;        /* background */
  --sun-gold: #f5a623;          /* accent */
  --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;
}

/* Wrap main article content in a "card" without constraining the TOC */
.page-columns .content,
main.content {
  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;
}

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 & 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);
}

/* ===============================
   TOC (right-hand sidebar styling)
   =============================== */

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

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

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

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

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

nav.toc a:hover, #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
   =============================== */

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

/* ===============================
   TABLES
   =============================== */

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
   =============================== */

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;
}

/* ===============================
   COACH'S CHALLENGE CALLOUTS
   =============================== */

.coach-challenge {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(245, 166, 35, 0.55);
  background: linear-gradient(135deg, #fef8eb, #fbead1);
}

.coach-challenge p {
  margin: 0.3rem 0;
}

.coach-challenge strong {
  font-family: "Permanent Marker", "Oswald", system-ui, sans-serif;
  letter-spacing: 0.04em;
}

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

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

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

  h2 {
    font-size: 1.35rem;
  }
}
