
:root {
  --ink: #152033;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --soft: #f5f7fa;
  --panel: #ffffff;
  --accent: #2156d9;
  --accent-dark: #173f9f;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  text-decoration: none; font-size: 1.08rem; font-weight: 800; letter-spacing: .11em;
}
.nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: #3e4a5c; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(33,86,217,.10), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 800; color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; max-width: 920px; margin: 14px 0 22px; }
.lede { max-width: 760px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 9px; text-decoration: none;
  border: 1px solid var(--line); font-weight: 700;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; }
.section { padding: 68px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.section-intro { color: var(--muted); max-width: 720px; margin-top: 10px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4; display: block; min-height: 220px; padding: 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #b9c7dc; box-shadow: 0 12px 30px rgba(22,32,51,.07); }
.card .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; color: var(--accent); }
.card h3 { margin: 12px 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }
.card .arrow { display: block; margin-top: 24px; color: var(--accent); font-weight: 800; }
.card.restricted { border-style: dashed; }
.course-hero { padding: 58px 0 42px; border-bottom: 1px solid var(--line); background: var(--soft); }
.course-hero h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 14px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.resource-grid .card { grid-column: span 6; min-height: 200px; }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border-radius: 999px; background: #eef3ff; color: #244ea9; font-size: .78rem; font-weight: 800;
}
.note {
  padding: 18px 20px; border-left: 4px solid var(--accent); background: #f5f8ff; border-radius: 8px;
  color: #39475a;
}
.list { padding-left: 20px; }
.list li { margin: 8px 0; }
.placeholder { max-width: 760px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.small-links { display: flex; gap: 18px; flex-wrap: wrap; }
.small-links a { color: var(--muted); text-decoration: none; }
.small-links a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; gap: 10px; }
  .nav { gap: 14px; }
  .hero { padding: 64px 0 56px; }
  .card, .resource-grid .card { grid-column: span 12; min-height: auto; }
  .section { padding: 50px 0; }
}

.course-grid .card { grid-column: span 6; }
@media (max-width: 820px) { .course-grid .card { grid-column: span 12; } }

/* Academic final refinements */
.nav { row-gap: 8px; }
.card.restricted::after { content: "Restricted access"; display: inline-block; margin-top: 18px; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 54px; }
.prose-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.prose-grid h2 { font-size: 1.5rem; margin: 0 0 10px; }
.prose-grid p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; gap: 28px; } }
