:root {
  color-scheme: light;
  font-family: Tahoma, Arial, sans-serif;
  color: #16332b;
  background: #f5f7f3;
  --green: #195340;
  --muted: #495e54;
  --mint: #a9ead0;
  --coral: #ffb38f;
}
* { box-sizing: border-box; }
body { margin: 0; }
.home {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3.5rem) 0 2rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  background: #102b29;
  color: #fff9eb;
  border-radius: 1.75rem;
}
.hero-copy { padding-block: .5rem; }
.course {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  color: var(--mint); font-size: .92rem; font-weight: bold; line-height: 1.6; margin: 0 0 .85rem;
}
.signal { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mint); }
.course-divider { width: 1px; height: .95rem; background: #6ba495; }
h1 { margin: 0; font-size: clamp(1.75rem, 4.3vw, 3.4rem); line-height: 1.35; }
.hero h1 bdi { color: var(--coral); }
.hero-intro { color: #dcece3; font-size: clamp(.95rem, 2vw, 1.14rem); margin: .85rem 0 1.15rem; line-height: 1.65; }
.classes { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: #dcece3; }
.classes ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; direction: ltr; }
.classes li {
  display: grid; place-items: center; min-width: 1.95rem; height: 1.95rem; padding: 0 .3rem;
  border: 1px solid #5e8c80; border-radius: .55rem; color: #fff; font-weight: bold;
}
.hero-art { overflow: hidden; border-radius: 1rem; border: 1px solid #41645c; background: #0b2524; }
.hero-art img { display: block; width: 100%; height: auto; }
.project { margin-block: clamp(1.4rem, 3.5vw, 2.7rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.section-head p {
  margin: 0; color: #683212; background: #ffeddb; border: 1px solid #efd2b2;
  border-radius: .65rem; padding: .5rem .75rem; font-weight: bold; font-size: .9rem; line-height: 1.6;
}
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.step {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .8rem .6rem;
  padding: 1rem; border-radius: 1rem; border: 1px solid #ccdad1; background: #fff;
  text-decoration: none; color: inherit;
}
.step:first-child { background: #e8f5ed; border-color: #9cc9b3; }
.step:hover { border-color: var(--green); box-shadow: 0 .35rem 1rem #142d2212; }
.step:focus-visible, button:focus-visible, pre:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.step-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--green); }
.step-top svg { box-sizing: content-box; width: 1.55rem; height: 1.55rem; padding: .48rem; border-radius: .65rem; background: #e4f1e9; }
.step:first-child .step-top svg { background: #cbe8d7; }
.number { font-weight: bold; font-size: 1rem; }
.step strong { display: block; font-size: 1.03rem; line-height: 1.55; }
.step small { display: block; color: var(--muted); line-height: 1.6; margin-top: .25rem; }
.arrow { color: var(--green); font-size: 1.18rem; }
.credits {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1.4rem;
  border-top: 1px solid #cbd8ce; padding-top: 1rem; color: var(--muted); font-size: .9rem; line-height: 1.6;
}
.credits strong { color: var(--green); margin-inline-start: .3rem; }
.source { width: min(100% - 2rem, 54rem); margin-inline: auto; padding: 2rem 0; }
.source .course { color: var(--green); }
.intro { color: var(--muted); line-height: 1.75; margin: .6rem 0 0; }
.toolbar { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; }
button { color: white; background: var(--green); border: 0; border-radius: .5rem; padding: .65rem 1rem; font: inherit; cursor: pointer; }
pre {
  background: #fff; border: 1px solid #ccd9ce; border-radius: .75rem; padding: 1rem;
  overflow: auto; font-size: .9rem; line-height: 1.65; text-align: left;
}
@media (max-width: 45rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: .8rem; border-radius: 1.15rem; }
  .hero-art img { aspect-ratio: 16 / 9; object-fit: cover; }
  .links { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .step-top { grid-column: auto; justify-content: start; gap: .45rem; }
}
