/* The original JD Lectures welcome palette, scoped to the homepage. */
.home-page {
  --home-olive: #403f2b;
  --home-cream: #f3f1c4;
  --home-muted: #d6d3b9;
  background: var(--home-olive);
  color: var(--home-cream);
}
.home-page .demo-bar {
  background: #302f21;
  color: #e0dec9;
  border-bottom-color: #58563c;
}
.home-page .demo-role select {
  color: var(--home-cream);
}
.home-page .demo-role {
  color: var(--home-muted);
}
.home-page .demo-role option {
  color: #202e2c;
}
.home-page .site-header {
  background: var(--home-olive);
  color: var(--home-cream);
  border-bottom: 1px solid #686549;
}
.home-page .site-header nav a:hover,
.home-page .site-header nav a.active {
  color: var(--home-cream);
}
.home-brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.home-page .brand small {
  color: var(--home-muted);
}
.home-page .site-header .account-button,
.home-page .home-cream-button {
  background: var(--home-cream);
  color: #383823;
  border: 1px solid var(--home-cream);
  border-radius: 40px;
}
.home-page .home-cream-button:hover,
.home-page .site-header .account-button:hover {
  background: #fffde4;
}
.home-page .mobile-nav {
  background: var(--home-olive);
  color: var(--home-cream);
}
.home-page .icon-button {
  color: inherit;
}
.home-welcome {
  min-height: 620px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: #804815;
  overflow: hidden;
}
.home-welcome-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
}
.home-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(40, 20, 5, 0.52),
    rgba(50, 26, 8, 0.27) 55%,
    rgba(40, 20, 5, 0.03)
  );
}
.home-welcome-inner {
  width: min(1180px, 90%);
  margin: auto;
  padding: 75px 0 65px;
}
.home-welcome .eyebrow {
  color: #fff4cc;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}
.home-welcome h1 {
  font:
    400 clamp(3.1rem, 7.4vw, 7.1rem) / 1.06 Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 30px 0 28px;
  color: var(--home-cream);
  text-shadow: 0 2px 16px #41280a66;
}
.home-welcome p {
  max-width: 610px;
  font-size: 1.13rem;
  line-height: 1.85;
  color: #fff9e5;
}
.home-welcome .actions {
  margin: 32px 0;
  gap: 14px;
}
.home-welcome .button {
  min-width: 195px;
  min-height: 54px;
}
.home-page .home-outline-button {
  background: #30281b38;
  border: 1px solid #efe7c0;
  color: #fff9e5;
  border-radius: 40px;
}
.home-page .home-outline-button:hover {
  background: #403f2b;
}
.home-youtube {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: #fff5dd;
}
.home-youtube > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 25px;
  background: #bd3328;
  color: white;
  border-radius: 7px;
  font-size: 0.7rem;
}
.home-section {
  width: min(1180px, 90%);
  margin: auto;
  padding: 80px 0;
}
.home-wix h2 {
  font:
    400 clamp(2.25rem, 4vw, 3.4rem) / 1.15 Georgia,
    serif;
  letter-spacing: -0.04em;
  color: var(--home-cream);
}
.home-wix .eyebrow {
  color: #d3c799;
}
.home-page .home-welcome .eyebrow {
  display: inline-block;
  padding: 8px 12px;
  background: #352a18ad;
  border-radius: 3px;
  color: #fff5dc;
}
.home-wix .text-link {
  color: var(--home-cream);
}
.home-featured .section-heading {
  align-items: flex-end;
  margin-bottom: 34px;
}
.home-featured h2 {
  margin: 14px 0 0;
}
.home-featured .lesson-card {
  background: #f3f0df;
  border: 1px solid #c7c4a5;
  border-radius: 3px;
  color: #353928;
}
.home-featured .card-image {
  border-radius: 0;
}
.home-featured .card-body {
  padding: 22px;
}
.home-featured .card-body h3 {
  font-family: Georgia, serif;
}
.home-featured .access-tag {
  background: #f3f1c4;
  color: #363824;
}
.home-featured .resource-badge {
  color: #424936;
}
.home-explore {
  border-top: 1px solid #716e51;
  scroll-margin-top: 110px;
}
.home-section-intro {
  text-align: center;
  margin-bottom: 45px;
}
.home-section-intro h2 {
  margin: 14px 0 18px;
}
.home-section-intro p {
  color: var(--home-muted);
  line-height: 1.8;
}
.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 990px;
  margin: auto;
}
.home-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 17px 17px 18px;
  border: 2px solid #d8d4ac;
  background: #393927;
  box-shadow: 0 6px 0 #2e2e2077;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
a.home-topic:hover {
  transform: translateY(-5px);
  border-color: #fffad7;
}
.home-topic-art {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ddd1b3;
}
.home-topic-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-topic h3 {
  background: var(--home-cream);
  color: #393927;
  border-radius: 30px;
  font:
    500 1.1rem/1.25 Georgia,
    serif;
  text-align: center;
  padding: 12px 18px;
  margin: 18px 0 9px;
  width: 100%;
}
.home-topic-status {
  font-size: 0.77rem;
  color: #dad7b9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-topic.upcoming {
  border-color: #aaa787;
  background: #3b3b29;
}
.home-topic.upcoming h3 {
  background: #e6e2bc;
}
.home-upcoming-title {
  margin: 55px 0 30px;
  text-align: center;
}
.home-upcoming-title > span {
  font:
    1.6rem Georgia,
    serif;
}
.home-upcoming-title > p {
  color: var(--home-muted);
  font-size: 0.88rem;
  margin: 12px 0 0;
}
.home-more-topics > summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid #aca883;
  border-radius: 30px;
  width: fit-content;
  margin: 38px auto 0;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
}
.home-more-topics > summary::-webkit-details-marker {
  display: none;
}
.home-more-topics .when-open,
.home-more-topics[open] .when-closed {
  display: none;
}
.home-more-topics[open] .when-open {
  display: inline;
}
.home-more-topics[open] > summary {
  margin-bottom: 35px;
}
.home-more-topics[open] > summary > span:last-child {
  transform: rotate(45deg);
}
.home-about {
  border-top: 1px solid #716e51;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 85px;
  align-items: center;
}
.home-author-photo {
  position: relative;
  border: 1px solid #c0bb94;
  padding: 12px;
}
.home-author-photo > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85);
}
.home-author-photo > span {
  display: block;
  padding: 22px 12px 12px;
  font:
    1.3rem Georgia,
    serif;
}
.home-author-photo small {
  display: block;
  font:
    0.65rem Arial,
    sans-serif;
  letter-spacing: 0.16em;
  color: #c7c3a4;
  margin-top: 8px;
}
.home-about h2 {
  margin: 14px 0 24px;
}
.home-about p {
  color: #e1dec8;
  line-height: 1.9;
}
.home-about .home-about-lead {
  font:
    1.35rem/1.6 Georgia,
    serif;
  color: var(--home-cream);
}
.home-about .button {
  margin-top: 14px;
}
.home-membership {
  padding: 55px max(5%, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #343422;
  border-top: 1px solid #716e51;
}
.home-membership h2 {
  font-size: 2.25rem;
  margin: 12px 0;
}
.home-membership p {
  margin: 0;
  color: var(--home-muted);
}
.home-membership .button {
  flex-shrink: 0;
}
.home-page footer {
  background: #292a1d;
  border-top-color: #595b40;
  color: var(--home-cream);
}
.home-page footer p {
  color: #c0c1a9;
}
.home-resume {
  padding: 20px 5%;
  display: flex;
  gap: 25px;
  justify-content: center;
  background: #343522;
  color: var(--home-cream);
  font-size: 0.9rem;
}
.home-resume a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 1500px) {
  .home-welcome {
    min-height: 690px;
  }
}
@media (max-width: 900px) {
  .home-welcome {
    min-height: 580px;
  }
  .home-welcome-image {
    object-position: 61% center;
  }
  .home-welcome p {
    max-width: 490px;
  }
  .home-topic-grid {
    gap: 18px;
  }
  .home-topic {
    padding: 11px;
  }
  .home-topic h3 {
    font-size: 0.96rem;
    padding: 10px;
  }
  .home-about {
    gap: 40px;
  }
  .home-author-photo > img {
    height: 390px;
  }
  .home-membership {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .home-brand-logo {
    width: 38px;
    height: 38px;
  }
  .home-page .site-header .brand {
    gap: 9px;
  }
  .home-page .site-header .brand > span {
    font-size: 0.96rem;
  }
  .home-page .site-header .brand small {
    font-size: 0.38rem;
    letter-spacing: 0.1em;
  }
  .home-page .site-header .account-button {
    padding: 8px 14px;
  }
  .home-welcome {
    min-height: 590px;
    align-items: flex-end;
  }
  .home-welcome-image {
    object-position: 65% top;
  }
  .home-welcome::after {
    background: linear-gradient(0deg, #211407ed, #3e200c8a 65%, #61380926);
  }
  .home-welcome-inner {
    padding: 65px 0 42px;
    width: 88%;
  }
  .home-welcome .eyebrow {
    font-size: 0.6rem;
    line-height: 1.8;
    letter-spacing: 0.15em;
    max-width: 230px;
  }
  .home-welcome h1 {
    font-size: clamp(2.9rem, 11vw, 4.5rem);
    margin: 24px 0;
    white-space: nowrap;
  }
  .home-welcome p {
    font-size: 1rem;
    line-height: 1.8;
  }
  .home-welcome p br {
    display: none;
  }
  .home-welcome .actions {
    flex-direction: column;
    align-items: stretch;
    margin: 28px 0;
  }
  .home-welcome .button {
    width: 100%;
    min-height: 49px;
  }
  .home-youtube {
    font-size: 0.74rem;
    gap: 8px;
  }
  .home-section {
    width: 88%;
    padding: 55px 0;
  }
  .home-featured .section-heading {
    display: block;
  }
  .home-featured .text-link {
    display: inline-block;
    margin-top: 18px;
  }
  .home-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 13px;
  }
  .home-topic-grid.available {
    grid-template-columns: 1fr;
    max-width: 300px;
    gap: 24px;
  }
  .home-topic-grid.available .home-topic {
    padding: 17px;
  }
  .home-topic-grid.available h3 {
    font-size: 1.2rem;
  }
  .home-topic-grid.available .home-topic-status {
    font-size: 0.82rem;
  }
  .home-topic h3 {
    font-size: 0.88rem;
    padding: 10px 5px;
    margin-top: 12px;
    overflow-wrap: anywhere;
  }
  .home-topic-status {
    font-size: 0.66rem;
  }
  .home-topic {
    padding: 9px;
    border-width: 1px;
  }
  .home-upcoming-title {
    margin-top: 40px;
  }
  .home-more-topics > summary {
    font-size: 0.82rem;
    padding: 14px 18px;
  }
  .home-about {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .home-author-photo {
    width: min(100%, 340px);
    margin: auto;
  }
  .home-author-photo > img {
    height: 370px;
  }
  .home-membership {
    padding: 42px 6%;
  }
  .home-membership h2 {
    font-size: 2rem;
  }
  .home-resume {
    flex-direction: column;
    gap: 8px;
    padding: 20px 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-topic {
    transition: none;
  }
}
