@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --pearl: #F5F5F1;
  --ink: #15151B;
  --cobalt: #3547CA;
  --cyan: #0FB6E8;
  --white: #FFFFFF;
  --muted-ink: #55555D;
  --line: rgba(21, 21, 27, 0.18);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 65ch;
  --font: "Manrope", Arial, Helvetica, sans-serif;
}

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

html {
  background: var(--pearl);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: 1376px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.site-header {
  padding-block: clamp(1.15rem, 2vw, 1.8rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: clamp(8.25rem, 12vw, 10.45rem);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  font-size: 0.875rem;
  font-weight: 650;
}

.site-nav a {
  padding-block: 0.25rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(12.5rem, 17vw, 15.5rem);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(3.25rem, 6vw, 5.75rem);
  padding-bottom: clamp(3.75rem, 7vw, 6.5rem);
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 11.5vw, 6.8rem);
  font-weight: 780;
  letter-spacing: -0.072em;
  line-height: 0.93;
  overflow-wrap: break-word;
}

.hero__title-line {
  display: block;
}

.hero__deck {
  max-width: 28ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-wrap: balance;
}

.author {
  width: 100%;
  max-width: 15.5rem;
  margin: 0;
  justify-self: end;
}

.author__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E4E1D9;
}

.author__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.author__byline {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.author__name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.author__role {
  color: var(--muted-ink);
  font-size: 0.78rem;
  font-weight: 520;
  line-height: 1.4;
}

.essay-layout {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.75rem);
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(5.5rem, 10vw, 9.5rem);
  border-top: 1px solid var(--line);
}

.toc {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.toc__title {
  margin: 0 0 1.15rem;
  color: var(--cobalt);
  font-size: 0.78rem;
  font-weight: 720;
}

.toc ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding-block: 0.28rem;
  font-size: 0.98rem;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.essay-body {
  min-width: 0;
}

.essay-body section {
  scroll-margin-top: 1.75rem;
}

.essay-body section + section {
  margin-top: clamp(5rem, 9vw, 8rem);
}

.essay-body h2 {
  max-width: 14ch;
  margin: 0 0 clamp(1.75rem, 3vw, 2.6rem);
  font-size: clamp(2.9rem, 5.2vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.prose {
  max-width: var(--measure);
}

.prose p,
.section-intro,
.babyrock__close {
  margin: 0 0 1.35rem;
}

.prose p:last-child,
.babyrock__close:last-child {
  margin-bottom: 0;
}

.prose .lede,
.section-intro {
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  font-weight: 510;
  letter-spacing: -0.018em;
  line-height: 1.48;
}

.prose strong {
  font-weight: 750;
}

.prose .signal {
  max-width: 28ch;
  margin-top: clamp(2.4rem, 4vw, 3.5rem);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.shift {
  max-width: 56rem;
  margin: clamp(4.5rem, 8vw, 7rem) 0;
  padding-top: clamp(1.15rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}

.shift__caption {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.shift__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.shift__era {
  min-width: 0;
}

.shift__period,
.shift__focus,
.shift__definition,
.shift__support {
  margin: 0;
}

.shift__period {
  color: var(--muted-ink);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.shift__focus {
  margin-top: clamp(1rem, 2vw, 1.35rem);
  font-size: clamp(2.1rem, 4.3vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.95;
  overflow-wrap: break-word;
}

.shift__definition {
  max-width: 22ch;
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  font-weight: 580;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.shift__support {
  display: grid;
  gap: 0.38rem;
  margin-top: 1.4rem;
  padding: 0;
  color: var(--muted-ink);
  font-size: 0.94rem;
  line-height: 1.45;
  list-style: none;
}

.principles,
.edges {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles {
  max-width: 51rem;
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
}

.principles li {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
}

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

.principles li::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.55rem;
  background: var(--cyan);
}

.principles p {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.principles li:nth-child(2) p {
  max-width: 46ch;
}

.edges {
  max-width: 53rem;
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  counter-reset: edge;
}

.edges li {
  display: grid;
  grid-template-columns: clamp(2.4rem, 5vw, 4.2rem) minmax(0, 1fr);
  gap: clamp(0.8rem, 2vw, 1.5rem);
  padding: clamp(1.4rem, 2.8vw, 2rem) 0;
  border-top: 1px solid var(--line);
  counter-increment: edge;
}

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

.edges li::before {
  content: counter(edge);
  color: var(--cobalt);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 420;
  line-height: 1;
}

.edges p {
  max-width: 60ch;
  margin: 0;
  font-size: clamp(1.04rem, 1.45vw, 1.16rem);
  line-height: 1.62;
}

.edges a {
  color: var(--cobalt);
}

.babyrock__close {
  max-width: 48ch;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  font-size: clamp(1.2rem, 1.9vw, 1.42rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.footer-contact {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 690;
  letter-spacing: -0.025em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.footer-legal {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: start;
    gap: 2.25rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 10vw, 6rem);
  }

  .author {
    max-width: 12rem;
  }

  .essay-layout {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .toc {
    position: static;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
  }

  .toc__title {
    margin-bottom: 0.65rem;
  }

  .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.15rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.15rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 3.75rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 13.5vw, 5rem);
  }

  .hero__deck {
    max-width: 31ch;
    font-size: clamp(1.15rem, 4.7vw, 1.35rem);
  }

  .author {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 27rem;
    justify-self: start;
  }

  .author__portrait {
    width: 4.5rem;
  }

  .author__byline {
    gap: 0.1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .author__name {
    font-size: 0.9rem;
  }

  .author__role {
    font-size: 0.8rem;
  }

  .essay-layout {
    padding-top: 2rem;
  }

  .shift__comparison {
    grid-template-columns: 1fr;
    row-gap: clamp(2rem, 8vw, 3rem);
  }

  .shift__focus {
    font-size: clamp(2.4rem, 10.5vw, 3rem);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  html,
  body {
    background: var(--white);
  }

  .skip-link,
  .site-nav,
  .toc {
    display: none;
  }

  .shell {
    max-width: none;
    padding-inline: 0;
  }

  .site-header {
    padding-top: 0;
  }

  .hero {
    display: block;
    padding-block: 24mm 18mm;
  }

  .hero h1 {
    font-size: 48pt;
  }

  .hero__deck {
    max-width: 38ch;
    margin-top: 8mm;
  }

  .author {
    width: 42mm;
    max-width: none;
    margin-top: 10mm;
  }

  .essay-layout {
    display: block;
    padding-top: 0;
    border-top: 0;
  }

  .essay-body section + section,
  .shift {
    margin-top: 16mm;
  }

  .shift {
    border-color: var(--ink);
  }

  .site-footer {
    margin-top: 16mm;
  }
}
