@font-face {
  font-family: DM;
  src: url(assets/fonts/body.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/fonts/bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(assets/fonts/display.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(assets/fonts/italic.woff2) format("woff2");
  font-style: italic;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  font-family: DM, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button {
  border: 1px solid var(--line);
  background: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2 {
  font-weight: 400;
}
h1,
h2,
p,
li,
a,
button,
span,
strong {
  overflow-wrap: anywhere;
}
header > *,
section > *,
.chapter-content,
.journal-bottom > *,
.site-footer > * {
  min-width: 0;
}
em {
  font-family: Instrument, serif;
  font-weight: 400;
}
nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
nav a {
  padding-block: 8px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.6;
}
.intro {
  font-size: 16px;
  line-height: 1.7;
  max-width: 390px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 17px 24px;
  border-radius: 100px;
  font-size: 13px;
  min-height: 52px;
  transition:
    transform 0.25s,
    background 0.25s;
}
.pill:hover {
  transform: translateY(-3px);
}
.pill span {
  font-size: 18px;
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 24px;
}
.wordmark span {
  font-size: 12px;
  vertical-align: super;
  margin-left: 3px;
}
.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section-intro h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  margin-top: 20px;
}
.section-intro > p {
  font-size: 13px;
  line-height: 1.8;
}
.chapter {
  color: var(--ink);
  padding: 80px 6%;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 60px;
}
.chapter-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.chapter-label span + span {
  white-space: nowrap;
}
.chapter h2 {
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 1.04;
  margin-bottom: 28px;
  font-family: Instrument, serif;
}
.chapter p {
  line-height: 1.85;
  font-size: 16px;
  max-width: 640px;
  color: var(--muted);
}
.chapter ul {
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.chapter li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer {
  padding: 45px 6%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.site-footer > a {
  font-size: 24px;
}
.site-footer p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.site-footer p a {
  text-decoration: underline;
}
.motion-toggle {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  background: var(--paper);
  z-index: 1000;
  padding: 12px;
}
.skip:focus {
  transform: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 22px;
  z-index: 200;
  transition: 0.25s;
  font-size: 13px;
}
.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.small-note {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.7 !important;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  max-width: min(600px, 92vw);
  max-height: 90svh;
  border-radius: 12px;
}
dialog::backdrop {
  background: #14181099;
  backdrop-filter: blur(6px);
}
.close-dialog {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 26px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 36px;
  font-family: Instrument, serif;
}
.is-seen {
  animation: arrive 0.8s ease both;
}
.is-paused * {
  animation-play-state: paused !important;
}
.is-paused {
  scroll-behavior: auto;
}
.is-paused .forma-keyvisual {
  transform: none !important;
}
@keyframes arrive {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}
@media (max-width: 760px) {
  nav {
    gap: 14px;
    font-size: 11px;
  }
  .intro {
    font-size: 15px;
  }
  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .chapter {
    padding: 48px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .chapter h2 {
    font-size: 43px;
  }
  .chapter p {
    font-size: 15px;
  }
  .site-footer {
    padding: 32px 24px;
    flex-wrap: wrap;
  }
  .site-footer p {
    order: 3;
    width: 100%;
  }
  .pill {
    padding: 15px 20px;
  }
  .dialog-heading h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .forma-keyvisual {
    transform: none !important;
  }
}
.chapter-cards {
  grid-template-columns: 1fr;
  gap: 40px;
}
.chapter-cards .chapter-label {
  max-width: 100%;
}
.chapter-cards .chapter-content {
  max-width: none;
}
.chapter-cards ul {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}
.chapter-cards li {
  position: relative;
  min-height: 135px;
  border: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.chapter-card-number {
  font-family: Instrument, serif;
  font-size: 48px;
  line-height: 1;
}
.color-swatch {
  height: 100px;
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}
.chapter-quote {
  display: block;
  text-align: center;
  padding-block: 90px !important;
}
.chapter-quote .chapter-label {
  justify-content: center;
  gap: 45px;
  border: 0 !important;
}
.chapter-quote .chapter-content {
  max-width: 780px;
  margin: 35px auto 0;
}
.chapter-quote .chapter-content h2 {
  font-size: clamp(65px, 9vw, 120px);
  font-style: italic;
}
.chapter-quote .chapter-content p {
  margin: auto;
}
.chapter-quote ul {
  max-width: 400px;
  margin: 32px auto 0;
}
@media (max-width: 760px) {
  .chapter-cards ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chapter-cards li {
    min-height: 110px;
  }
  .chapter-quote .chapter-content h2 {
    font-size: 65px;
  }
}
