:root {
  --bg: #fdfdfb;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5c5c66;
  --accent: #8c6d3f;      /* Wake Forest old gold, darkened for contrast */
  --accent-strong: #6b5230;
  --rule: #e2e0d8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 12px rgba(0, 0, 0, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1f1f24;
    --text: #ececf0;
    --muted: #a4a4b0;
    --accent: #d8b465;
    --accent-strong: #ecd39a;
    --rule: #32323a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0 2rem;
  margin-bottom: 2.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tagline {
  margin: .6rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 36rem;
}

/* ---- Courses ---- */

.course + .course { margin-top: 2.5rem; }

.course h2 {
  margin: 0 0 .9rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  text-transform: uppercase;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.app-list li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  transition: border-color .15s ease, transform .15s ease;
}

.app-list li:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.app-list a {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.app-list a:hover,
.app-list a:focus-visible { text-decoration: underline; }

.app-desc {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---- Footer ---- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer p { margin: .35rem 0; }
.site-footer a { color: var(--accent-strong); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
