:root {
  --htf-page-ink: #0b1119;
  --htf-page-ink-soft: #16232d;
  --htf-page-paper: #f4efe5;
  --htf-page-paper-deep: #e8dfd0;
  --htf-page-line: #c8b99f;
  --htf-page-copper: #b96925;
  --htf-page-gold: #d39a45;
  --htf-page-muted: #62605c;
  --htf-page-display: Georgia, "Times New Roman", serif;
  --htf-page-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.htf-page {
  color: var(--htf-page-ink);
  background: var(--htf-page-paper);
  font-family: var(--htf-page-body);
}

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

.htf-page__wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.htf-page__eyebrow {
  margin: 0 0 14px;
  color: var(--htf-page-copper);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.htf-page__rule {
  display: block;
  width: 62px;
  height: 2px;
  margin: 0 0 22px;
  background: var(--htf-page-copper);
}

.htf-page h1,
.htf-page h2,
.htf-page h3 {
  font-family: var(--htf-page-display);
  font-weight: 400;
  line-height: 1.02;
}

.htf-page h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6rem);
  letter-spacing: -.055em;
}

.htf-page h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 4.25rem);
  letter-spacing: -.045em;
}

.htf-page__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--htf-page-ink);
  background: var(--htf-page-gold);
  border: 1px solid var(--htf-page-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.htf-page__button:hover,
.htf-page__button:focus-visible {
  color: var(--htf-page-paper);
  background: var(--htf-page-copper);
  border-color: var(--htf-page-copper);
}

.htf-page__button--secondary {
  color: var(--htf-page-paper);
  background: transparent;
  border-color: rgba(244, 239, 229, .62);
}

.htf-page__text-link {
  display: inline-block;
  color: var(--htf-page-copper);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.htf-page__text-link:hover,
.htf-page__text-link:focus-visible {
  color: var(--htf-page-gold);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.htf-page__hero {
  padding: clamp(76px, 11vw, 145px) 0 clamp(66px, 9vw, 105px);
  color: var(--htf-page-paper);
  background: linear-gradient(120deg, rgba(10, 24, 35, .98), rgba(25, 45, 58, .95));
}

.htf-page__hero-inner {
  max-width: 930px;
}

.htf-page__hero .htf-page__eyebrow {
  color: var(--htf-page-gold);
}

.htf-page__hero h1 {
  color: #fff8eb;
}

.htf-page__hero p:last-child {
  max-width: 710px;
  margin: 28px 0 0;
  color: #ded3c1;
  font-family: var(--htf-page-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.52;
}

.htf-page__content,
.htf-book__outputs {
  padding: clamp(64px, 9vw, 112px) 0;
}

.htf-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.htf-articles__signup {
  padding: clamp(42px, 6vw, 70px) 0;
  color: #fff8eb;
  background: #172b38;
}

.htf-articles__signup-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(310px, 1.1fr);
  gap: clamp(36px, 7vw, 108px);
  align-items: center;
}

.htf-articles__signup .htf-page__eyebrow {
  color: var(--htf-page-gold);
}

.htf-articles__signup h2 {
  margin: 10px 0 16px;
  color: #fff8eb;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.htf-articles__signup p:not(.htf-page__eyebrow) {
  max-width: 540px;
  margin: 0;
  color: #ded3c1;
  line-height: 1.65;
}

.htf-articles__signup-form {
  padding: 24px;
  background: #fffdf8;
}

.htf-articles__card {
  display: flex;
  min-height: 300px;
  padding: 28px;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--htf-page-line);
}

.htf-articles__card h2 {
  margin: 4px 0 15px;
  font-size: 1.8rem;
}

.htf-articles__card h2 a {
  color: inherit;
  text-decoration: none;
}

.htf-articles__card > p:not(.htf-page__eyebrow) {
  margin: 0 0 25px;
  color: var(--htf-page-muted);
  line-height: 1.6;
}

.htf-articles__card .htf-page__text-link {
  margin-top: auto;
}

.htf-articles__empty {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(275px, .8fr);
  gap: clamp(40px, 10vw, 150px);
  align-items: center;
  min-height: 330px;
  padding: clamp(35px, 5vw, 64px);
  background: #fffdf8;
  border: 1px solid var(--htf-page-line);
}

.htf-articles__empty h2 {
  max-width: 650px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.htf-articles__empty p:not(.htf-page__eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--htf-page-muted);
  line-height: 1.65;
}

.htf-articles__actions,
.htf-book__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.htf-articles__actions .htf-page__button--secondary {
  color: #fffdf8;
  background: var(--htf-page-ink);
  border-color: var(--htf-page-ink);
}

.htf-articles__actions .htf-page__button--secondary:hover,
.htf-articles__actions .htf-page__button--secondary:focus-visible {
  color: var(--htf-page-ink);
  background: #fffdf8;
  border-color: var(--htf-page-copper);
}

.htf-book__hero {
  padding: clamp(58px, 7vw, 88px) 0 clamp(52px, 6vw, 74px);
  color: var(--htf-page-paper);
  border-bottom: 1px solid rgba(211, 154, 69, .42);
  background: linear-gradient(112deg, #172b38 0%, #101b25 55%, #0b1119 100%);
}

.htf-book__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}

.htf-book__hero h1 {
  color: #fff8eb;
}

.htf-book__hero .htf-page__eyebrow {
  color: var(--htf-page-gold);
}

.htf-book__subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: #e6dac9;
  font-family: var(--htf-page-display);
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  line-height: 1.5;
}

.htf-book__tagline {
  margin: 17px 0 30px;
  color: #b9c5c8;
  font-size: 1.03rem;
  font-style: italic;
}

.htf-book__release {
  max-width: 410px;
  margin-top: 30px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(211, 154, 69, .42);
}

.htf-book__release .htf-page__eyebrow {
  margin-bottom: 7px;
}

.htf-book__release > p:last-child {
  margin: 0;
  color: #ded3c1;
  font-size: .97rem;
  line-height: 1.55;
}

.htf-book__hero-media {
  width: min(100%, 420px);
  margin: 0;
  justify-self: end;
}

.htf-book__hero-media img {
  display: block;
  width: 100%;
  border: 1px solid rgba(211, 154, 69, .32);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .46);
}

.htf-book__promise {
  padding: clamp(64px, 9vw, 110px) 0;
  background: #fffdf8;
}

.htf-book__promise-grid,
.htf-page__section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(42px, 9vw, 140px);
  align-items: start;
}

.htf-book__promise-grid p,
.htf-page__section-heading > p {
  margin: 0 0 16px;
  color: var(--htf-page-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.htf-page__section-heading {
  margin-bottom: 45px;
}

.htf-page__section-heading > p {
  margin-top: 34px;
}

.htf-book__output-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 32px;
  padding: 1px;
  list-style: none;
  background: var(--htf-page-line);
  counter-reset: decision;
}

.htf-book__output-list li {
  position: relative;
  min-height: 220px;
  padding: 64px 28px 28px;
  background: #fffdf8;
  counter-increment: decision;
}

.htf-book__output-list li::before {
  position: absolute;
  top: 25px;
  left: 28px;
  color: var(--htf-page-copper);
  content: "0" counter(decision);
  font-family: var(--htf-page-display);
  font-size: .9rem;
  letter-spacing: .12em;
}

.htf-book__output-list strong {
  display: block;
  margin-bottom: 15px;
  font-family: var(--htf-page-display);
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.12;
}

.htf-book__output-list span {
  color: var(--htf-page-muted);
  font-size: .93rem;
  line-height: 1.55;
}

.htf-book__boundary {
  padding: 34px 0;
  color: var(--htf-page-paper);
  background: var(--htf-page-ink-soft);
}

.htf-book__boundary > div {
  display: grid;
  grid-template-columns: minmax(220px, .52fr) minmax(0, 1.48fr);
  gap: 48px;
  align-items: start;
}

.htf-book__boundary strong {
  color: #f1c08f;
  font-family: var(--htf-page-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.htf-book__boundary p {
  margin: 0;
  color: #d3dad8;
  line-height: 1.62;
}

.htf-book__preview-focus {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--htf-page-paper-deep);
}

.htf-book__decision-visual {
  padding: clamp(64px, 9vw, 112px) 0;
  color: var(--htf-page-paper);
  background: var(--htf-page-ink-soft);
}

.htf-book__decision-visual .htf-page__eyebrow,
.htf-book__decision-visual .htf-page__section-heading > p {
  color: #f1c08f;
}

.htf-book__decision-visual h2 {
  color: #fff8eb;
}

.htf-book__decision-timeline,
.htf-book__decision-equation {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.htf-book__decision-timeline li,
.htf-book__decision-equation > div {
  position: relative;
  flex: 1;
  min-height: 132px;
  display: flex;
  align-items: center;
  padding: 28px;
  color: #fff8eb;
  border: 1px solid rgba(241, 192, 143, .38);
  font-family: var(--htf-page-display);
  font-size: clamp(1.15rem, 2vw, 1.56rem);
  line-height: 1.14;
}

.htf-book__decision-timeline li + li {
  border-left: 0;
}

.htf-book__decision-timeline li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #f1c08f;
  background: var(--htf-page-ink-soft);
  content: "→";
  font-family: var(--htf-page-display);
  transform: translateY(-50%);
}

.htf-book__decision-equation {
  justify-content: space-between;
  gap: 12px;
}

.htf-book__decision-equation > span {
  align-self: center;
  color: #f1c08f;
  font-family: var(--htf-page-display);
  font-size: 2rem;
}

.htf-book__preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 32px;
  padding: 1px;
  list-style: none;
  background: var(--htf-page-line);
}

.htf-book__preview-list li {
  min-height: 180px;
  padding: 28px;
  color: var(--htf-page-ink-soft);
  background: #fffdf8;
  font-family: var(--htf-page-display);
  font-size: 1.33rem;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .htf-book__output-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .htf-book__preview-list {
    grid-template-columns: 1fr;
  }

  .htf-book__decision-timeline,
  .htf-book__decision-equation {
    flex-wrap: wrap;
  }

  .htf-book__decision-timeline li {
    min-width: 30%;
  }
}

@media (max-width: 720px) {
  .htf-page__wrap {
    width: min(100% - 36px, 620px);
  }

  .htf-articles__grid,
  .htf-articles__empty,
  .htf-articles__signup-grid,
  .htf-book__hero-grid,
  .htf-book__promise-grid,
  .htf-page__section-heading,
  .htf-book__boundary > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .htf-book__hero-media {
    justify-self: start;
    width: min(82vw, 390px);
  }

  .htf-book__decision-timeline,
  .htf-book__decision-equation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .htf-book__decision-timeline li + li {
    border-top: 0;
    border-left: 1px solid rgba(241, 192, 143, .38);
  }

  .htf-book__decision-timeline li:not(:last-child)::after {
    top: auto;
    right: 28px;
    bottom: -12px;
    transform: rotate(90deg);
  }

  .htf-book__decision-equation > span {
    justify-self: center;
    height: 36px;
    line-height: 36px;
  }

  .htf-page__section-heading > p {
    margin-top: 0;
  }

  .htf-book__output-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .htf-book__output-list {
    grid-template-columns: 1fr;
  }
}
