:root {
  --bg: #f3f6fc;
  --bg-alt: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;

  /* Modern blue palette */
  --accent: #2563eb;          /* primary accent */
  --accent-soft: #dbe5ff;     /* soft accent background */
  --accent-strong: #1d4ed8;   /* darker accent */

  --border: #dde4f0;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --font-sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    system-ui, "SF Pro Text", "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* Reset / base */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, #e0e7ff 0, #f3f6fc 42%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

p {
  font-size: 0.96rem;
}

/* Layout shell */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-main {
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-main a {
  color: inherit;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
}

.nav-link {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: #111827;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  text-decoration: none;
  transform: translateY(-0.5px);
}

.nav-link.active {
  background: var(--accent-strong);
/*  color: #f9fafb; */
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.nav-link-pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    right: 16px;
    top: 54px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 8px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 190px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero area */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.4fr);
  gap: 26px;
  margin-top: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-card {
  background: var(--bg-alt);
  border-radius: 18px;
  /* padding: 26px 26px 24px; */
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;  /* was ~0.76 */
  font-weight: 600;
  letter-spacing: 0.16em; /* was ~0.12 */
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  /* font-size: 1.85rem; */
  line-height: 1.2;
  margin: 0 0 10px;
}

h1, .hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem; /* was ~0.98 */
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-meta span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: #e2e8ff;
}

/* Hero quick links */

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #f9fafb;
  border-color: var(--accent-strong);
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.02);
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.16);
}

/* Summary / headshot side */

.definition-list {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.5fr);
  gap: 6px 14px;
  font-size: 0.9rem;
}

.definition-term {
  font-weight: 600;
}

.definition-def {
  color: var(--muted);
}

.hero-side-top .headshot {
  width: clamp(90px, 12vw, 130px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  /* border: 2px solid var(--accent-soft); */
  border: 3px solid white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background: #d1d5db;
  flex-shrink: 0;
}

.hero-side-top {
  display: flex;
  align-items: flex-start; /* was center */
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 500px) {
  .hero-side-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-side-text {
    text-align: center;
  }
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-text {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Sections */

.section {
  margin-top: 42px;   /* was 30px */
}

.section > * + * {
  margin-top: 10px;
}

.section-content {
  max-width: 68ch;
}

.section-title {
  font-size: 1.25rem; /* was 1.1 */
  margin: 0 0 4px;
  margin-bottom: 8px;
  font-weight: 650;
}

/* h2, .section-title {
  font-size: 1.25rem;
  font-weight: 650;
}
*/

.section-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-soft);
  margin-top: 6px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #dbe5ff, transparent);
  margin: 28px 0;
}

.section-kicker {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 12px;
  margin-bottom: 18px;
  max-width: 60ch;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.course-tile {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 18px 14px;
  border: 1px solid var(--border);
/*  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04); */
}

.card,
.course-tile {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.course-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.course-tile-title {
  display: block;
  text-align: center;
  font-weight: 600;
  margin: 0 0 6px;
}

.course-tile-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 780px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Three-column band */

.band {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
  }
}

.band-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  padding: 16px 18px 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.band-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.band-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.band-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.band-list li {
  margin-bottom: 4px;
}

/* Lists */

ul.plain {
  padding-left: 1.1rem;
  margin: 0.3rem 0;
}

ul.plain li {
  margin-bottom: 0.18rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner > div:last-child {
  text-align: right;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-inner > div:last-child {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* === ADDITIONS (safe) === */

/* Replace inline styles */
.text-muted {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Improve readability of inline links */
p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Improve list readability */
ul.plain li {
  margin-bottom: 10px;
  line-height: 1.45;
}

/* Improve section rhythm */
.section > * + * {
  margin-top: 10px;
}

/* Refine section title accent */
.section-title::after {
  width: 36px;
  background: var(--accent);
  opacity: 0.6;
}

/* Add subtle hover to band cards */
.band-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.band-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Slightly stronger footer separation */
.site-footer {
  margin-top: 40px;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--accent);
  text-decoration: none;
}