:root {
  --bg: #fbfaf6;
  --panel: #ffffff;
  --border: #e5e1d8;
  --text: #211f1a;
  --muted: #71685c;
  --accent: #3c6e52;
  --accent-soft: #e9f1ec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.25; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--border); background: var(--panel); }
.header-inner { max-width: 760px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.brand { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: var(--text); }
nav { display: flex; gap: 20px; font-size: 14px; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--accent); }

main { padding: 36px 0 60px; }

.lede { color: var(--muted); font-size: 16px; max-width: 560px; }

.course-list { margin-top: 28px; border-top: 1px solid var(--border); }
.course-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.course-row h3 { margin: 0 0 4px; font-size: 17px; }
.course-row p { margin: 0; color: var(--muted); font-size: 14px; }
.course-row .meta { white-space: nowrap; color: var(--muted); font-size: 13px; text-align: right; }

.box { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 20px 22px; margin: 24px 0; }
.box h3 { margin-top: 0; font-size: 16px; }

table.syllabus { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
table.syllabus th, table.syllabus td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.syllabus th { color: var(--muted); font-weight: 600; width: 90px; }

.pill { display: inline-block; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 4px; }

form.contact { display: grid; gap: 12px; max-width: 420px; }
form.contact label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
form.contact input, form.contact textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 5px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text); }
form.contact button { justify-self: start; padding: 9px 20px; border-radius: 5px; border: none; background: var(--accent); color: #fff; font-size: 14px; cursor: pointer; }
form.contact button:hover { opacity: 0.92; }

.btn-outline { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); font-size: 14px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .course-row { flex-direction: column; gap: 4px; }
  .course-row .meta { text-align: left; }
}
