@font-face {
  font-family: "GT Walsheim";
  src: url("/fonts/GT-Walsheim-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim";
  src: url("/fonts/GT-Walsheim-Regular-Oblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim";
  src: url("/fonts/GT-Walsheim-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim";
  src: url("/fonts/GT-Walsheim-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "GT Walsheim";
  src: url("/fonts/GT-Walsheim-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "GT Alpina";
  src: url("/fonts/GT-Alpina-Regular-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT Alpina";
  src: url("/fonts/GT-Alpina-Bold-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111111;
  --cloud: #f7f7f5;
  --paper: #fbfaf7;
  --mist: #d9d9d6;
  --slate: #777b80;
  --blue: #2537da;
  --blue-deep: #1b2bb0;
  --yellow: #f1d969;
  --yellow-soft: #f6e9a4;
  --article-width: clamp(825px, 45vw, 980px);
  --article-offset: max(292px, calc(50vw - 580px));
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--cloud);
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.012) 0 1px, transparent 1px 7px),
    var(--cloud);
  color: var(--ink);
  font-family: "GT Walsheim", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--cloud);
  background: var(--blue);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

em,
i {
  font-family: "GT Alpina", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

strong em,
strong i,
em strong,
i strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cloud);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 2px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 16px;
  height: 19px;
  place-items: center;
  color: var(--blue);
}

.wordmark-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.contents-button,
.contents-close {
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contents-button {
  display: none;
}

.contents-button span {
  margin-left: 5px;
  color: var(--blue);
}

.toc-rail {
  position: fixed;
  z-index: 10;
  top: 118px;
  left: 24px;
  width: 220px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.toc-rail > p {
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toc-rail nav {
  position: relative;
  display: grid;
  gap: 1px;
}

.toc-rail nav::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: var(--mist);
  content: "";
}

.toc-rail .toc-link {
  position: relative;
  color: var(--slate);
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease;
}

.toc-rail .toc-link--part,
.toc-rail .toc-link--bonus {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 15px;
  padding: 7px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.toc-rail .toc-link--part:first-child {
  margin-top: 0;
}

.toc-rail .toc-link--part::before,
.toc-rail .toc-link--bonus::before {
  position: absolute;
  top: 13px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--cloud);
  content: "";
}

.toc-rail .toc-index {
  padding-left: 13px;
  color: var(--slate);
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc-rail .toc-link--subsection {
  display: block;
  padding: 4px 0 4px 50px;
  font-size: 10.5px;
  line-height: 1.28;
}

.toc-rail .toc-link--subsection::before {
  position: absolute;
  top: 10px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mist);
  content: "";
}

.toc-rail .toc-link:hover,
.toc-rail .toc-link.active {
  color: var(--ink);
}

.toc-rail .toc-link.active::before {
  border-color: var(--blue);
  background: var(--blue);
}

.toc-rail .toc-link--bonus::before {
  border-radius: 1px;
  border-color: var(--ink);
  background: var(--yellow);
}

.article-shell {
  width: min(var(--article-width), calc(100vw - var(--article-offset) - 48px));
  margin-left: var(--article-offset);
  padding: 132px 0 64px;
}

.publish-rule {
  display: flex;
  justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 6px double var(--ink);
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.essay-header {
  padding: 82px 0 64px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.essay-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.essay-header h1 em,
.workshop h2 em {
  font-family: "GT Alpina", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.deck {
  max-width: 760px;
  margin: 42px 0 34px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.deck p {
  margin: 0;
}

.deck p + p {
  margin-top: 0.72em;
}

.byline {
  display: flex;
  align-items: center;
  gap: 13px;
}

.byline img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--mist);
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.byline p {
  display: grid;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.byline strong {
  font-weight: 500;
}

.byline span {
  color: var(--slate);
}

.essay-body {
  padding-top: 12px;
}

.essay-body > p,
.essay-body > ul,
.essay-body > ol,
.essay-body > blockquote {
  max-width: min(900px, 100%);
}

.essay-body p {
  margin: 0 0 1.2em;
}

.essay-body > p:first-child {
  font-size: 25px;
  line-height: 1.45;
}

.essay-body h2 {
  margin: 144px 0 44px;
  padding-top: 36px;
  border-top: 1px solid var(--ink);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.essay-body h3 {
  margin: 82px 0 24px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.essay-body h4 {
  margin: 56px 0 18px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.essay-body strong {
  font-weight: 700;
}

.essay-body em {
  font-family: "GT Alpina", Georgia, serif;
  font-style: italic;
}

.essay-body a {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.essay-body a:hover {
  color: var(--blue);
}

.essay-body blockquote {
  margin: 72px 0;
  padding: 12px 0 12px 40px;
  border-left: 4px solid var(--blue);
  font-family: "GT Alpina", Georgia, serif;
  font-size: 30px;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.essay-body blockquote p:last-child {
  margin-bottom: 0;
}

.essay-body ul,
.essay-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.essay-body li {
  margin-bottom: 0.55em;
  padding-left: 0.35em;
}

.section-break {
  width: 48px;
  margin: 78px auto;
  border: 0;
  border-top: 2px solid var(--ink);
}

.essay-figure {
  width: calc(100% + 120px);
  margin: 72px 0 72px -60px;
}

.essay-figure img {
  width: 100%;
  max-height: 720px;
  border: 1px solid var(--mist);
  background: var(--paper);
  object-fit: contain;
}

.essay-figure figcaption {
  margin-top: 10px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.4;
}

.callout {
  width: calc(100% + 80px);
  margin: 88px 0 88px -40px;
  padding: 40px;
  border: 1px solid var(--mist);
  background: var(--paper);
}

.callout h3 {
  margin: 0 0 24px;
  font-size: 32px;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.yellow-box {
  border: 1px solid rgba(17, 17, 17, 0.72);
  background: var(--yellow-soft);
}

.bonus-box {
  position: relative;
  border-color: var(--ink);
}

.bonus-box::before {
  display: block;
  margin-bottom: 18px;
  color: var(--slate);
  content: "BONUS SECTION";
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.workshop {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  width: calc(100% + 160px);
  margin: 160px 0 0 -80px;
  padding: 72px 80px;
  background: var(--ink);
  color: var(--cloud);
}

.workshop .eyebrow {
  color: #8f9aff;
}

.workshop h2 {
  margin: 0 0 28px;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.workshop > div > p:last-child {
  margin: 0;
  color: rgba(247, 247, 245, 0.76);
  font-size: 19px;
  line-height: 1.45;
}

.signup-form {
  align-self: center;
}

.form-row {
  display: grid;
  gap: 20px;
}

.signup-form label {
  display: grid;
  gap: 8px;
}

.signup-form label span {
  color: rgba(247, 247, 245, 0.68);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signup-form input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 247, 245, 0.34);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--cloud);
  font-size: 18px;
}

.signup-form input::placeholder {
  color: rgba(247, 247, 245, 0.35);
}

.signup-form input:focus {
  border-color: #8f9aff;
}

.signup-form button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 17px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: var(--cloud);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.signup-form button:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  color: rgba(247, 247, 245, 0.5);
  font-size: 11px;
  line-height: 1.45;
}

.form-status {
  min-height: 1.45em;
  color: #a8ffbc;
}

.form-status.error {
  color: #ffb1a9;
}

.honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
  color: var(--slate);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.reading-status {
  position: fixed;
  z-index: 15;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 11px;
  border: 1px solid var(--mist);
  background: rgba(247, 247, 245, 0.9);
  color: var(--slate);
  font-size: 9px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.reading-status strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mobile-contents {
  display: none;
}

@media (max-width: 1280px) {
  .toc-rail {
    display: none;
  }

  .article-shell {
    width: min(825px, calc(100vw - 96px));
    margin: 0 auto;
  }

  .contents-button {
    display: inline-block;
  }

  .mobile-contents {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    overflow-y: auto;
    background: var(--cloud);
  }

  .mobile-contents[hidden] {
    display: none;
  }

  .mobile-contents-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 28px 32px 64px;
  }

  .mobile-contents-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ink);
  }

  .mobile-contents-header p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-contents nav {
    display: grid;
    padding-top: 24px;
  }

  .mobile-contents .toc-link--part,
  .mobile-contents .toc-link--bonus {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 18px 0 12px;
    border-bottom: 1px solid var(--mist);
    font-size: 19px;
    line-height: 1.25;
    text-decoration: none;
  }

  .mobile-contents .toc-index {
    color: var(--blue);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-contents .toc-link--subsection {
    display: block;
    padding: 9px 0 9px 70px;
    color: var(--slate);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
  }

  .mobile-contents .toc-link.active {
    color: var(--ink);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 18px;
    line-height: 1.55;
  }

  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .wordmark {
    font-size: 15px;
  }

  .wordmark-mark {
    width: 14px;
    height: 17px;
  }

  .desktop-only {
    display: none;
  }

  .article-shell {
    width: auto;
    margin: 0;
    padding: 102px 28px 40px;
  }

  .publish-rule {
    padding-bottom: 12px;
    font-size: 10px;
  }

  .publish-rule span:last-child {
    display: none;
  }

  .essay-header {
    padding: 60px 0 48px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .essay-header h1 {
    font-size: clamp(58px, 19vw, 82px);
  }

  .deck {
    margin: 32px 0 28px;
    font-size: 21px;
    line-height: 1.4;
  }

  .essay-body > p:first-child {
    font-size: 20px;
  }

  .essay-body h2 {
    margin: 98px 0 30px;
    padding-top: 24px;
    font-size: 40px;
  }

  .essay-body h3 {
    margin: 64px 0 20px;
    font-size: 28px;
  }

  .essay-body h4 {
    margin: 46px 0 16px;
    font-size: 22px;
  }

  .essay-body blockquote {
    margin: 54px 0;
    padding-left: 22px;
    font-size: 24px;
  }

  .section-break {
    margin: 58px auto;
  }

  .essay-figure {
    width: calc(100% + 56px);
    margin: 54px 0 54px -28px;
  }

  .essay-figure figcaption {
    padding: 0 28px;
    font-size: 11px;
  }

  .callout {
    width: calc(100% + 32px);
    margin: 64px 0 64px -16px;
    padding: 28px 20px;
  }

  .callout h3 {
    font-size: 26px;
  }

  .workshop {
    grid-template-columns: 1fr;
    gap: 42px;
    width: calc(100% + 56px);
    margin: 110px 0 0 -28px;
    padding: 54px 28px;
  }

  .workshop h2 {
    font-size: 42px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 64px;
  }

  .reading-status {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .article-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  .essay-figure {
    width: calc(100% + 48px);
    margin-left: -24px;
  }

  .essay-figure figcaption {
    padding-right: 24px;
    padding-left: 24px;
  }

  .workshop {
    width: calc(100% + 48px);
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

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

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