/* teach.markgingrass.com — standalone landing page styles */

:root {
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e5e5e5;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --border-color: #e5e5e5;
  --accent-color: #0ea5e9;
  --accent-hover: #0284c7;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #171717;
  --bg-secondary: #262626;
  --bg-tertiary: #404040;
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d4;
  --text-tertiary: #a3a3a3;
  --border-color: #404040;
  --accent-color: #38bdf8;
  --accent-hover: #7dd3fc;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-color);
}

.header-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.header-link:hover {
  color: var(--accent-color);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #38bdf8 0%, #fdba74 100%);
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Section headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section-heading-secondary {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 3rem;
}

.course-grid-secondary {
  opacity: 0.85;
}

.course-grid-secondary .course-card {
  padding: 1.25rem 1.5rem;
}

.course-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.course-card-featured {
  border: 2px solid var(--accent-color);
  background: var(--bg-secondary);
}

.course-platform {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.course-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.course-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-color);
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1rem;
  }

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

  .course-grid {
    grid-template-columns: 1fr;
  }
}
