:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b0b0b0;
  --accent: #d5ff24;
  --panel: #7a7a78;
  --line: #c7c7c7;
  --max: 1100px;
  --font: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
}
.logo img { width: 139px; height: auto; }
.site-nav { display: flex; gap: 48px; }
.site-nav a { text-decoration: none; font-size: 17px; font-weight: 400; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 6px 22px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(0.9); }

/* Home hero */
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 80vh; object-fit: cover; }
.hero-cta { text-align: center; padding: 48px 16px 80px; }
.hero-cta h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Subscribe */
.subscribe { text-align: center; padding: 40px 16px 80px; }
.subscribe h2 { font-size: clamp(36px, 5vw, 52px); font-weight: 400; margin: 0 0 12px; }
.subscribe p { margin: 0 0 20px; font-size: 17px; font-weight: 400; }
.subscribe form { max-width: 646px; margin: 0 auto; text-align: left; }
.subscribe label { font-size: 12px; display: block; margin-bottom: 4px; }
.subscribe .row { display: flex; }
.subscribe input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--muted);
  padding: 8px 12px;
  font: inherit;
}
.subscribe button {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  padding: 8px 48px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.form-status { min-height: 1.5em; margin-top: 12px; font-size: 15px; }

/* Courses */
.page-title { text-align: center; font-size: 20px; font-weight: 400; margin: 40px 0 36px; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 80px;
}
.course {
  border: 1px solid var(--muted);
  padding: 5px;
  display: flex;
  flex-direction: column;
}
.course img { width: 100%; height: auto; aspect-ratio: 16 / 9.6; object-fit: cover; }
.course-body { padding: 18px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.course h2 { font-size: 18px; font-weight: 400; margin: 0 0 8px; }
.course p { font-size: 13px; margin: 0 0 24px; }
.course dl { display: flex; gap: 28px; margin: auto 0 20px; font-size: 13px; }
.course dt { color: var(--muted); font-size: 12px; }
.course dd { margin: 0; font-size: 15px; }
.course .btn { align-self: flex-start; padding: 6px 40px; }

/* Contact */
.contact-intro { padding: 32px 0 44px; max-width: 840px; }
.contact-intro h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 400; margin: 0 0 24px; }
.contact-panel { background: var(--panel); max-width: 1332px; margin: 0 auto 80px; padding: 48px 16px 60px; }
.contact-panel form { max-width: 790px; margin: 0 auto; }
.contact-panel h2 { font-size: 34px; font-weight: 400; margin: 0 0 36px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
.fields label { display: flex; flex-direction: column; font-size: 13px; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea {
  margin-top: 2px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 8px;
  font: inherit;
}
.fields textarea { min-height: 140px; resize: vertical; }
.contact-panel .btn { margin-top: 20px; padding: 8px 48px; }

/* Plain text pages */
.prose { padding: 40px 16px 80px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; margin: 0 0 16px; }

/* Footer */
.site-footer { padding: 40px 16px 32px; text-align: center; font-size: 14px; font-weight: 400; }
.footer-nav { display: flex; justify-content: center; margin-bottom: 36px; }
.footer-nav a { text-decoration: none; padding: 14px 0; width: 160px; }
.footer-nav a + a { border-left: 1px solid var(--line); }
.footer-nav a:hover { color: var(--muted); }
.site-footer small { font-size: 13px; }

@media (max-width: 640px) {
  .site-header .wrap { height: 88px; }
  .logo img { width: 104px; }
  .site-nav { gap: 24px; }
  .subscribe .row { flex-direction: column; gap: 8px; }
  .fields { grid-template-columns: 1fr; }
  .footer-nav a { width: auto; padding: 10px 18px; }
}
