:root {
  --ink: #142d30;
  --muted: #536b6c;
  --paper: #f6f6ee;
  --line: #d7dfd7;
  --green: #ceef8a;
  --dark: #143d3a;
  --white: #fff;
  --red: #9f3030;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 26px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 2px;
}
.mark {
  background: var(--dark);
  color: white;
  padding: 4px 11px;
  border-radius: 9px;
  font-size: 29px;
}
.mark span {
  color: var(--green);
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.button,
button {
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 13px 20px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.3;
}
.button:hover,
button:hover {
  background: #24524c;
}
.button.secondary,
button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover,
button.secondary:hover {
  background: #e6ecd9;
}
.button.small,
button.small {
  padding: 10px 15px;
}
.button.light {
  background: var(--green);
  color: var(--ink);
  border: 0;
}
.button:disabled,
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 65vh;
  padding: 0 0 65px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 55px;
  padding: 75px 0 60px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
}
.dot {
  color: #72a13e;
  font-size: 14px;
}
h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -3px;
  font-weight: 650;
  margin: 0 0 26px;
}
h1 em {
  font-style: normal;
  color: #4c7862;
}
h2 {
  font-weight: 650;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 12px 0;
}
p {
  line-height: 1.7;
}
p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.hero-art {
  background: var(--dark);
  border-radius: 22px;
  padding: 36px;
  min-height: 400px;
  position: relative;
  color: white;
  overflow: hidden;
  background-image:
    linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 36px 36px;
}
.art-heading {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 11px;
  color: #b4cac0;
  letter-spacing: 1px;
}
.orbit {
  width: 210px;
  height: 210px;
  border: 1px solid #89ad8f80;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 35px auto;
  position: relative;
  box-shadow:
    0 0 0 24px #ffffff04,
    0 0 0 48px #ffffff03;
}
.orbit:before {
  content: "";
  position: absolute;
  width: 265px;
  height: 110px;
  border: 1px solid #a6c49588;
  border-radius: 50%;
  transform: rotate(-35deg);
}
.shield {
  font-size: 70px;
  line-height: 1;
  background: var(--green);
  color: var(--dark);
  width: 110px;
  height: 126px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 20%, 93% 73%, 50% 100%, 7% 73%, 0 20%);
  font-weight: 700;
}
.art-card {
  position: relative;
  background: #f6f6ee;
  color: var(--ink);
  padding: 17px 20px;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
  max-width: 325px;
  margin: -15px auto 0;
  box-shadow: 0 8px 25px #0002;
}
.art-card strong {
  display: block;
  font-size: 14px;
}
.art-card small {
  color: var(--muted);
}
.badge-icon {
  background: #dcecbe;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 22px;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  gap: 30px;
  margin-bottom: 64px;
}
.strip strong {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}
.strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 0 0 27px;
}
.section-head h2 {
  margin-bottom: 8px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card p {
  color: var(--muted);
  font-size: 14px;
}
.card .button {
  margin-top: auto;
  align-self: start;
}
.course-art {
  height: 130px;
  background: #e1ecd5;
  border-radius: 8px;
  margin: -8px -8px 20px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  color: var(--dark);
  align-items: center;
}
.course-art span {
  font-size: 45px;
  font-family: monospace;
}
.course-art small {
  font-size: 10px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}
.tag {
  background: #eaf0df;
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}
.meta {
  display: flex;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
.empty {
  border: 1px dashed #adc1b5;
  border-radius: 12px;
  background: #edf1e5;
  padding: 32px;
  grid-column: 1/-1;
}
.empty p {
  margin-bottom: 0;
  color: var(--muted);
}
.page-top {
  padding-top: 55px;
  margin-bottom: 36px;
}
.page-top h1 {
  font-size: 44px;
  letter-spacing: -1.7px;
}
.page-top p {
  color: var(--muted);
  max-width: 720px;
}
.panel {
  border: 1px solid var(--line);
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 22px;
}
.narrow {
  max-width: 560px;
  margin: 55px auto;
}
.narrow h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 18px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #adbdba;
  border-radius: 6px;
  background: white;
  padding: 11px 12px;
  margin-top: 8px;
  color: var(--ink);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin: 0 8px 0 0;
}
.check {
  display: flex;
  align-items: center;
}
label small,
.hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: block;
  margin-top: 7px;
}
.error {
  color: var(--red);
  background: #fff1ed;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
}
.notice {
  background: #eaf0df;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.qr {
  max-width: 230px;
  display: block;
  margin: auto;
}
code,
.secret {
  overflow-wrap: anywhere;
  font-family: monospace;
  background: #edf1e8;
  padding: 6px;
  border-radius: 4px;
}
.recovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
}
.lesson-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.lesson-list li {
  border-bottom: 1px solid var(--line);
}
.lesson-link {
  display: block;
  padding: 16px;
  font-size: 14px;
}
.lesson-link.active {
  background: #dceac9;
  border-left: 3px solid #4d7751;
}
.lesson-link small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.content {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #314b4b;
  overflow-wrap: anywhere;
}
.video {
  width: 100%;
  max-height: 520px;
  background: #111;
  border-radius: 9px;
  margin-bottom: 20px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}
.row h3 {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.status {
  font-size: 12px;
  padding: 6px 9px;
  background: #eef1e9;
  border-radius: 4px;
}
.status.ready {
  background: #dceebc;
}
.progress {
  width: 100%;
  height: 6px;
  margin: 16px 0;
  accent-color: #426a43;
}
.divider {
  margin: 27px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  gap: 20px;
}
footer .brand {
  font-size: 17px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  padding: 15px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: var(--ink);
  color: white;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  display: none;
  z-index: 10;
}
#toast.show {
  display: block;
}
[hidden] {
  display: none !important;
}
a:hover {
  text-decoration: underline;
}
.button:hover,
.brand:hover {
  text-decoration: none;
}
.loading {
  padding: 65px;
  text-align: center;
}
details > summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
}
.full {
  grid-column: 1/-1;
}
.warning {
  color: #82520d;
}
.admin-note {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1320px) {
  main,
  footer {
    margin-left: 40px;
    margin-right: 40px;
  }
}
@media (max-width: 800px) {
  header {
    padding: 20px;
    align-items: flex-start;
  }
  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 12px;
  }
  nav .button {
    padding: 8px 10px;
  }
  .brand {
    font-size: 18px;
  }
  .mark {
    font-size: 24px;
  }
  main,
  footer {
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 45px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero-art {
    min-height: 340px;
  }
  .strip {
    gap: 20px;
    margin-bottom: 42px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
  }
  .page-top h1 {
    font-size: 36px;
  }
  footer {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  header {
    flex-direction: column;
    gap: 18px;
  }
  nav {
    justify-content: flex-start;
    width: 100%;
    gap: 16px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-art {
    padding: 25px;
  }
  .section-head {
    flex-direction: column;
  }
  .panel {
    padding: 20px;
  }
  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .narrow {
    margin: 35px auto;
  }
  .recovery {
    grid-template-columns: 1fr;
  }
  .page-top {
    padding-top: 35px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.assessment-question { border: 0; border-bottom: 1px solid var(--line, #d5d8d8); padding: 1.5rem 0; margin: 0 0 1rem; min-width: 0; }
.assessment-question legend { font-weight: 650; font-size: 1.1rem; padding-top: 1rem; }
.assessment-option { display:flex; align-items: flex-start; gap: .8rem; padding: .85rem; margin: .5rem 0; border: 1px solid var(--line, #d5d8d8); border-radius: 10px; cursor:pointer; }
.assessment-option input { width:auto; flex: 0 0 auto; margin-top:.25rem; }
.assessment-option:has(input:checked) { border-color: #16816d; background: #eaf6f0; color: #142c25; }
