:root {
  --bg: #222;
  --box: #191919;
  --box-hover: #111;
  --text: #fefefe;
  --text-muted: rgb(128, 128, 128);
  --dark: rgb(50, 50, 50);
  --accent: #f07077;
  --vr: 20px;
  --focus: rgba(255, 255, 255, 0.85);
  --grid-gap: 20px;
  --grid-max-width: 1740px;
  --duration: 360ms;
  --animation-step: 100ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --intro-menu-delay: 1800ms;
  --intro-step: 25ms;
  --intro-dur: 1000ms;
  --type-label-size: clamp(0.75rem, 1.4vw, 1rem);
  --type-label-line: 1;
  --type-label-weight: 500;
  --type-label-tracking: 0.08em;
  --type-body-sm-size: 0.88rem;
  --type-body-size: 1rem;
  --type-reading-size: clamp(0.88rem, 4.2vw, 1.125rem);
  --type-body-line: 1.61;
  --type-title-card-size: clamp(22px, 2.6vw, 2.3rem);
  --type-title-card-line: 1.2;
  --type-title-card-weight: 500;
  --type-title-section-size: clamp(32px, 3vw, 40px);
  --type-title-section-size-mobile: clamp(28px, 6.8vw, 32px);
  --type-title-section-line: 1;
  --type-title-section-weight: 500;
  --type-title-section-tracking: -0.02em;
  --type-lead-size: clamp(1.5rem, 2.7vw, 1.8rem);
  --type-lead-size-mobile: clamp(1.25rem, 5.4vw, 1.5rem);
  --type-lead-line: 1.2;
  --content-h1-size: clamp(2rem, 7vw, 4rem);
  --content-h2-size: clamp(1.8rem, 4vw, 2.5rem);
  --content-h3-size: clamp(1.35rem, 2.3vw, 1.75rem);
  --content-h4-size: clamp(1rem, 4.2vw, 1.125rem);
  --content-rhythm: calc(var(--type-reading-size) * var(--type-body-line));
  --content-heading-line: 1.2;
  --content-heading-weight: 600;
  --content-heading-tracking: -0.01em;
  --content-caption-size: var(--type-body-sm-size);
  --content-quote-size: clamp(1.2rem, 5vw, 1.75rem);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: "Involve";
  src:
    url("../fonts/Involve-Regular.woff2") format("woff2"),
    url("../fonts/Involve-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Involve";
  src:
    url("../fonts/Involve-SemiBold.woff2") format("woff2"),
    url("../fonts/Involve-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Involve, sans-serif;
}

body.light-scheme {
  --bg: #f7f6f5;
  --box: #ffffff;
  --box-hover: #f4f4f4;
  --text: #2d2d2d;
  --text-muted: rgb(180, 180, 180);
  --dark: rgb(220, 220, 220);
  --accent: #f07077;
  --focus: rgba(45, 45, 45, 0.85);
}

.content__light {
  padding: 5rem 0;
}
.content__light .journal-post__toc-list {
  padding-bottom: 5rem;
}

.type-label {
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
}

.type-body-sm {
  font-size: var(--type-body-sm-size);
  line-height: var(--type-body-line);
}

.type-body {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

.type-reading {
  font-size: var(--type-reading-size);
  line-height: var(--type-body-line);
}

.type-title-card {
  font-size: var(--type-title-card-size);
  line-height: var(--type-title-card-line);
  font-weight: var(--type-title-card-weight);
}

.type-title-section {
  font-size: var(--type-title-section-size);
  line-height: var(--type-title-section-line);
  font-weight: var(--type-title-section-weight);
  letter-spacing: var(--type-title-section-tracking);
}

.type-lead {
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-line);
}

.lead {
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-line);
  font-weight: 700;
  max-width: 42ch;
}

@media (max-width: 767px) {
  .type-title-section {
    font-size: var(--type-title-section-size-mobile);
  }
}

@media (max-width: 499px) {
  .type-lead {
    font-size: var(--type-lead-size-mobile);
  }

  .lead {
    font-size: var(--type-lead-size-mobile);
    max-width: 42ch;
  }
}

main,
.layout {
  position: relative;
  z-index: 10;
}

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

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

h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 8px 10px;
  z-index: 99999;
}
.skip-link:focus {
  left: 8px;
}

.accent-gradient {
  background: #ffffff;
  background: linear-gradient(
    120deg,
    rgba(240, 112, 119, 1) 16%,
    rgba(245, 194, 201, 1)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.shine {
  color: var(--text);
}

.shine:hover {
  color: var(--accent);
}

@supports (-webkit-background-clip: text) {
  .shine:hover {
    background-image: linear-gradient(
      90deg,
      var(--accent) 0%,
      var(--accent) 32%,
      var(--text) 37%,
      var(--text) 39%,
      var(--accent) 44%,
      var(--accent) 68%,
      var(--text) 75%,
      var(--text) 100%
    );

    background-size: 400% 100%;
    background-position: 100% 50%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineAccentText 6s cubic-bezier(0.2, 0, 0.2, 1) infinite;
    will-change: background-position;
  }
}

@keyframes shineAccentText {
  0% {
    background-position: 100% 50%;
  }
  33.333% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.pin-wrap.is-pinned {
  opacity: 1;
  transition:
    top 280ms var(--ease),
    transform 280ms var(--ease),
    opacity 2000ms var(--ease);
}

.pin-wrap.is-pinned-end {
  opacity: 0.2;
}

@media (prefers-reduced-motion: reduce) {
  .fade-enter-active,
  .fade-leave-active,
  .transition-image,
  .hero-image {
    transition: none !important;
  }

  .pin-wrap.is-pinned {
    transition: none;
  }
}

.layout {
  padding: 200px 20px;
}
.fade-enter {
  opacity: 0;
}
.fade-enter-active {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.fade-leave {
  opacity: 1;
}
.fade-leave-active {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 0;
  background-color: #292929;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
@keyframes slide-close {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}
.slide-close {
  animation: slide-close 0.6s forwards;
}
@keyframes slide-open {
  from {
    width: 100%;
    left: 0;
  }
  to {
    width: 0;
    left: 100%;
  }
}
.slide-open {
  animation: slide-open 0.6s forwards;
}

.transition-image {
  position: fixed;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 90;
  transition: all 0.65s ease;
  pointer-events: none;
}
.bg-layer {
  position: fixed;
  width: 1200px;
  height: 1200px;
  border: 1px solid var(--dark);
  border-radius: 400px;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform-origin: top left;
  z-index: 1;
  will-change: transform, border-radius;
}

@media (max-width: 990px) {
  .bg-layer {
    width: clamp(900px, 90vw, 1200px);
    height: clamp(900px, 90vw, 1200px);
    border-radius: clamp(300px, 22vw, 400px);
    top: 90%;
    left: 120%;
  }
}
