/* The Distance Learner — chalkboard visual.
   Slate-green board, chalk-cream ink, serif type, hand-ruled chalk lines, all corners kept sharp. */
:root {
  --bg: #20332a;
  --board: #24392e;
  --board-deep: #1a2b22;
  --ink: #f0eee4;
  --chalk: #e8e4d0;
  --chalk-dim: #b9bfa6;
  --rule: rgba(232, 228, 208, 0.28);
  --rule-soft: rgba(232, 228, 208, 0.14);
  --code-1: #e8e4d0;
  --code-2: #cdd6b8;
  --code-3: #d9c69a;
  --code-4: #bfd0c6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Georgia, "Times New Roman", Cambria, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  background-image:
    radial-gradient(ellipse at 22% 8%, rgba(240, 238, 228, 0.05), transparent 46%),
    radial-gradient(ellipse at 82% 92%, rgba(240, 238, 228, 0.035), transparent 52%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px);
  background-attachment: fixed;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
a { color: var(--chalk); text-decoration: none; border-bottom: 1px dashed var(--rule); }
a:hover { color: #fffdf2; border-bottom-color: var(--chalk); }

/* header — a chalk tray over the board */
.board-header { border-bottom: 2px solid var(--rule); background: var(--board-deep); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); border-bottom: none; }
.brand-mark {
  font-size: 26px; color: var(--chalk); width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--chalk); font-family: Georgia, serif; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; letter-spacing: .4px; font-size: 18px; }
.brand-tag { font-size: 12px; color: var(--chalk-dim); letter-spacing: 1.1px; text-transform: uppercase; }
.chalk-nav { display: flex; gap: 24px; }
.chalk-nav a { color: var(--ink); font-size: 15px; border-bottom: none; }
.chalk-nav a:hover { color: var(--chalk); border-bottom: 1px dashed var(--chalk); }

/* hero — board heading with a ruled underline */
.board-hero { padding: 46px 0 30px; border-bottom: 2px solid var(--rule-soft); }
.hero-tag { color: var(--chalk); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.board-hero h1 { font-size: 38px; line-height: 1.12; font-weight: 700; margin-bottom: 16px; max-width: 18em; }
.board-hero .hero-lede { max-width: 62ch; color: var(--ink); font-size: 18px; }
.board-hero .hero-lede::first-letter { color: var(--chalk); }

/* section furniture */
.term { padding: 34px 0; }
.term-label {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--chalk-dim);
  margin-bottom: 16px; font-weight: 700; border-bottom: 1px dashed var(--rule); padding-bottom: 7px;
}

/* discipline (category) index */
.discipline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.discipline-card {
  background: var(--board); border: 2px solid var(--rule); padding: 16px 15px;
  display: flex; flex-direction: column; gap: 8px; color: var(--ink);
}
.discipline-card:hover { border-color: var(--chalk); border-bottom-color: var(--chalk); }
.discipline-count { font-size: 12px; color: var(--chalk-dim); letter-spacing: .6px; text-transform: uppercase; }
.discipline-name { font-weight: 700; font-size: 17px; }

/* timetable rows — the home page reads as a course schedule */
.term-block { margin-bottom: 44px; }
.term-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.term-head h2 { font-size: 23px; font-weight: 700; }
.term-head .term-all { font-size: 14px; }
.timetable { border-top: 1px dashed var(--rule-soft); }
.course-row {
  display: grid; grid-template-columns: 132px 1fr 260px; gap: 16px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px dashed var(--rule-soft); color: var(--ink);
}
.course-row:hover { background: rgba(240, 238, 228, 0.04); }
.course-code {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--code-1);
  border: 1px solid currentColor; padding: 1px 7px; justify-self: start; align-self: center;
}
.code-cd { color: var(--code-1); }
.code-olt { color: var(--code-2); }
.code-ss { color: var(--code-3); }
.code-tt { color: var(--code-4); }
.course-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.course-title:hover { text-decoration: none; }
.course-meta { font-size: 13px; color: var(--chalk-dim); text-align: right; }
.course-meta b { color: var(--ink); font-weight: 700; }

/* page head */
.page-head { padding: 38px 0 14px; }
.crumb { font-size: 14px; color: var(--chalk-dim); margin-bottom: 10px; }
.crumb a { color: var(--chalk-dim); border-bottom-color: var(--rule-soft); }
.page-head h1 { font-size: 32px; line-height: 1.18; font-weight: 700; }
.page-head .lede { color: var(--chalk-dim); margin-top: 10px; max-width: 70ch; }

/* syllabus card + lecture notes layout */
.desk { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding-top: 22px; padding-bottom: 48px; }
.syllabus-card { align-self: start; background: var(--board); border: 2px solid var(--rule); }
.syllabus-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px dashed var(--rule); }
.syllabus-head .syllabus-tag { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--chalk-dim); }
.syllabus-list { margin: 0; }
.spec-line { display: flex; border-bottom: 1px dashed var(--rule-soft); font-size: 15px; }
.spec-line:last-child { border-bottom: none; }
.spec-line dt { flex: 0 0 42%; padding: 10px 15px; color: var(--chalk-dim); border-right: 1px dashed var(--rule-soft); text-transform: uppercase; font-size: 12px; letter-spacing: .6px; align-self: stretch; }
.spec-line dd { flex: 1; padding: 10px 15px; }

/* lecture notes (article prose) */
.lecture-notes { border-left: 2px solid var(--rule-soft); padding-left: 30px; }
.lecture { margin-bottom: 28px; }
.lecture:last-child { margin-bottom: 0; }
.lecture h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.lecture-num { color: var(--chalk-dim); font-size: 14px; margin-right: 10px; }
.lecture p { margin-bottom: 14px; color: var(--ink); }
.lecture p:last-child { margin-bottom: 0; }
.lecture.related h2 { border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.related-list { list-style: none; }
.related-list li { padding: 8px 0; border-bottom: 1px dashed var(--rule-soft); }

/* legal prose */
.sheet-prose { padding: 8px 0 48px; max-width: 78ch; }
.sheet-prose h2 { font-size: 19px; margin: 24px 0 10px; font-weight: 700; }
.sheet-prose p { margin-bottom: 13px; }
.sheet-prose a { border-bottom: 1px dashed var(--rule); }

/* footer — chalk tray */
.board-footer { border-top: 2px solid var(--rule); background: var(--board-deep); margin-top: 24px; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-brand { flex: 1 1 320px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p { color: var(--chalk-dim); font-size: 14px; margin-top: 7px; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--ink); font-size: 15px; border-bottom: none; }
.footer-nav a:hover { border-bottom: 1px dashed var(--chalk); }
.copyright { flex: 1 1 100%; font-size: 12.5px; color: var(--chalk-dim); margin-top: 12px; }

@media (max-width: 880px) {
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
  .course-row { grid-template-columns: 110px 1fr; }
  .course-meta { grid-column: 2; text-align: left; }
  .desk { grid-template-columns: 1fr; }
  .lecture-notes { border-left: none; padding-left: 0; }
  .board-hero h1 { font-size: 31px; }
}
@media (max-width: 560px) {
  .discipline-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; gap: 6px; }
  .course-meta { grid-column: 1; }
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .chalk-nav { gap: 16px; }
}
