/* Brutalist Terminal Aesthetic - Earth Tones */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400,700&display=swap');

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

body {
  background: #1a1410;
  margin: 0;
  padding: 0;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  color: #d4a574;
  line-height: 1.6;
}

.course-container {
  max-width: 80ch;
  margin: 0 auto;
  padding: 3rem 1rem 6rem;
  min-height: 100vh;
}

/* Navigation */
.course-nav {
  border: 2px solid #8b6f47;
  padding: 1.5rem;
  margin-bottom: 3rem;
  background: rgba(139, 111, 71, 0.05);
}

.course-nav-title {
  font-size: 0.9rem;
  color: #c9976b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.course-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-nav-links a {
  color: #e8c5a0;
  text-decoration: none;
  border-bottom: 1px solid #8b6f47;
  font-size: 0.9rem;
}

.course-nav-links a:hover {
  color: #f5d9b8;
  border-bottom-color: #c9976b;
}

.course-nav-links a.active {
  color: #f5d9b8;
  border-bottom-color: #c9976b;
}

/* Headers */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e8c5a0;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #8b6f47;
  padding-bottom: 0.5rem;
}

h1::before {
  content: "> ";
  color: #c9976b;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8c5a0;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2::before {
  content: ">> ";
  color: #c9976b;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8c5a0;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3::before {
  content: ">>> ";
  color: #c9976b;
  font-size: 0.9rem;
}

/* Content */
p {
  margin-bottom: 1.5rem;
  color: #d4a574;
  font-size: 1rem;
}

.intro {
  font-size: 1.1rem;
  color: #e8c5a0;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #8b6f47;
  background: rgba(139, 111, 71, 0.05);
}

/* Lists */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
  color: #d4a574;
}

li {
  margin-bottom: 0.75rem;
}

li::marker {
  color: #c9976b;
}

/* Exercise boxes */
.exercise {
  border: 2px solid #c9976b;
  padding: 1.5rem;
  margin: 2rem 0;
  background: rgba(201, 151, 107, 0.08);
}

.exercise-label {
  font-size: 0.8rem;
  color: #c9976b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.exercise h3 {
  margin-top: 0;
  color: #e8c5a0;
}

.exercise h3::before {
  content: "⚡ ";
}

/* Key points */
.key-point {
  border-left: 3px solid #8b6f47;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #e8c5a0;
}

/* Templates/downloads */
.template {
  border: 2px solid #8b6f47;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: rgba(139, 111, 71, 0.05);
}

.template h3 {
  margin-top: 0;
}

.template-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #8b6f47;
  color: #e8c5a0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.template-download:hover {
  background: rgba(139, 111, 71, 0.15);
  border-color: #c9976b;
}

/* Navigation buttons */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #8b6f47;
}

.lesson-nav a {
  padding: 0.75rem 1.5rem;
  border: 2px solid #8b6f47;
  color: #e8c5a0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lesson-nav a:hover {
  background: rgba(139, 111, 71, 0.15);
  border-color: #c9976b;
}

.lesson-nav .next::after {
  content: " →";
}

.lesson-nav .prev::before {
  content: "← ";
}

/* Links */
a {
  color: #e8c5a0;
  transition: color 0.15s ease;
}

a:hover {
  color: #f5d9b8;
}

/* Selection */
::selection {
  background: #8b6f47;
  color: #1a1410;
}

/* Responsive */
@media (max-width: 768px) {
  .course-container {
    padding: 2rem 1rem 4rem;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .course-nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .lesson-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
