@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Neutral / Background Colors */
  --bg-dark: #050505;
  --bg-dark-secondary: #161b22; /* Input field background */
  --bg-gradient-end: #22262c; /* Bottom of hero gradient */
  --bg-light-card: #f7f7f7; /* Article card background */
  --bg-slate-highlight: #cbd5e1; /* Corresponds to bg-slate-300 */
  --paper: #f5f0e8;

  /* Brand Colors */
  --accent: #ee6c4d; /* Orange-red used for labels/buttons */
  --accent-hover: #00c244; /* Brightened version for hover */
  --editorial-bold: #963f05; /* Brownish-orange for article strong tags */
  --hover-green: #00c244; /* Your custom green hover color */

  /* Text Colors */
  --text-white: #ffffff;
  --text-main-slate: #1e293b; /* slate-800 for article body */
  --text-muted: #94a3b8; /* slate-400 for secondary text */
  --text-dim: #64748b; /* slate-500 for nav/footer */
  --text-heading: #0f172a; /* slate-900 for h2 titles */

  /* Border Colors */
  --border-white-faint: rgba(255, 255, 255, 0.05);
  --border-slate-light: #e2e8f0; /* slate-200 */
  --rule: #d0cac0; /* For stats row dividers */

  /* Fonts */
  --serif: "Playfair Display", Georgia, serif;
  --sans:
    "Source Sans 3", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Body */
.main-bg {
  background-color: bg-neutral-900;
}
.bg-light {
  background-color: var(--bg-light-card);
}
.bg-dark {
  background-color: var(--bg-dark);
}
.bg-corral {
  background-color: var(--accent);
}
.bg-secondary-dark {
  background-color: var(--bg-dark-secondary);
}

.text-accent {
  color: var(--accent);
}
.briefing-gradient {
  background: linear-gradient(
    to bottom,
    var(--bg-dark),
    var(--bg-gradient-end)
  );
}
.title {
  font-family: var(--sans);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  color: var(--text-main-slate);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.title em {
  font-style: italic;
  color: var(--accent);
}

/* General link hover state */
a:hover {
  color: var(--hover-green);
  transition: color 0.3s ease;
}

/* Core Article Layout */
.content-body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.625;
  font-size: 1.1rem;
}

.content-body h2 {
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-heading);
}
@media (max-width: 640px) {
  .content-body p {
    font-size: 1.25rem;
  }
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-heading);
}

.editorial-bold {
  color: var(--editorial-bold);
  font-weight: 700;
}
a.editorial-bold:hover {
  color: var(--hover-green) !important;
  transition: color 0.3s ease;
}

/* Bolding inside the "Calendar" */
.calendar strong {
  color: var(--editorial-bold);
}
.next-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
button {
  background-color: var(--accent);
  color: var(--text-white);
}
button:hover {
  background-color: var(--hover-green);
  transition: background-color 0.25s;
}
/* ============================
   STATS SECTION WRAPPER
   ============================ */
.stats-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* ============================
   STATS GRID
   ============================ */
/* Default: mobile styles */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-left: 1.25rem; /* 20px */
  margin-right: 1.25rem; /* 20px */
}

/* Remove margins at 500px and above */
@media (min-width: 500px) {
  .stats-row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Switch to 3 columns at 640px */
@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================
   STAT CELL
   ============================ */
.stat-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* ============================
   STAT NUMBER
   ============================ */
.stat-num {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--editorial-bold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================
   STAT LABEL
   ============================ */
.stat-label {
  font-size: 11px;
  color: var(--text-main-slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  word-wrap: break-word;
}
