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

:root {
  --primary: #6b9a3a;
  --primary-deep: #3c5e2c;
  --dark: #26241e;
  --accent: #e4562e;
  --beet: #8a2450;
  --bg: #efe9db;
  --surface-alt: #f4efe4;
  --line: #e4ddcc;
  --muted: #77705f;
  --white: #fcfaf4;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --font-label: 'Share Tech Mono', ui-monospace, monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

/* HERO */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.wordmark {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.subhead {
  font-size: 0.95rem;
  color: #a8b4c0;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto 2.5rem;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.btn-buy {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.btn-buy:hover {
  background: var(--accent);
  color: var(--white);
}

/* WHAT'S INSIDE */
.inside {
  padding: 3.5rem 0;
  background: var(--white);
}

.inside h2, .build h2, .about h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.inside h2 { color: var(--primary); }

.inside ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.inside ul li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--bg);
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
}

.inside ul li:last-child { border-bottom: none; }

.inside ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.proof-line {
  font-size: 0.8rem;
  color: #6b7280;
  letter-spacing: 0.05em;
}

/* THE BUILD */
.build {
  padding: 3.5rem 0;
  background: var(--bg);
}

.build h2 { color: var(--dark); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.build-intro {
  font-size: 0.92rem;
  max-width: 620px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.78rem;
  color: #6b7280;
  letter-spacing: 0.05em;
}

.build-cta {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.build-cta a { font-weight: 700; }

/* ABOUT */
.about {
  padding: 3.5rem 0;
  background: var(--white);
}

.about h2 { color: var(--primary); }

.about p {
  font-size: 0.92rem;
  max-width: 620px;
  margin-bottom: 1rem;
}

.about p:last-child { margin-bottom: 0; }

.license {
  font-size: 0.8rem;
  color: #6b7280;
}

/* BUY BOTTOM */
.buy-bottom {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.delivery-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #a8b4c0;
}

@media (max-width: 520px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid img { height: 120px; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* ============================================================
   DJ CASE STUDY — Gumroad-style UI/UX, recolored to AP palette
   (scoped to body.gr; the brutalist flat look — hard navy
   borders + offset drop-shadows + press-on-hover buttons)
   ============================================================ */

body.gr {
  --gr-border: 2px solid var(--dark);
  --gr-shadow: 0.3rem 0.3rem 0 var(--dark);
  --gr-shadow-sm: 0.2rem 0.2rem 0 var(--dark);
}

/* Top bar */
.gr-nav {
  background: var(--primary);
  border-bottom: 3px solid var(--dark);
}
.gr-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.gr-nav .wordmark {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.gr-nav .back { color: rgba(255,255,255,0.82); font-size: 0.82rem; }
.gr-nav .back:hover { color: var(--white); }

/* Press-on-hover button (Gumroad signature) */
.gr-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow);
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}
.gr-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translate(0.12rem, 0.12rem);
  box-shadow: var(--gr-shadow-sm);
}
.gr-btn:active {
  transform: translate(0.3rem, 0.3rem);
  box-shadow: 0 0 0 var(--dark);
}

/* Tag / pill */
.gr-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  border: var(--gr-border);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.gr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.gr-pill {
  display: inline-block;
  background: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* Hero / product header */
.gr-hero { background: var(--bg); padding: 2.5rem 0 3rem; }
.gr-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.gr-cover {
  width: 100%;
  display: block;
  border: var(--gr-border);
  box-shadow: 0.45rem 0.45rem 0 var(--dark);
  margin-bottom: 1.5rem;
}
.gr-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.gr-by { font-size: 0.9rem; color: #4b5566; margin-bottom: 1rem; }
.gr-by strong { color: var(--primary); }
.gr-lede { font-size: 0.95rem; line-height: 1.7; max-width: 60ch; }

/* Buy box (sticky on desktop) */
.gr-buybox {
  background: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow);
  padding: 1.4rem;
  position: sticky;
  top: 1.5rem;
}
.gr-buybox-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.gr-buybox-note { font-size: 0.82rem; color: #6b7280; margin-bottom: 1.1rem; line-height: 1.5; }
.gr-buybox .gr-btn { display: block; text-align: center; }
.gr-glance { width: 100%; border-collapse: collapse; margin: 1.3rem 0 0.5rem; }
.gr-glance th, .gr-glance td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--bg);
  line-height: 1.45;
}
.gr-glance th { color: var(--primary); white-space: nowrap; padding-right: 0.8rem; width: 1%; }
.gr-glance tr:last-child th, .gr-glance tr:last-child td { border-bottom: none; }
.gr-collab { font-size: 0.74rem; color: #6b7280; line-height: 1.5; margin-top: 0.6rem; }
.gr-collab strong { color: var(--dark); }

/* Content sections */
.gr-section { padding: 2.8rem 0; background: var(--white); }
.gr-section--alt { background: var(--bg); }
.gr-section--band { background: var(--dark); }
.gr-section--band h2 { color: var(--white); }
.gr-section h2 {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  color: var(--dark);
}
.gr-section p { font-size: 0.93rem; line-height: 1.7; max-width: 70ch; margin-bottom: 1rem; }

/* Step number badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  background: var(--primary);
  color: var(--white);
  border: var(--gr-border);
  font-weight: 700;
  margin-right: 0.4em;
  font-size: 0.85em;
}

/* Photo grid — bordered, offset-shadowed thumbnails */
.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0 1.4rem;
}
.gr-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border: var(--gr-border);
  box-shadow: var(--gr-shadow-sm);
}

/* Takeaway callout */
.takeaway {
  background: var(--white);
  border: var(--gr-border);
  border-left: 6px solid var(--primary);
  box-shadow: var(--gr-shadow-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem !important;
  line-height: 1.6;
  max-width: none !important;
}
.takeaway strong { color: var(--accent); }
.gr-section--alt .takeaway { background: var(--white); }

/* Vertical scroll timeline (DJ case study) — dated spine + expandable cards */
.vtl { position: relative; max-width: 720px; margin: 0.5rem auto 0; }
.vtl::before {                       /* the spine */
  content: '';
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: 96px;
  width: 3px;
  background: var(--primary);
  transform: translateX(-50%);
}
.vtl-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 2rem;
  margin-bottom: 1.8rem;
  align-items: start;
}
.vtl-date {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  padding-top: 0.9rem;
}
.vtl-item::before {                  /* node dot on the spine */
  content: '';
  position: absolute;
  left: 96px;
  top: 1rem;
  width: 15px; height: 15px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 2;
}
.vtl-item::after {                   /* connector stub from spine to card */
  content: '';
  position: absolute;
  left: 96px;
  top: calc(1rem + 6px);
  width: 2rem;
  height: 3px;
  background: var(--primary);
  z-index: 1;
}
.vtl-card {
  background: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow);
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.vtl-card:hover { transform: translate(-0.08rem, -0.08rem); box-shadow: 0.4rem 0.4rem 0 var(--dark); }
.vtl-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-bottom: var(--gr-border);
}
.vtl-head {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.vtl-h-title { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.vtl-h-short { display: block; font-size: 0.88rem; color: #4b5566; line-height: 1.55; }
.vtl-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.vtl-detail {
  display: none;
  padding: 0 1.1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #2c3242;
}
.vtl-detail p { margin: 0 0 0.7rem; }
.vtl-detail p:last-child { margin-bottom: 0; }
.vtl-detail a { font-weight: 700; }
.vtl-card.is-open .vtl-detail { display: block; }

/* phase chapter markers on the spine */
.vtl-phase {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.6rem 0 1.6rem;
  z-index: 2;
}
.vtl-phase:first-child { margin-top: 1.4rem; }
.vtl-phase-dates {
  text-align: right;
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--muted);
}
.vtl-phase-band {
  justify-self: start;
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow-sm);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vtl-phase-band .num { color: var(--accent); margin-right: 0.6rem; }

/* the one visible rule each card teaches */
.vtl-lesson {
  display: block;
  margin: 0 1.1rem 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface-alt);
  border-left: 6px solid var(--accent);
  font-family: var(--font-label);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dark);
}

/* install finale node + media grid (photos land here post-install) */
.vtl-item--install::before { background: var(--accent); box-shadow: 0 0 0 2px var(--dark); }
.vtl-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 1.1rem 1.1rem;
}
.vtl-media img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border: var(--gr-border);
}
.vtl-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  border: var(--gr-border);
  padding: 0.2rem 0.6rem;
  margin: 1rem 1.1rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .vtl::before { left: 52px; }
  .vtl-item { grid-template-columns: 42px 1fr; gap: 1.1rem; }
  .vtl-item::before { left: 52px; }
  .vtl-item::after { left: 52px; width: 1.1rem; }
  .vtl-date { font-size: 0.68rem; padding-top: 0.9rem; }
  .vtl-photo { height: 170px; }
  .vtl-phase { grid-template-columns: 42px 1fr; gap: 1.1rem; }
  .vtl-phase-band { font-size: 0.66rem; padding: 0.4rem 0.7rem; }
  .vtl-media { grid-template-columns: repeat(2, 1fr); }
  .vtl-media img { height: 130px; }
}

/* Card */
.gr-card {
  background: var(--white);
  border: var(--gr-border);
  box-shadow: var(--gr-shadow);
  padding: 1.5rem;
}

/* Arrow list (What's Inside) */
.gr-list { list-style: none; }
.gr-list li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--bg);
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
}
.gr-list li:last-child { border-bottom: none; }
.gr-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }

/* Hero subhead + proof lines (landing) */
.gr-sub { font-size: 0.95rem; line-height: 1.7; color: #4b5566; max-width: 56ch; margin-bottom: 1.2rem; }
.gr-proof { font-size: 0.82rem; color: #6b7280; letter-spacing: 0.03em; margin-top: 0.8rem; }
.gr-proof a { font-weight: 700; }

/* About / closing prose */
.gr-prose { font-size: 0.93rem; line-height: 1.7; max-width: 64ch; margin-bottom: 1rem; }
.gr-prose.license { font-size: 0.82rem; color: #6b7280; }

/* Install placeholder card */
.install-slot {
  background: var(--white);
  border: 2px dashed var(--dark);
  box-shadow: none;
  padding: 1.4rem;
  text-align: center;
}
.install-slot p { margin: 0.6rem auto 0; color: #6b7280; max-width: none; }

/* "What it teaches" table */
.gr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--gr-border);
  box-shadow: var(--gr-shadow);
  background: var(--white);
  margin: 1.2rem 0;
}
.gr-table th, .gr-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--dark);
}
.gr-table thead th { background: var(--dark); color: var(--white); }
.gr-table tbody td:first-child { font-weight: 700; color: var(--primary); white-space: nowrap; }
.gr-table tbody tr:last-child td { border-bottom: none; }

/* Bottom CTA heading */
.gr-cta-h { color: var(--white); font-size: 1.2rem; margin-bottom: 1.3rem; letter-spacing: 0.03em; }

/* Site footer — workspace Footer Standard (AP-owned public brand) */
.site-footer {
  background: var(--dark);
  color: #a8b4c0;
  text-align: center;
  border-top: 3px solid var(--primary);
  padding: 2.2rem 0 2.6rem;
}
.site-footer__inner p { margin: 0.4rem 0; font-size: 0.82rem; line-height: 1.5; }
.site-footer a { color: var(--primary); }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-license { color: #6b7280; }
.site-footer .footer-version {
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #6b7280;
}

@media (max-width: 760px) {
  .gr-hero-grid { grid-template-columns: 1fr; }
  .gr-buybox { position: static; }
}
@media (max-width: 520px) {
  .gr-grid { grid-template-columns: repeat(2, 1fr); }
  .gr-grid img { height: 130px; }
}

/* ============================================================
   DIY COURSE - LBG warm editorial theme
   ============================================================ */

.course-site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.course-context {
  background: var(--dark);
  color: #eae4d6;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-context__inner {
  max-width: 960px;
  min-height: 42px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.course-context__project {
  color: #f3b49d;
}

.course-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.course-nav__inner {
  max-width: 960px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-brand {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  color: var(--dark);
  line-height: 1.1;
}

.course-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.course-brand small {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.course-nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-nav__links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.5rem 0.75rem;
}

.course-nav__links a:hover,
.course-nav__links a:focus-visible {
  background: #ecf1e0;
  color: var(--primary-deep);
}

.course-menu {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font: 700 0.72rem var(--font-label);
  letter-spacing: 0.08em;
  padding: 0.55rem 0.8rem;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.course-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}

.course-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.54;
}

.course-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(38, 36, 30, 0.95) 0%, rgba(38, 36, 30, 0.78) 48%, rgba(38, 36, 30, 0.28) 100%);
}

.course-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem 4rem;
}

.course-kicker,
.course-section-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-kicker {
  color: #f3b49d;
}

.course-hero h1 {
  max-width: 13ch;
  margin: 0.75rem 0 1rem;
  color: var(--white);
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.course-hero__lede {
  max-width: 58ch;
  margin: 0 0 1.6rem;
  color: #e7e0cf;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.course-meta span {
  border: 1px solid rgba(252, 250, 244, 0.28);
  border-radius: 999px;
  background: rgba(252, 250, 244, 0.12);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.45rem 0.8rem;
}

.course-main {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 5rem;
}

.course-progress,
.course-alert,
.course-module,
.course-showcase-card,
.course-path-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.course-progress {
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
}

.course-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.course-progress__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font: 700 0.66rem var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-progress h2 {
  margin: 0;
  font-size: 1.45rem;
}

.course-progress__percent {
  color: var(--primary);
  font: 500 2rem var(--font-display);
}

.course-progress progress {
  width: 100%;
  height: 0.6rem;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e7e0cf;
}

.course-progress progress::-webkit-progress-bar {
  background: #e7e0cf;
}

.course-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--primary);
}

.course-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--primary);
}

.course-progress__note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.course-alert {
  margin-bottom: 2rem;
  border-color: #e8c7b8;
  border-left: 5px solid #c0532a;
  background: #fbe7de;
  padding: 1.25rem 1.35rem;
}

.course-alert__label {
  margin: 0 0 0.35rem;
  color: #9e3f1c;
  font: 700 0.68rem var(--font-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.course-alert p:last-child {
  margin: 0;
  color: #5c3324;
}

.course-section-label {
  margin: 2.25rem 0 0.8rem;
  color: var(--muted);
}

.course-module {
  margin-bottom: 1rem;
  overflow: clip;
}

.course-module summary {
  min-height: 88px;
  padding: 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.course-module summary::-webkit-details-marker {
  display: none;
}

.course-module summary:focus-visible {
  outline: 3px solid rgba(107, 154, 58, 0.32);
  outline-offset: -3px;
}

.course-module__number {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7e0cf;
  color: var(--muted);
  font: 700 0.92rem var(--font-label);
}

.course-module.is-complete .course-module__number {
  background: var(--primary);
  color: #fff;
}

.course-module__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.16;
}

.course-module__sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.course-module__status {
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font: 700 0.65rem var(--font-label);
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
}

.course-module.is-complete .course-module__status {
  background: #ecf1e0;
  color: #3c6b22;
}

.course-module__body {
  margin: 0 1.35rem 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  animation: course-fade 180ms ease;
}

@keyframes course-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.course-module__body > p {
  max-width: 68ch;
}

.course-grid {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.course-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-note,
.course-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
  padding: 1rem;
}

.course-note h3,
.course-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.course-note p,
.course-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.course-code-list {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.course-code {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.course-code:last-child {
  border-bottom: 0;
}

.course-code--safe {
  background: #ecf1e0;
}

.course-code--danger {
  background: #fbe7de;
}

.course-code strong {
  font-family: var(--font-label);
}

.course-code span {
  color: var(--muted);
  font-size: 0.82rem;
}

.course-code em {
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font: normal 700 0.63rem var(--font-label);
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  text-transform: uppercase;
}

.course-code--danger em {
  background: #a33143;
}

.module-complete {
  margin-top: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: 700 0.75rem var(--font-body);
  letter-spacing: 0.05em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.course-module.is-complete .module-complete {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--muted);
}

.quiz {
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  overflow: hidden;
}

.quiz__inner {
  padding: 1.2rem;
}

.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.quiz__label {
  color: var(--primary-deep);
  font: 700 0.67rem var(--font-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz__streak {
  border-radius: 999px;
  background: #fbe7de;
  color: #9e3f1c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
}

.quiz progress {
  width: 100%;
  height: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: #e7e0cf;
}

.quiz progress::-webkit-progress-bar {
  background: #e7e0cf;
}

.quiz progress::-webkit-progress-value {
  background: var(--primary);
}

.quiz progress::-moz-progress-bar {
  background: var(--primary);
}

.quiz__question {
  margin: 1rem 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.quiz__options {
  display: grid;
  gap: 0.6rem;
}

.quiz__option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.quiz__option:hover:not(:disabled),
.quiz__option:focus-visible {
  border-color: var(--primary);
}

.quiz__option.is-correct {
  border-color: #57862f;
  background: #ecf1e0;
}

.quiz__option.is-wrong {
  border-color: #a33143;
  background: #f6e6ea;
}

.quiz__feedback {
  margin: 0.8rem 0 0;
  border-left: 4px solid var(--primary);
  background: var(--white);
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.quiz__feedback strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.quiz__next,
.quiz__retake {
  margin-top: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
}

.quiz__result {
  text-align: center;
  padding: 1.5rem 1rem;
}

.quiz__score {
  margin: 0.5rem 0;
  color: var(--primary);
  font: 500 clamp(3rem, 8vw, 5rem) var(--font-display);
  line-height: 1;
}

.course-checklist {
  display: grid;
  gap: 0.55rem;
}

.course-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  cursor: pointer;
}

.course-check:last-child {
  border-bottom: 0;
}

.course-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
}

.course-showcase {
  margin-top: 3rem;
}

.course-showcase h2,
.course-pathways h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
}

.course-showcase > p,
.course-pathways > p {
  max-width: 65ch;
  color: var(--muted);
}

.course-feature {
  position: relative;
  min-height: 340px;
  margin: 1.25rem 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}

.course-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.56;
}

.course-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 36, 30, 0.94), rgba(38, 36, 30, 0.25));
}

.course-feature__copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 1.75rem;
  color: var(--white);
}

.course-feature__copy p {
  color: #e7e0cf;
}

.course-feature__title {
  display: block;
  margin: 0.35rem 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
}

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

.course-showcase-card {
  margin: 0;
  overflow: hidden;
}

.course-showcase-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.course-showcase-card figcaption {
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.course-showcase-card strong {
  display: block;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1rem;
}

.course-pathways {
  margin-top: 3.5rem;
}

.course-pathways__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.course-path-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-path-card--dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #eae4d6;
}

.course-path-card h3 {
  margin: 0.4rem 0;
  font-size: 1.55rem;
}

.course-path-card--dark h3 {
  color: var(--white);
}

.course-path-card p {
  flex: 1;
  color: var(--muted);
}

.course-path-card--dark p {
  color: #c9c0ac;
}

.course-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1.5px solid var(--dark);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.course-button--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.course-button:hover {
  color: var(--accent);
}

.course-button--primary:hover {
  background: #7baa48;
  color: #fff;
}

.course-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.course-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.75rem;
}

.course-footer__inner p {
  margin: 0;
}

@media (max-width: 760px) {
  .course-context__inner {
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 0.62rem;
  }

  .course-nav__inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .course-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .course-nav__links.is-open {
    display: flex;
  }

  .course-menu {
    display: inline-flex;
  }

  .course-hero {
    min-height: 520px;
  }

  .course-hero__inner {
    padding: 3.25rem 1.25rem 3rem;
  }

  .course-hero h1 {
    max-width: 9.5ch;
    font-size: clamp(2.4rem, 11vw, 3rem);
  }

  .course-hero__lede {
    font-size: 0.98rem;
  }

  .course-module summary {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .course-module__status {
    grid-column: 2;
    justify-self: start;
  }

  .course-grid,
  .course-grid--three,
  .course-gallery,
  .course-pathways__grid {
    grid-template-columns: 1fr;
  }

  .course-code {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .course-code em {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-module__body {
    animation: none;
  }
}
