@font-face {
  font-family: Inter;
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Spectral;
  src: url('/fonts/spectral-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Spectral;
  src: url('/fonts/spectral-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --black: #000;
  --soft: #707070;
  --line: #dedede;
  --page: #fff;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Spectral, Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--black);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1240px);
  height: 58px;
  margin: 0 auto;
  padding: 0 28px;
}

.wordmark {
  color: #111;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
}

.wordmark span {
  color: #8a8a8a;
  font-size: .72em;
  letter-spacing: 0;
}

.share-stack {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 500 12px/1 var(--ui);
  cursor: pointer;
}

.share-stack:active {
  transform: scale(.97);
}

.stack-article {
  width: 100%;
}

.article-head {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto;
  padding: clamp(104px, 14vw, 176px) 0 clamp(76px, 9vw, 112px);
  text-align: center;
}

.eyebrow,
.book-number {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-head h1 {
  max-width: 920px;
  margin: 22px auto 0;
  font-size: clamp(52px, 7.2vw, 92px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .96;
  text-wrap: balance;
}

.article-deck {
  max-width: 680px;
  margin: 31px auto 0;
  color: #3e3e3e;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.45;
  text-wrap: balance;
}

.byline {
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.byline a {
  color: #111;
  text-underline-offset: 3px;
}

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

.article-hero picture,
.article-hero img {
  display: block;
  width: 100%;
}

.article-hero img {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #101415;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .12);
  object-fit: cover;
}

.article-hero figcaption {
  margin-top: 13px;
  color: #8a8a8a;
  font-size: 10px;
  letter-spacing: .025em;
  line-height: 1.5;
  text-align: right;
}

.article-intro {
  width: min(calc(100% - 48px), 760px);
  margin: clamp(84px, 10vw, 128px) auto clamp(180px, 21vw, 260px);
}

.article-intro > p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: -.014em;
  line-height: 1.58;
}

.article-intro > p + p {
  margin-top: 24px;
}

.article-intro .intro-lede {
  color: #111;
  font-size: clamp(26px, 3.4vw, 37px);
  letter-spacing: -.03em;
  line-height: 1.35;
}

.article-intro .selection-note {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #525252;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.65;
}

.selection-note strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-list {
  width: 100%;
}

.book-entry {
  scroll-margin-top: 40px;
  padding: 0 24px clamp(180px, 24vw, 300px);
}

.book-copy {
  width: min(100%, 780px);
  margin: 0 auto clamp(66px, 9vw, 100px);
  text-align: center;
}

.book-copy h2 {
  margin: 17px 0 0;
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
}

.book-credit {
  margin: 15px 0 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.book-credit span {
  padding-inline: .45em;
}

.book-copy blockquote {
  max-width: 760px;
  margin: clamp(44px, 6vw, 68px) auto 0;
  padding: 0;
  border: 0;
}

.book-copy blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.35;
  text-wrap: pretty;
}

.book-copy blockquote cite {
  display: block;
  margin-top: 24px;
  color: var(--soft);
  font-family: var(--ui);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.opening-note {
  width: min(100%, 630px);
  margin: clamp(48px, 6vw, 68px) auto 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.opening-note .opening-note-label {
  margin: 0;
  color: #5f5f5f;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.opening-note > p:last-child {
  margin: 11px 0 0;
  color: #252525;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -.012em;
  line-height: 1.55;
}

.reader-fallback {
  width: min(calc(100% - 48px), 680px);
  margin: 0 auto;
  padding: 64px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.reader-fallback a {
  text-underline-offset: 4px;
}

.article-outro {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;
  padding: 0 0 clamp(150px, 18vw, 230px);
  text-align: center;
}

.article-outro h2 {
  margin: 19px auto 0;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
}

.article-outro > p:not(.eyebrow) {
  max-width: 520px;
  margin: 27px auto 0;
  color: #555;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.continue-feed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 34px;
  padding: 0 25px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.continue-feed:active {
  transform: scale(.98);
}

.stack-continue {
  width: min(calc(100% - 48px), 480px);
  margin: 0 auto;
  padding: 0 0 clamp(150px, 18vw, 220px);
}

.stack-feed-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(590px, 78svh, 740px);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  background: #f5efe3;
  box-shadow: 0 34px 90px -54px rgba(0, 0, 0, .42), 0 8px 32px -26px rgba(0, 0, 0, .22);
  color: #201c16;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stack-feed-card:hover,
.stack-feed-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 42px 100px -54px rgba(0, 0, 0, .46), 0 12px 36px -26px rgba(0, 0, 0, .25);
}

.stack-feed-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.stack-feed-card:active {
  transform: scale(.98);
}

.stack-feed-card-wordmark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -.025em;
}

.stack-feed-card-wordmark > span {
  color: #817a6f;
}

.stack-feed-card-copy {
  display: block;
  margin: auto 0;
}

.stack-feed-card-copy strong,
.stack-feed-card-copy > span {
  display: block;
}

.stack-feed-card-copy strong {
  max-width: 370px;
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .96;
}

.stack-feed-card-copy > span {
  max-width: 350px;
  margin-top: 25px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 29px);
  letter-spacing: -.022em;
  line-height: 1.3;
  text-wrap: balance;
}

.stack-feed-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.site-foot nav {
  display: flex;
  gap: 19px;
}

.site-foot nav a {
  color: var(--soft);
  font-size: 11px;
  text-decoration: none;
}

.site-foot nav a:hover {
  color: #111;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 11px 17px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 600px) {
  .site-head {
    height: 52px;
    padding-inline: 18px;
  }

  .article-head {
    width: min(calc(100% - 36px), 980px);
    padding-top: 96px;
    padding-bottom: 70px;
  }

  .article-head h1 {
    margin-top: 18px;
    font-size: clamp(43px, 13.4vw, 58px);
    letter-spacing: -.06em;
    line-height: .98;
  }

  .article-deck {
    max-width: 330px;
    margin-top: 25px;
    font-size: 18px;
  }

  .byline {
    max-width: 270px;
    margin: 27px auto 0;
    font-size: 14px;
  }

  .article-hero {
    width: 100%;
  }

  .article-hero img {
    border-radius: 0;
    box-shadow: none;
  }

  .article-hero figcaption {
    margin-top: 11px;
    padding-inline: 18px;
  }

  .article-intro {
    width: calc(100% - 40px);
    margin-top: 68px;
    margin-bottom: 160px;
  }

  .article-intro > p {
    font-size: 18px;
    line-height: 1.62;
  }

  .article-intro .intro-lede {
    font-size: 27px;
    line-height: 1.38;
  }

  .article-intro .selection-note {
    margin-top: 38px;
    font-size: 12.5px;
  }

  .book-entry {
    padding: 0 0 190px;
  }

  .book-copy {
    width: calc(100% - 40px);
    margin-bottom: 60px;
  }

  .book-copy h2 {
    font-size: clamp(42px, 12.6vw, 57px);
  }

  .book-copy blockquote {
    margin-top: 42px;
  }

  .book-copy blockquote p {
    font-size: 23px;
    line-height: 1.37;
  }

  .opening-note {
    width: calc(100% - 8px);
    margin-top: 48px;
  }

  .opening-note > p:last-child {
    font-size: 18px;
    line-height: 1.56;
  }

  .article-outro {
    width: calc(100% - 40px);
    padding-bottom: 150px;
  }

  .article-outro h2 {
    font-size: 47px;
  }

  .article-outro > p:not(.eyebrow) {
    font-size: 18px;
  }

  .stack-continue {
    width: calc(100% - 40px);
    padding-bottom: 145px;
  }

  .stack-feed-card {
    padding: 28px;
  }

  .site-foot {
    width: calc(100% - 36px);
    align-items: flex-start;
  }

  .site-foot nav {
    gap: 14px;
  }
}

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

  .toast {
    transition: none;
  }

  .stack-feed-card {
    transition: none;
  }
}
