:root {
  color-scheme: light;
  --warm: #fafaf7;
  --white: #fff;
  --paper: #f1f5f9;
  --navy: #14243a;
  --ink: #334155;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --gold: #b58a35;
  --line: #e2e8f0;
  --radius: .625rem;
  font-family: Inter, system-ui, "Segoe UI", "Microsoft JhengHei", sans-serif;
  font-size: 100%;
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.17; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.45rem); letter-spacing: -.028em; }
h3 { font-size: 1.25rem; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
.wrap { width: min(1260px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: .8rem; left: .8rem; z-index: 5; padding: .5rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.35rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; white-space: nowrap; line-height: 1.2; font-weight: 750; font-size: 1.25rem; }
.brand img { object-fit: contain; }
.brand span { display: grid; gap: .25rem; }
.brand small { font-size: .76rem; font-weight: 550; color: var(--ink); }
.header-inner nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.header-inner nav a, .language { min-height: 44px; display: inline-flex; align-items: center; color: var(--navy); font-weight: 650; text-decoration: none; font-size: .9rem; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--blue); text-decoration: underline; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.header-actions .button { font-size: .9rem; padding-inline: .85rem; }
.language { border: 1px solid var(--line); border-radius: var(--radius); padding-inline: .65rem; }
.language:hover { border-color: var(--blue); }
.site-footer { background: var(--navy); color: #e2e8f0; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.5rem; padding-block: 2.8rem; }
.site-footer .brand, .site-footer h2 { color: var(--white); }
.site-footer h2 { font-size: 1rem; }
.site-footer a { color: inherit; }
.site-footer .brand { margin-bottom: .6rem; }
.site-footer :focus-visible { outline-color: #bfdbfe; }
.site-footer address { font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.hero {
  background: radial-gradient(ellipse at 80% 42%, #e5ecf7 0%, transparent 55%), #f8f9fc;
  border-bottom: 1px solid var(--line);
}
.hero-grid { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.hero-grid, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 5vw, 5rem); }
.hero p { max-width: 56ch; font-size: clamp(1.06rem, 1.5vw, 1.22rem); }
.hero .eyebrow { display: inline-block; border-bottom: 2px solid var(--gold); padding-bottom: .35rem; color: var(--navy); font-size: .92rem; font-weight: 700; }
.page-hero, .featured-hero {
  --hero-surface: #0e192c;
  background: var(--hero-surface);
  color: #e2e8f0;
}
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(15.5rem, 21vw, 18.75rem);
}
.page-hero-visual {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -1;
}
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 38%; }
.page-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-surface), #0e192ce6 13%, #0e192c00 54%);
}
.page-hero-inner { padding-block: 1.75rem; }
.page-hero-copy { max-width: min(34rem, 53%); }
.page-hero :is(h1, h2) { color: var(--white); font-size: clamp(2rem, 3.55vw, 3.5rem); }
.page-hero p { margin-bottom: 0; }
.page-hero .button { margin-top: .9rem; background: #b9e8ff; color: #102640; }
.page-hero .button:hover { background: #dbf3ff; }
.page-hero :focus-visible, .featured-hero :focus-visible { outline-color: #b9e8ff; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hero-art {
  --tile-color: #254b7b;
  --tile-highlight: #a0c5ec;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 37rem;
  justify-self: center;
  container-type: inline-size;
  background: radial-gradient(ellipse at center, #fff 0%, #eff6ffb3 35%, transparent 69%);
}
.hero-art--creative { --tile-color: #504776; --tile-highlight: #c1adea; }
.hero-art--technical { --tile-color: #20475b; --tile-highlight: #93cddb; }
.hero-art--people { --tile-color: #635139; --tile-highlight: #e5c28c; }
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 1.45cqi;
  width: 78%;
  aspect-ratio: 1.6;
  transform: rotate(15deg) skewX(-17deg);
}
.hero-mosaic > * {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ffffff52;
  border-radius: 2px;
  background-color: var(--tile-color);
  box-shadow: 0 5px 0 #14243a, 0 11px 16px #14243a48;
}
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic-primary { grid-area: 2 / 3 / 6 / 9; }
.hero-mosaic-top { grid-area: 1 / 3 / 2 / 7; object-position: 50% 42%; }
.hero-mosaic-side { grid-area: 3 / 9 / 6 / 11; }
.hero-mosaic-bottom { grid-area: 6 / 5 / 8 / 10; object-position: 50% 44%; }
.hero-mosaic-lines {
  grid-area: 3 / 1 / 6 / 3;
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, var(--tile-highlight) 11px 12px, transparent 13px 18px);
}
.hero-mosaic-dots {
  grid-area: 6 / 3 / 8 / 5;
  background-image: radial-gradient(circle, var(--tile-highlight) 1px, transparent 1.5px);
  background-size: 9px 9px;
}
.hero-mosaic-accent {
  grid-area: 1 / 7 / 2 / 9;
  background-image: linear-gradient(120deg, var(--tile-highlight), var(--tile-color));
}
.featured-slides { display: grid; }
.featured-slide { grid-area: 1 / 1; }
.featured-slide[hidden] { display: grid !important; visibility: hidden; }
.featured-slide h2 { letter-spacing: -.045em; }
.featured-slide .eyebrow { color: #b9e8ff; margin-bottom: .6rem; }
.featured-slide .actions { margin-top: .9rem; }
.featured-slide .actions .button { margin-top: 0; }
.featured-slide .button.secondary {
  background: transparent;
  border-color: #8399b4;
  color: var(--white);
}
.featured-slide .button.secondary:hover { background: #243a54; border-color: #b9e8ff; }
.featured-controls { display: flex; align-items: start; gap: clamp(.65rem, 2vw, 1.5rem); padding-block: .7rem; }
.featured-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; gap: clamp(.6rem, 2vw, 1.25rem); }
.featured-controls button {
  min-height: 44px;
  border: 0;
  border-top: 2px solid #526781;
  padding: .6rem .25rem;
  color: #e2e8f0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.4;
  text-align: start;
}
.featured-controls button:hover, .featured-controls button[aria-pressed="true"] {
  border-color: #b9e8ff;
  color: #b9e8ff;
}
.featured-topics strong, .featured-topics span { display: block; }
.featured-topics span { margin-top: .25rem; color: #c0cedf; font-size: .9rem; }
.featured-controls .featured-playback { order: 1; padding-inline: .45rem; font-size: .9rem; font-weight: 700; min-width: 3.5rem; text-align: center; }
.featured-intro { margin: -.75rem 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: .4rem; padding: .55rem 1rem; background: var(--blue); color: var(--white); font-weight: 700; text-align: center; text-decoration: none; }
.button:hover { background: var(--blue-hover); color: var(--white); }
.button.secondary { background: var(--white); border-color: var(--line); color: var(--blue); }
.button.secondary:hover { border-color: var(--blue); background: var(--paper); }
.text-link { font-weight: 700; }
.section, .band { padding-block: clamp(2.5rem, 5.5vw, 5rem); }
.band { background: var(--paper); }
.section-heading { margin-bottom: 1.55rem; }
.section-heading p { max-width: 58ch; }
.section-heading.with-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.2rem; }
.section-heading.with-link h2 { margin: 0; }
.tiles, .profiles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile, .course-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tile, .card-copy { padding: clamp(1.05rem, 2.2vw, 1.5rem); }
.tile p:last-child { margin-bottom: 0; }
.course-card { display: flex; flex-direction: column; }
.course-card-image { display: block; }
.course-card-image img { display: block; }
.course-card img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; }
.course-card h3 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: start; }
.card-copy .button { margin-top: auto; }
.meta { font-size: .9rem; font-weight: 650; }
.course-facts { border-top: 1px solid var(--line); margin: .2rem 0 1rem; padding-top: .7rem; width: 100%; font-size: .92rem; }
.course-facts div { display: grid; grid-template-columns: minmax(5rem, .75fr) minmax(0, 1fr); gap: .5rem; }
.course-facts dt { font-weight: 650; color: var(--navy); }
.course-facts dd { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.3rem; }
.chip { padding: .42rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; font-weight: 650; }
.chip:hover { border-color: var(--blue); }
.catalog-group + .catalog-group { margin-top: 3rem; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
.catalog-content { min-width: 0; }
.catalog-content .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-index { position: sticky; top: 1rem; min-width: 0; }
.course-index-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px #14243a0d; overflow: hidden; }
.course-index-panel summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.15rem; color: var(--navy); font-weight: 750; cursor: pointer; }
.course-index-panel summary::after { content: "+"; color: var(--blue); font-size: 1.15rem; line-height: 1; }
.course-index-panel[open] summary::after { content: "−"; }
.course-index-list { max-height: calc(100vh - 7rem); overflow-y: auto; border-top: 1px solid var(--line); }
.course-index-group > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; list-style: none; margin: 0; padding: .55rem 1.15rem; background: var(--paper); color: var(--navy); font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: .025em; cursor: pointer; }
.course-index-group > summary::-webkit-details-marker { display: none; }
.course-index-group > summary::after { content: "+"; color: var(--blue); font-size: 1rem; line-height: 1; }
.course-index-group[open] > summary::after { content: "\2212"; }
.course-index-group + .course-index-group { border-top: 1px solid var(--line); }
.course-index-group ul { list-style: none; margin: 0; padding: 0; }
.course-index-list li + li { border-top: 1px solid var(--line); }
.course-index-list a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .6rem; align-items: start; padding: .7rem 1.15rem; font-size: .9rem; line-height: 1.4; color: var(--navy); text-decoration: none; }
.course-index-list a:hover, .course-index-list a:focus-visible { color: var(--blue); background: var(--paper); }
.index-code { color: var(--blue); font-size: .8rem; font-weight: 750; }
.profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outcomes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.outcomes li { padding-top: 1rem; border-top: 2px solid var(--line); }
.outcomes p { margin: 0; }
.profile { display: grid; grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.profile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .45rem; }
.profile :is(h2, h3) { font-size: 1.35rem; }
.session-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.session-banner p { margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: clamp(1.35rem, 4vw, 3.5rem); }
.course-detail h1 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
.course-poster-image {
  width: min(100%, 25rem);
  height: auto;
  justify-self: center;
  border-radius: var(--radius);
}
.course-reading { display: grid; gap: 1rem; }
.course-reading section + section { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.course-reading section > :last-child { margin-bottom: 0; }
.course-reading h2, .session-panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.session-panel { position: sticky; top: 1.25rem; }
.session-panel .schedule div { border-top: 1px solid var(--line); padding-block: .55rem; }
.session-panel .schedule dd { margin: 0; }
.session-panel .button { width: 100%; }
.course-poster-link { margin: .75rem 0 0; }
.syllabus { padding-left: 1.4rem; }
.syllabus li { margin-bottom: .55rem; padding-left: .25rem; }
.event { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 2rem; margin-bottom: 1.2rem; }
.schedule dt { color: var(--navy); font-weight: 700; }
.schedule dd { margin: 0 0 .7rem; }
.poster img { width: min(100%, 420px); margin-inline: auto; border-radius: .45rem; }

@media (max-width: 1170px) {
  .header-inner nav { order: 1; margin: 0; width: 100%; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { grid-template-columns: 1fr; }
  .profile img { width: 7.5rem; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .catalog-layout { display: flex; flex-direction: column; gap: 1.5rem; }
  .course-index { order: -1; align-self: stretch; top: 0; z-index: 3; }
  .course-index-list { max-height: min(55vh, 24rem); }
  .catalog-content .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .page-hero { min-height: 0; }
  .page-hero-inner { padding-block: 1.5rem .5rem; }
  .page-hero-copy { max-width: 34rem; }
  .page-hero-visual { position: relative; inset: auto; order: 1; height: clamp(6rem, 28vw, 9rem); }
  .page-hero-visual::after { background: linear-gradient(180deg, var(--hero-surface), #0e192c00 50%); }
  .hero-grid, .split, .tiles, .detail-grid, .profiles, .event, .footer-inner { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; gap: 1rem; }
  .header-inner { gap: .4rem .75rem; }
  .header-inner nav { gap: 0 .95rem; padding-top: .25rem; border-top: 1px solid var(--line); }
  .header-actions { gap: .4rem; }
  .header-actions .button { padding-inline: .65rem; }
  .brand { font-size: 1.13rem; }
  .brand img { width: 32px; height: 32px; }
  .hero-grid { gap: .75rem; }
  .featured-topics { grid-template-columns: 1fr; gap: .2rem; }
  .session-panel { position: static; }
  .profile { grid-template-columns: minmax(4rem, 5.5rem) minmax(0, 1fr); }
}
