:root {
  color-scheme: dark;
  --background: #0d1722;
  --panel: #142333;
  --line: #2b3d4f;
  --paper: #f5f0e7;
  --muted: #c5ced8;
  --gold: #e6b66d;
  --red: #ed5360;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--paper); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 1rem; left: 1rem; padding: .6rem 1rem; background: var(--background); transform: translateY(-200%); }
.skip:focus { transform: none; }
header { background: #0a141e; border-bottom: 1px solid var(--line); }
nav, .links { display: flex; align-items: center; gap: 1.4rem; }
nav { justify-content: space-between; min-height: 76px; }
nav a { text-decoration: none; }
.brand { font-size: 1.18rem; letter-spacing: .16em; font-weight: 800; line-height: 1.2; }
.brand span { color: var(--red); }
.brand small { display: block; color: var(--muted); font-size: .54rem; margin-top: .35rem; }
.outline { border: 1px solid var(--gold); border-radius: 6px; padding: .5rem .85rem; }
.hero { position: relative; min-height: clamp(440px, 35vw, 630px); display: grid; align-items: center; background: #101a29; isolation: isolate; overflow: hidden; }
.hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 65% center; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #101a29 0%, #101a29e8 28%, #101a2910 65%); }
.hero-copy { padding-block: 3.3rem; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 600; margin: 0; }
h1 { font-size: clamp(3rem, 7.1vw, 6.5rem); line-height: .98; letter-spacing: -.04em; }
.hero p { font-size: clamp(1.05rem, 2.1vw, 1.4rem); max-width: 25ch; margin-block: 1.3rem; }
.button { display: inline-flex; align-items: center; gap: .7em; background: var(--gold); color: #101a29; padding: .74rem 1.15rem; border-radius: 7px; font-weight: 750; text-decoration: none; }
.button:hover { background: #f3cc92; }
.intro { padding-block: 2rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.intro p { margin: 0 auto; max-width: 68ch; text-align: center; }
.courses { padding-block: 2.5rem 4rem; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-align: center; margin-bottom: 1.5rem; line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #091522; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.35rem 1.35rem; }
h3 { font-size: clamp(1.18rem, 2.3vw, 1.7rem); line-height: 1.15; }
.card p { color: var(--muted); margin: .65rem 0 .85rem; }
.card .subtitle { color: var(--gold); margin-block: .3rem 0; }
.course-link { align-self: flex-start; margin-top: auto; color: var(--gold); font-weight: 700; text-underline-offset: .24em; }
footer { padding-block: 1.2rem 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .86rem; }
@media (max-width: 650px) {
 .shell { width: calc(100% - 32px); }
 .links { gap: .65rem; font-size: .82rem; }
 .outline { padding: .4rem .5rem; }
 .hero { min-height: 480px; align-items: end; }
 .hero img { object-position: 74% center; }
 .hero::after { background: linear-gradient(0deg, #101a29 0%, #101a29e9 21%, #101a2900 78%); }
 .hero-copy { padding-block: 2rem; }
 .hero p { margin-block: .6rem 1rem; }
 .grid { grid-template-columns: 1fr; }
}
@media (max-width: 350px) { .links > a:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.brand img { display: block; width: clamp(120px, 17vw, 155px); height: auto; }
.brand small { margin: .15rem 0 .25rem .4rem; }
.series { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .65rem; }
.series summary { cursor: pointer; color: var(--paper); font-size: .9rem; }
.series summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stage { display: grid; grid-template-columns: 80px 1fr; gap: .75rem; align-items: start; margin-top: .85rem; }
.stage img { aspect-ratio: 1; border-radius: 4px; }
.stage strong { font-size: .88rem; line-height: 1.25; display: block; }
.stage p { font-size: .85rem; line-height: 1.35; margin: .2rem 0 0; }
