/* Hallmark v2.0.0 | theme: brand | redesign: full | scope: app | job: learn | hero: mentor-led course overview | signature: real Micah portrait and curriculum | posture: restrained */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: hierarchy; a real overview and persistent booking action replace the immediate lesson dump. */

.welcome-hero {
  padding: 56px 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 80px;
  align-items: center;
}
.welcome-copy {
  padding-block: 16px;
}
.hero-sub {
  font-size: 22px;
  line-height: 1.6;
  max-width: 610px;
  margin: 28px 0 32px;
}
.welcome-copy .actions {
  gap: 12px;
}
.course-facts {
  font-size: 14px;
  margin-top: 24px;
}
.author-portrait {
  margin: 0;
  max-width: 340px;
  justify-self: end;
  position: relative;
  border-radius: 12px;
  overflow: clip;
  background: var(--navy-raised);
}
.author-portrait img {
  height: 350px;
  width: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.author-portrait figcaption {
  padding: 20px 24px;
  border-top: 1px solid var(--dark-line);
}
.author-portrait strong,
.author-portrait span {
  display: block;
}
.author-portrait strong {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 650;
}
.author-portrait span {
  font-size: 14px;
  color: var(--bright);
  margin-top: 4px;
}
.resume-link {
  color: var(--bright);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 5px;
  display: inline-block;
  margin-top: 16px;
}
.welcome-note {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 80px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.welcome-note > p {
  font-size: 19px;
  color: var(--muted);
}
.welcome-note > div {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  align-self: center;
}
.welcome-note strong,
.welcome-note span {
  display: block;
}
.welcome-note span {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}
.curriculum {
  border-top: 1px solid var(--line);
}
.curriculum-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
}
.curriculum-row:hover {
  background: var(--pale);
}
.curriculum-num {
  font-family: var(--display);
  font-size: 24px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.curriculum-row h3 {
  font-size: 25px;
}
.curriculum-row p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}
.row-action {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}
.row-action svg {
  width: 20px;
  height: 20px;
}
.supporting {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 80px;
  align-items: center;
  padding-top: 8px;
}
.story-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.story-photo {
  border-radius: 12px;
  overflow: clip;
}
.story-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
}
.story-feature h2 {
  font-size: 34px;
  margin-top: 12px;
}
.story-feature p:not(.path-label) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}
.story-feature .button {
  margin-top: 24px;
  font-size: 14px;
}
.story-feature .disclosure {
  font-size: 12px !important;
}
.reading-links h3 {
  font-size: 23px;
}
.reading-links > a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 650;
}
.reading-links > a:hover {
  color: var(--blue);
}
.reading-links small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  margin-top: 8px;
}
.reading-links svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
}
.course-view {
  padding: 36px 0 72px;
}
.course-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.course-sidebar {
  position: sticky;
  top: 112px;
}
.course-home {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
  font-weight: 650;
  color: var(--blue);
  padding: 8px 0 24px;
}
.course-home svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.desktop-lesson-nav h2 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.lessons {
  display: grid;
  gap: 4px;
}
.lessons a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  border: 1px solid transparent;
}
.lessons a:hover {
  background: var(--surface);
  border-color: var(--line);
}
.lessons a[aria-current="true"] {
  background: var(--pale);
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 650;
}
.lesson-number {
  color: var(--blue);
  font-size: 13px;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}
.progress-area {
  padding: 24px 12px;
  color: var(--muted);
  font-size: 13px;
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  accent-color: var(--blue);
  margin-top: 12px;
}
.sidebar-call {
  border-top: 1px solid var(--line);
  padding: 24px 12px 0;
}
.sidebar-call h3 {
  font-size: 23px;
}
.sidebar-call p {
  font-size: 15px;
  color: var(--muted);
  margin: 12px 0 16px;
}
.sidebar-call .button {
  width: 100%;
  font-size: 15px;
}
.sidebar-call > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.mobile-menu {
  display: none;
}
.lesson-column {
  min-width: 0;
}
.lesson {
  background: var(--surface);
  padding: 44px 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 40px;
}
.chapter {
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 650;
}
.lesson-head h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lesson-summary {
  font-size: 19px;
  color: var(--muted);
  margin-top: 20px;
}
.lesson-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.lesson-body {
  font-size: 19px;
  line-height: 1.85;
  max-width: 660px;
}
.lesson-body p + p {
  margin-top: 24px;
}
.field-tool {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.field-tool h2,
.exercise h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.field-tool ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 16px;
}
.field-tool li {
  font-size: 17px;
  line-height: 1.7;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.check-icon {
  font-size: 17px;
  color: var(--blue);
  font-weight: 650;
}
.exercise {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.exercise-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.exercise-title svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}
.exercise > p {
  font-size: 17px;
  margin-top: 16px;
  line-height: 1.75;
}
.exercise label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 8px;
}
textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
.save-note {
  font-size: 12px !important;
  color: var(--muted);
  margin-top: 8px !important;
}
.lesson-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.lesson-controls .button {
  font-size: 14px;
  padding: 12px 16px;
}
.lesson-help {
  text-align: center;
  font-size: 15px;
  padding: 20px 0 0;
}
.lesson-help p {
  margin-bottom: 8px;
  color: var(--muted);
}
.calculator {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 32px;
}
.calculator h3 {
  font-size: 24px;
}
.calculator > p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
}
.calc-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.calc-fields label {
  font-size: 14px;
  color: var(--muted);
}
input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  margin-top: 8px;
}
.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.calc-result span {
  font-size: 14px;
  color: var(--muted);
}
output {
  font-size: 20px;
  color: var(--blue);
  font-weight: 650;
  text-align: right;
}
.fine {
  font-size: 13px !important;
  line-height: 1.65;
  color: var(--muted);
}
.next-step {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 44px 48px;
  margin-top: 32px;
}
.next-step h2 {
  font-size: 40px;
}
.finish-mark {
  font-size: 24px;
  color: var(--bright);
  margin-bottom: 20px;
}
.next-step > p {
  font-size: 18px;
  color: var(--bright);
  margin-top: 20px;
}
.next-step ul {
  font-size: 16px;
  color: var(--bright);
  padding-left: 20px;
  margin: 24px 0;
}
.next-step .button {
  width: 100%;
  margin-top: 8px;
}
.next-step .fine {
  color: var(--bright);
  margin-top: 12px;
}
.next-step .text-link {
  display: block;
  width: fit-content;
  margin-top: 28px;
  font-size: 16px;
}
.next-step a:focus-visible {
  outline-color: var(--bright);
}
.back-home {
  display: block;
  font-size: 14px;
  margin-top: 28px;
  color: var(--bright);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.js .lesson {
  margin-bottom: 0;
}
.course-view:not([hidden]) {
  scroll-margin-top: 100px;
}
#curriculum {
  scroll-margin-top: 104px;
}
.js .course-view .lesson h2:focus {
  outline: 0;
}
@media (min-width: 1500px) {
  .course-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 64px;
  }
  .lesson {
    padding: 48px 60px;
  }
}
@media (max-width: 1000px) {
  .welcome-grid,
  .welcome-note,
  .supporting {
    gap: 40px;
  }
  .hero-sub {
    font-size: 20px;
  }
  .welcome-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  }
  .welcome-copy .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-portrait img {
    height: 320px;
  }
  .course-layout {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 28px;
  }
  .lesson {
    padding: 32px;
  }
  .next-step {
    padding: 32px;
  }
  .story-feature {
    gap: 20px;
  }
  .story-feature h2 {
    font-size: 30px;
  }
  .story-feature .button {
    font-size: 13px;
    padding-inline: 12px;
  }
}
@media (max-width: 760px) {
  .welcome-hero {
    padding: 40px 0;
  }
  .welcome-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .welcome-copy {
    padding: 0;
  }
  .welcome-copy h1 {
    max-width: 620px;
  }
  .hero-sub {
    margin: 24px 0 28px;
  }
  .welcome-copy .actions {
    flex-direction: row;
    align-items: center;
  }
  .author-portrait {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    justify-self: stretch;
    max-width: none;
    align-items: center;
    border: 1px solid var(--dark-line);
  }
  .author-portrait img {
    height: 116px;
    object-position: center 20%;
  }
  .author-portrait figcaption {
    border: 0;
    padding: 20px 24px;
  }
  .author-portrait strong {
    font-size: 24px;
  }
  .welcome-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0;
  }
  .welcome-note > p {
    font-size: 18px;
  }
  .welcome-note > div {
    border-left: 0;
    padding: 0;
  }
  .welcome-note span {
    max-width: 460px;
  }
  .curriculum-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }
  .curriculum-row h3 {
    font-size: 24px;
  }
  .curriculum-row p {
    font-size: 16px;
  }
  .row-action {
    grid-column: 2;
    margin-top: 4px;
  }
  .supporting {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .story-feature {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
    gap: 24px;
  }
  .story-photo img {
    height: 300px;
  }
  .story-feature h2 {
    font-size: 32px;
  }
  .story-feature .button {
    font-size: 14px;
  }
  .course-view {
    padding: 0 0 48px;
  }
  .course-layout {
    display: block;
  }
  .course-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
  }
  .desktop-lesson-nav,
  .sidebar-call {
    display: none;
  }
  .course-home {
    padding: 0;
    font-size: 14px;
  }
  .progress-area {
    grid-column: 1/-1;
    padding: 8px 0 0;
    font-size: 12px;
  }
  .progress-area progress {
    margin-top: 8px;
  }
  .mobile-menu {
    display: block;
    font-size: 14px;
  }
  .mobile-menu summary {
    cursor: pointer;
    color: var(--blue);
    padding: 4px 0;
  }
  .mobile-menu[open] {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .mobile-menu[open] .lessons {
    margin-top: 16px;
  }
  .lesson {
    padding: 28px;
    border-radius: 12px;
  }
  .lesson-head h2 {
    font-size: 36px;
  }
  .lesson-summary {
    font-size: 18px;
  }
  .next-step {
    padding: 32px 28px;
  }
  .next-step h2 {
    font-size: 34px;
  }
  .lesson-body {
    font-size: 18px;
  }
  .lesson-controls {
    flex-wrap: wrap;
  }
  .lesson-controls .button {
    flex: 1;
    white-space: normal;
  }
  .lesson-controls .button svg {
    flex: none;
  }
  .lesson-controls .button.secondary {
    flex: 0 1 auto;
  }
  .next-step .button {
    font-size: 15px;
  }
  .course-view:not([hidden]) {
    scroll-margin-top: 72px;
  }
}
@media (max-width: 420px) {
  .welcome-copy .actions {
    display: grid;
  }
  .welcome-copy .button {
    width: 100%;
    font-size: 15px;
    padding-inline: 16px;
  }
  .hero-sub {
    font-size: 19px;
  }
  .author-portrait {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .author-portrait img {
    height: 106px;
  }
  .author-portrait strong {
    font-size: 22px;
  }
  .author-portrait span {
    font-size: 12px;
  }
  .author-portrait figcaption {
    padding: 16px;
  }
  .lesson {
    padding: 24px 20px;
  }
  .lesson-head h2 {
    font-size: 32px;
  }
  .calc-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .calc-result {
    display: block;
  }
  .calc-result output {
    display: block;
    text-align: left;
    margin-top: 12px;
  }
  .next-step {
    padding: 28px 24px;
  }
  .story-feature {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 20px;
  }
  .story-photo img {
    height: 280px;
  }
  .story-feature h2 {
    font-size: 28px;
  }
  .story-feature .button {
    padding-inline: 12px;
    font-size: 13px;
    white-space: normal;
  }
  .course-facts {
    font-size: 13px;
  }
  .curriculum-row h3 {
    font-size: 22px;
  }
}
.lesson-head h2 {
  scroll-margin-top: 116px;
}
#next-title {
  scroll-margin-top: 116px;
}
.welcome-copy h1:focus {
  outline: 0;
}
@media (max-width: 760px) {
  .lesson-head h2,
  #next-title {
    scroll-margin-top: 96px;
  }
}

h1,
h2,
h3 {
  text-wrap: balance;
}
.lesson-controls .button:active {
  transform: translateY(1px);
}
.lesson {
  scroll-margin-top: 108px;
}
@media (max-width: 760px) {
  .course-sidebar {
    position: sticky;
    top: 72px;
    z-index: 20;
    background: var(--bg);
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .lesson {
    scroll-margin-top: 200px;
  }
  .lesson-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .lesson-controls .button {
    width: 100%;
    white-space: nowrap;
    min-height: 48px;
  }
  .lesson-controls [data-next] {
    grid-row: 1;
  }
  .mobile-menu[open] .lessons {
    max-height: 340px;
    overflow-y: auto;
  }
}
@media (max-width: 420px) {
  .story-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-photo {
    display: none;
  }
  .story-feature .button {
    white-space: nowrap;
  }
}
@media (min-width: 521px) and (max-width: 760px) {
  .course-sidebar {
    top: 84px;
  }
}
.reading-section h3 {
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.reading-section + .reading-section {
  margin-top: 28px;
}
.field-tool h3,
.exercise h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.youtube-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 0;
}
.youtube-strip p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}
.youtube-strip .text-link {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 15px;
}
.youtube-strip svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 650px) {
  .youtube-strip {
    display: block;
  }
  .youtube-strip .text-link {
    margin-top: 20px;
  }
}
.lesson-example {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
  padding: 24px 0;
}
.lesson-example h3 {
  font-size: 23px;
  line-height: 1.25;
  color: var(--blue);
  margin-bottom: 12px;
}
.lesson-example p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}
.reading-section p + p {
  margin-top: 16px;
}
.lesson-body {
  max-width: 62ch;
}
.lesson-example p,
.exercise > p {
  max-width: 58ch;
}
.next-step > p {
  max-width: 58ch;
}
.lesson-body {
  max-width: 600px;
}
.lesson-example p,
.exercise > p,
.next-step > p {
  max-width: 540px;
}
.welcome-copy .course-browse {
  display: inline-block;
  margin-top: 20px;
  color: var(--bright);
  font-size: 14px;
}
