@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,100..900&display=swap");

:root {
  --ink: #000000;
  --paper: #ffffff;
  --night: #1a1a1a;
  --cloud: #e9ecf2;
  --charcoal: #404040;
  --slate: #767d88;
  --mid-slate: #7d848e;
  --line: #27272a;
  --page: 1280px;
  --gutter: 1.5rem;
  --section-gap: clamp(4rem, 8vw, 8rem);
  --reading-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

p,
li,
dd,
.site-footer a,
.split-links a {
  font-size: 1rem;
}

p {
  max-width: 72ch;
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06rem;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  max-width: 22ch;
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.04rem;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 4px;
  pointer-events: none;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: var(--reading-progress);
  height: 100%;
  background: var(--paper);
  transform-origin: left center;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.split-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(100%, var(--page));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.split-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.split-links:last-child {
  justify-content: flex-end;
}

.split-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--cloud);
  font-weight: 500;
  text-decoration: none;
}

.split-links a:hover,
.split-links a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: min(760px, calc(100vh - 76px));
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(3rem, 8vw, 7rem) max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter)));
  padding-right: clamp(2rem, 5vw, 5rem);
  background: var(--ink);
}

.hero-copy .lede {
  max-width: 56ch;
  margin-top: 1.5rem;
  color: var(--cloud);
  font-size: 1.125rem;
}

.hero-copy .guide-note {
  max-width: 52ch;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--mid-slate);
}

.hero-frame {
  position: relative;
  min-width: 0;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, opacity 300ms ease;
}

.hero-frame:hover img {
  transform: scale(1.03);
}

.hero-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 32ch;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  background: rgb(0 0 0 / 82%);
  color: var(--cloud);
  font-size: 1rem;
  line-height: 1.45;
}

.label,
.source-kind,
.myth-label,
.step-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.022rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.label {
  font-size: 1rem;
}

.hero-copy .label,
.myth .myth-label,
.price-number .label,
.site-footer .label,
.not-found .label {
  color: var(--cloud);
}

.frame {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
}

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

.section-cloud {
  background: var(--cloud);
  color: var(--ink);
}

.section-dark {
  background: var(--night);
  color: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading p {
  color: var(--charcoal);
  font-size: 1.125rem;
}

.section-dark .section-heading p {
  color: var(--mid-slate);
}

.myth-fact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
}

.myth,
.fact {
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 4rem);
}

.myth {
  background: var(--night);
  color: var(--paper);
}

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

.myth p,
.fact p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
}

.answer-grid,
.check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.answer-copy > * + * {
  margin-top: 1.25rem;
}

.answer-copy h2 + p,
.answer-copy h3 + p {
  margin-top: 1.25rem;
}

.answer-copy p,
.answer-copy li {
  color: var(--charcoal);
}

.section-dark .answer-copy p,
.section-dark .answer-copy li {
  color: var(--cloud);
}

.plain-list,
.question-list,
.step-list,
.source-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.question-list li,
.step-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child,
.question-list li:last-child,
.step-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.question-list strong,
.step-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: inherit;
  font-size: 1.1rem;
}

.aside-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cloud);
  color: var(--ink);
}

.aside-card h3 {
  margin-bottom: 1rem;
}

.aside-card p:last-child {
  margin-bottom: 0;
}

.price-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 2rem;
  border: 1px solid var(--line);
}

.price-number,
.price-context {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.price-number {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
}

.price-number strong {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.08rem;
}

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

.reading-list {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.source-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.source-list p {
  margin: 0.35rem 0 0;
  color: var(--charcoal);
}

.section-dark .source-list p {
  color: var(--mid-slate);
}

.next-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 88px;
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.next-link:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.section-dark .next-link:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: end;
  width: min(100%, 480px);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  color: var(--cloud);
}

.footer-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--mid-slate);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: var(--section-gap) var(--gutter);
  text-align: center;
}

.not-found h1 {
  max-width: 12ch;
  margin: 0 auto 1.5rem;
}

.not-found p {
  margin-inline: auto;
  color: var(--mid-slate);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--paper);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .section-heading,
  .myth-fact,
  .answer-grid,
  .reading-list {
    animation: rise-in 540ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 120ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 240ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 1020px) {
  .split-header {
    grid-template-columns: 1fr;
    padding-block: 0.5rem;
  }

  .site-id {
    grid-row: 1;
  }

  .split-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .split-links:last-child {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  h2 {
    font-size: 1.85rem;
  }

  .split-header {
    padding-inline: 0.75rem;
  }

  .split-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .split-links a {
    justify-content: center;
    padding-inline: 0.35rem;
  }

  .hero,
  .section-heading,
  .myth-fact,
  .answer-grid,
  .check-grid,
  .price-strip,
  .reading-list,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 510px;
    padding: 4.5rem var(--gutter) 3rem;
  }

  .hero-frame {
    min-height: 390px;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .source-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .aside-card {
    position: static;
  }

  .footer-links {
    justify-self: stretch;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
