@font-face {
  font-family: DM Sans;
  src: url(dm-sans.woff2) format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url(lora.woff2) format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f9f6ee;
  --ink: #332b25;
  --muted: #64594c;
  --rule: #d5cbb8;
  --accent: #884323;
  --accent-ink: #fffaf1;
  --green: #e2e7d6;
  --green-ink: #304334;
  --green-rule: #adb7a2;
  --card: #fffdf5;
  --wash: #efe9dc;
  --focus: #005494;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
}
.wrap {
  width: min(1184px, calc(100% - 96px));
  margin-inline: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: -6rem;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 1rem;
}
.mast,
.mast nav,
footer,
footer a,
.brand,
.sign-in,
.action,
.subject,
.audience {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 86px;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  gap: 9px;
  font-size: 36px;
  font-family: Lora, serif;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
}
.appearance {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  cursor: pointer;
}
.appearance:hover {
  background: var(--wash);
}
.appearance[hidden],
.appearance[data-next-theme='light'] .lucide-moon,
.appearance[data-next-theme='dark'] .lucide-sun {
  display: none;
}
.mast .brand {
  margin-inline-end: auto;
}
.mast {
  column-gap: clamp(14px, 2.3vw, 34px);
}
.mast nav {
  gap: clamp(14px, 2.3vw, 34px);
  font-weight: 600;
  font-size: 0.91rem;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.language {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sign-in,
.action {
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.sign-in:hover,
.action:hover {
  filter: brightness(1.09);
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding-block: 48px 64px;
}
.hero-copy {
  padding-block: 14px;
}
.eyebrow,
.subject {
  font-size: 0.77rem;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 750;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
}
.audience {
  gap: 10px;
}
.audience::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
}
h1,
h2,
h3 {
  font-family: Lora, Georgia, serif;
  line-height: 1.07;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.25rem, 5.15vw, 4.95rem);
}
h2 {
  font-size: clamp(2.35rem, 3.7vw, 3.65rem);
}
h3 {
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
}
p {
  font-size: 1.07rem;
  line-height: 1.62;
  margin: 16px 0 0;
  color: var(--muted);
}
.intro {
  margin-top: 23px;
  max-width: 39ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}
.action {
  display: inline-flex;
  margin-top: 25px;
}
.art {
  position: relative;
  isolation: isolate;
}
.art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10px -7px -8px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px 44px 6px 6px;
}
.art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 6px 44px 6px 6px;
}
.preview,
.about {
  padding-block: clamp(48px, 6.1vw, 84px);
}
.preview {
  background: var(--green);
  color: var(--green-ink);
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 128px);
}
.preview .eyebrow,
.preview p {
  color: var(--green-ink);
}
.preview .instruction {
  font-size: 0.92rem;
  font-weight: 650;
}
.choices {
  display: grid;
  gap: 12px;
  align-content: center;
}
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
.choice {
  border: 1px solid var(--green-rule);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  overflow: clip;
}
.choice:focus-within {
  overflow: visible;
}
.choice summary {
  border-radius: 8px;
  padding: 13px 20px 13px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.choice summary:hover,
.questions summary:hover {
  color: var(--accent);
}
.envelope {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 42px;
  color: var(--accent);
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.choice-name {
  font-weight: 700;
  line-height: 1.25;
}
.choice small {
  display: block;
  font-size: 0.86rem;
  font-weight: 450;
  margin-top: 3px;
  color: var(--muted);
}
.chevron {
  margin-left: auto;
  flex: none;
}
.choice[open] .chevron {
  transform: rotate(180deg);
}
.choice[open] {
  border-color: var(--green-ink);
}
.choice p {
  font-size: 1rem;
  margin: 0;
  padding: 0 20px 18px 74px;
  color: var(--ink);
}
.lessons {
  padding-block: clamp(58px, 6.8vw, 100px);
}
.lessons > p {
  max-width: 62ch;
}
.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
  margin-top: 32px;
}
.chapter {
  border-top: 2px solid var(--rule);
  padding: 22px 0 0;
}
.chapter h3 {
  margin-top: 17px;
}
.chapter p {
  margin-top: 12px;
}
.subject {
  gap: 9px;
  color: var(--accent);
}
.about {
  background: var(--wash);
}
.questions {
  border-top: 1px solid var(--rule);
}
.questions details {
  border-bottom: 1px solid var(--rule);
}
.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 3px;
  font-weight: 700;
}
.questions svg {
  flex: none;
}
.questions [open] svg {
  transform: rotate(45deg);
}
.questions p {
  margin: 0 0 18px;
  font-size: 1rem;
}
footer {
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
footer a {
  gap: 6px;
  min-height: 44px;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .mast .section-link {
    display: none;
  }
  .hero {
    gap: 26px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 6vw, 3.6rem);
  }
  .art img {
    aspect-ratio: 0.95;
  }
  .split {
    gap: 32px;
  }
}
@media (max-width: 660px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .mast {
    min-height: 69px;
    gap: 8px;
  }
  .mast nav {
    gap: 12px;
    font-size: 0.84rem;
  }
  .brand {
    font-size: 30px;
    gap: 5px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .sign-in {
    padding: 8px 12px;
    gap: 6px;
  }
  .hero,
  .split,
  .chapters {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 32px 0 38px;
    gap: 27px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(2.85rem, 9.9vw, 3.75rem);
    max-width: 14ch;
  }
  .eyebrow {
    margin-bottom: 14px;
  }
  .intro {
    margin-top: 16px;
  }
  .action {
    margin-top: 19px;
  }
  .art {
    margin-right: 6px;
  }
  .art img {
    aspect-ratio: 1.55;
    border-top-right-radius: 28px;
  }
  .art::before {
    border-top-right-radius: 28px;
  }
  .split {
    gap: 25px;
  }
  .chapter {
    padding-top: 18px;
  }
  .chapter h3 {
    margin-top: 9px;
  }
  .chapters {
    gap: 22px;
  }
  .choice p {
    padding-left: 16px;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 365px) {
  .mast {
    flex-wrap: wrap;
    padding-block: 9px;
    gap: 2px 8px;
  }
  .mast nav {
    gap: 9px;
  }
  .sign-in {
    padding-inline: 8px;
  }
  .sign-in svg {
    display: none;
  }
  .brand {
    font-size: 26px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 374px) {
  .mast {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand login' 'controls controls';
    row-gap: 6px;
    padding-block: 10px;
  }
  .mast .brand {
    grid-area: brand;
  }
  .mast > .sign-in {
    grid-area: login;
    font-size: 0.88rem;
  }
  .mast nav {
    grid-area: controls;
    justify-content: space-between;
  }
}
