:root {
  --paper: #fbf9f4;
  --card: #fffdf9;
  --ink: #221f1a;
  --muted: #6d675c;
  --rule: #e2dbcd;
  --accent: #9c3d1e;
  --accent-dark: #7d2f16;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shell: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  transition: top .15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---- header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: .94rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.top__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.menu {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 7px 9px;
  color: var(--ink);
  cursor: pointer;
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.btn--sm {
  padding: .5rem .95rem;
  font-size: .875rem;
}

.btn--wide {
  width: 100%;
}

/* ---- type ---- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 56ch;
}

.kicker {
  margin: 0 0 .9rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--light {
  color: #e8b9a6;
}

/* ---- hero ---- */

.hero {
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(1100px 420px at 78% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 3.5rem;
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
  line-height: 1.06;
  margin-bottom: 1.4rem;
}

.hero__copy .lede {
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero__note {
  margin: 1.4rem 0 0;
  font-size: .875rem;
  color: var(--muted);
}

.peek {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  background: var(--card);
  padding: 1.6rem 1.7rem;
}

.peek__label {
  margin: 0 0 1rem;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.peek__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.peek__list li + li {
  border-top: 1px solid var(--rule);
}

.peek__list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .78rem 0;
  text-decoration: none;
  font-size: .98rem;
}

.peek__list a span:last-child {
  font-family: var(--serif);
  font-weight: 700;
  white-space: nowrap;
}

.peek__list a:hover span:first-child {
  color: var(--accent);
}

.peek__foot {
  margin: 1.1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}

/* ---- strip ---- */

.strip {
  border-bottom: 1px solid var(--rule);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.strip__inner div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.strip__inner strong {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.strip__inner span {
  font-size: .83rem;
  color: var(--muted);
}

/* ---- sections ---- */

.section {
  padding-top: clamp(3rem, 6vw, 4.8rem);
  padding-bottom: clamp(3rem, 6vw, 4.8rem);
}

.section--rule {
  border-top: 1px solid var(--rule);
}

.section__head {
  margin-bottom: 2.2rem;
  max-width: 42ch;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.section__more {
  margin: 1.6rem 0 0;
  font-size: .95rem;
}

.section__more a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

/* ---- cards ---- */

.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__level {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.card__dek {
  font-size: .94rem;
  color: var(--muted);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--muted);
}

.card__price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---- steps ---- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}

.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: .5rem;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
}

.steps p {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}

/* ---- band ---- */

.band {
  background: var(--ink);
  color: var(--paper);
}

.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 3.8rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.8rem);
}

.band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: .8rem;
}

.band p:not(.kicker) {
  margin: 0;
  max-width: 52ch;
  color: #d9d2c5;
}

.band em {
  color: #fff;
}

/* ---- faq ---- */

.faq {
  max-width: 74ch;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: .95rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .96rem;
}

/* ---- cta ---- */

.cta {
  border-top: 1px solid var(--rule);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta--plain {
  margin-top: 3.5rem;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: .7rem;
}

.cta p {
  color: var(--muted);
  margin: 0 0 1.6rem;
}

/* ---- course page ---- */

.course__head {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--rule);
}

.course__head h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  font-size: .85rem;
  color: var(--muted);
}

.meta li {
  position: relative;
  padding-left: 1.1rem;
}

.meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.course__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.buy {
  position: sticky;
  top: 92px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.6rem 1.6rem 1.5rem;
}

.buy__price {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.buy__sub {
  margin: .3rem 0 1.2rem;
  font-size: .82rem;
  color: var(--muted);
}

.buy__note {
  margin: .7rem 0 1.4rem;
  font-size: .8rem;
  color: var(--muted);
}

.buy__head {
  font-size: .76rem;
  font-family: var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .7rem;
}

.buy__list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  font-size: .9rem;
}

.buy__list li {
  padding: .38rem 0 .38rem 1.4rem;
  position: relative;
  border-top: 1px solid var(--rule);
}

.buy__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.buy__outcome,
.buy__who,
.buy__help {
  margin: 0 0 .7rem;
  font-size: .87rem;
  color: var(--muted);
}

.buy__outcome strong,
.buy__who strong {
  color: var(--ink);
}

.buy__help {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .82rem;
}

/* ---- prose ---- */

.prose {
  max-width: 68ch;
  font-size: 1rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-size: 1.08rem;
  margin: 1.7rem 0 .5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
}

.prose li {
  margin: .32rem 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose pre {
  background: #f3efe6;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.55;
  margin: 0 0 1.3rem;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

.prose :not(pre) > code {
  background: #f3efe6;
  padding: .1em .35em;
  border-radius: 2px;
}

.prose blockquote {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.prose strong {
  font-weight: 650;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* ---- plain pages ---- */

.page-head {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.06;
  max-width: 24ch;
}

.page-head .lede {
  margin: .9rem 0 0;
}

.page-head--narrow h1 {
  max-width: 20ch;
}

.page-head + .grid {
  margin-top: 2.5rem;
}

.prose--page {
  padding-top: 2.6rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 68ch;
}

.prose--page h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.after {
  max-width: 68ch;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.after h2 {
  font-size: 1.6rem;
  margin-bottom: .7rem;
}

.after p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 1.4rem;
}

/* ---- thanks ---- */

.thanks {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 24px clamp(4rem, 8vw, 7rem);
}

.thanks h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.thanks .lede {
  margin-bottom: 1.8rem;
}

/* ---- footer ---- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.foot__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem 3rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.foot__brand .brand__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.foot__brand p {
  margin: .4rem 0 0;
  font-size: .87rem;
  color: var(--muted);
  max-width: 34ch;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  justify-content: flex-end;
  align-content: start;
  font-size: .88rem;
}

.foot__links a {
  text-decoration: none;
  color: var(--muted);
}

.foot__links a:hover {
  color: var(--accent);
}

.foot__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: .8rem;
  color: var(--muted);
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .course__body {
    grid-template-columns: 1fr;
  }

  .buy {
    position: static;
    order: -1;
  }

  .strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .band__inner {
    grid-template-columns: 1fr;
  }

  .foot__inner {
    grid-template-columns: 1fr;
  }

  .foot__links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .top__inner {
    gap: 1rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .5rem 24px 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: .7rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--rule);
    color: var(--accent);
  }

  .menu {
    display: inline-flex;
  }

  .top__actions {
    margin-left: auto;
  }

  .top__actions .btn {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.9rem);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .strip__inner {
    grid-template-columns: 1fr 1fr;
  }

  .course__head h1 {
    font-size: 2rem;
  }
}
