@font-face {
  font-family: "Benji Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://benji.org/_next/static/media/e4af272ccee01ff0-s.p.woff2") format("woff2");
}

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

html {
  --body-bg: #fdfdfc;
  --body-color: #111;
  --focus-color: rgba(0, 122, 255, 0.5);
  background: var(--body-bg);
  color: var(--body-color);
  min-height: 100%;
  overflow-anchor: none;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  background: var(--body-bg);
  font-family: "Benji Inter", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 440;
  margin: 0;
  min-height: 100%;
  overflow-y: auto;
  text-rendering: optimizeLegibility;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body.home-page {
  overflow-y: hidden;
}

@media screen and (min-width: 769px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    height: 0;
    width: 0;
  }
}

::selection {
  background: #ededed;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: inline-block;
  height: auto;
  max-width: 100%;
}

.site-shell {
  margin: 0 auto;
  max-width: 36.375rem;
  padding: 5rem 1rem 2.5rem;
}

.site-shell::before {
  background: linear-gradient(
    180deg,
    #fff 0,
    hsla(0, 0%, 100%, 0.738) 19%,
    hsla(0, 0%, 100%, 0.541) 34%,
    hsla(0, 0%, 100%, 0.382) 47%,
    hsla(0, 0%, 100%, 0.278) 56.5%,
    hsla(0, 0%, 100%, 0.194) 65%,
    hsla(0, 0%, 100%, 0.126) 73%,
    hsla(0, 0%, 100%, 0.075) 80.2%,
    hsla(0, 0%, 100%, 0.042) 86.1%,
    hsla(0, 0%, 100%, 0.021) 91%,
    hsla(0, 0%, 100%, 0.008) 95.2%,
    hsla(0, 0%, 100%, 0.002) 98.2%,
    hsla(0, 0%, 100%, 0)
  );
  content: "";
  height: 8rem;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9;
}

.homepage {
  display: block;
}

h1,
h2,
h3,
p,
ul,
li,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

@keyframes staggerIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.homepage > .article > *,
.homepage > .post-list,
.homepage > .footer,
.article-layout > .article > *,
.article-layout > .article-aside {
  animation: staggerIn 0.5s ease both;
}

.homepage > .article > :first-child {
  animation-delay: 0s;
}

.homepage > .article > :nth-child(2) {
  animation-delay: 0.05s;
}

.homepage > .article > :nth-child(3) {
  animation-delay: 0.1s;
}

.homepage > .article > :nth-child(4) {
  animation-delay: 0.15s;
}

.homepage > .article > :nth-child(5) {
  animation-delay: 0.2s;
}

.homepage > .article > :nth-child(6) {
  animation-delay: 0.25s;
}

.homepage > .article > :nth-child(7) {
  animation-delay: 0.3s;
}

.homepage > .post-list {
  animation-delay: 0.45s;
}

.homepage > .footer {
  animation-delay: 0.55s;
}

.article-layout > .article > :first-child {
  animation-delay: 0s;
}

.article-layout > .article > :nth-child(2) {
  animation-delay: 0.05s;
}

.article-layout > .article > :nth-child(3) {
  animation-delay: 0.1s;
}

.article-layout > .article > :nth-child(4) {
  animation-delay: 0.15s;
}

.article-layout > .article > :nth-child(5) {
  animation-delay: 0.2s;
}

.article-layout > .article > :nth-child(6) {
  animation-delay: 0.25s;
}

.article-layout > .article > :nth-child(n + 7) {
  animation-delay: 0.3s;
}

.article-layout {
  position: relative;
}

.article-aside {
  left: 5rem;
  position: fixed;
  top: 5rem;
}

.back-button {
  align-items: center;
  color: rgba(0, 0, 0, 0.4);
  display: flex;
  font-size: 0.875rem;
  font-weight: 440;
  gap: 0.25rem;
  letter-spacing: -0.00563rem;
  line-height: 1.25rem;
  padding: 0.25rem 0;
  transition: color 0.1s ease;
}

.back-button:hover {
  color: rgba(0, 0, 0, 0.8);
}

.article-index {
  opacity: 1;
  padding: 1.875rem 0 0;
  transition: opacity 0.4s ease;
}

.article-aside-title {
  color: hsla(0, 0%, 7%, 0.4);
  display: block;
  font-size: 0.8125rem;
  font-weight: 440;
  letter-spacing: -0.0025rem;
  line-height: 1.2;
  margin-top: 1.875rem;
  max-width: 10rem;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: color 0.1s ease, opacity 0.18s ease, transform 0.18s ease;
}

.article-aside-title:hover {
  color: hsla(0, 0%, 7%, 0.8);
}

.article-aside-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-aside-title + .article-index {
  padding-top: 1rem;
}

.article-index ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 10rem;
  padding: 0;
  position: relative;
}

.article-index li {
  display: block;
  position: relative;
}

.article-index a {
  color: hsla(0, 0%, 7%, 0.4);
  display: block;
  font-size: 0.8125rem;
  font-weight: 440;
  letter-spacing: -0.0025rem;
  line-height: 1.2;
  transition: color 0.1s ease;
}

.article-index a:hover,
.article-index li[data-active="true"] a {
  color: hsla(0, 0%, 7%, 0.8);
}

.article {
  max-width: 70ch;
}

.article > header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 0.5rem;
}

.article > header h1,
.article > header time,
.article p,
.article li {
  font-size: 0.875rem;
  font-weight: 440;
  letter-spacing: -0.00563rem;
  line-height: 1.25rem;
}

.article > header h1 {
  color: #111;
  font-weight: 440;
}

.article > header time {
  color: rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
}

.article > p {
  padding-top: 1rem;
}

.article h2 {
  color: #111;
  display: flex;
  font-size: 0.875rem;
  font-weight: 540;
  letter-spacing: -0.00563rem;
  line-height: 1.25rem;
  padding-top: 2.25rem;
  text-wrap: balance;
}

.article ul {
  list-style: none;
  padding: 0.5rem 0 1rem 1.25rem;
}

.article li {
  padding: 0 0 0.5rem 0.75rem;
  position: relative;
}

.article li::before {
  background: #b3b3b3;
  border-radius: 50%;
  content: "";
  height: 0.25rem;
  position: absolute;
  right: 100%;
  top: 0.675em;
  width: 0.25rem;
}

.basic-link {
  color: inherit;
  display: inline;
  font-weight: inherit;
  line-height: inherit;
  position: relative;
  transition: all 0.2s ease;
}

.basic-link::before {
  background: #d9d9d9;
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: inherit;
}

.basic-link:hover::before {
  background: #666;
}

.basic-link:focus-visible {
  border-radius: 2px;
  margin: 0 -2px;
  outline: 2px solid var(--focus-color);
  padding: 0 2px;
  transition: none;
}

.post-list {
  padding: 3rem 0 0;
}

.section-title {
  border-bottom: 1px solid #f2f2f2;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  font-weight: 440;
  letter-spacing: -0.00563rem;
  line-height: normal;
  padding-bottom: 0.5rem;
}

.post-list > ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.post-list > ul > li {
  border-bottom: 1px solid #f2f2f2;
}

.post-list > ul > li:last-child {
  border-bottom: none;
}

.post-list > ul > li > ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.post-list > ul > li > ul > li:last-child > a::after {
  display: none;
}

.post-list > ul > li > ul > li:first-child > a > time > span:last-child {
  visibility: visible;
}

.post-list a {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.735rem 2rem 0.735rem 6.75rem;
  position: relative;
}

.post-list a::after {
  border-bottom: 1px solid #f2f2f2;
  bottom: 0;
  content: "";
  left: 6.75rem;
  position: absolute;
  right: 0;
}

.post-list h2 {
  align-items: center;
  color: #111;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 440;
  gap: 0.5rem;
  letter-spacing: -0.00563rem;
  line-height: 1.25rem;
  transition: opacity 0.14s ease;
}

.post-list time {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 440;
  letter-spacing: -0.00563rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.post-list time span {
  display: inline-block;
  transition: opacity 0.14s ease;
}

.post-list time span:first-child,
.post-list time span:nth-child(2) {
  height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 0;
}

.post-list time span:last-child {
  left: 0;
  position: absolute;
  visibility: hidden;
}

@media screen and (min-width: 520px) {
  .post-list > ul:hover h2,
  .post-list > ul:hover a.external-row::before {
    opacity: 0.3;
  }

  .post-list > ul > li > ul > li > a:hover h2,
  .post-list > ul > li > ul > li > a.external-row:hover::before {
    opacity: 1;
  }
}

.post-list a:hover h2 {
  opacity: 1;
}

.post-list a.external-row::before {
  color: rgba(0, 0, 0, 0.4);
  content: "↗";
  display: block;
  font-size: 0.8125rem;
  font-weight: 440;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 0.985rem;
  transform: translateY(-1px);
  transition: color 0.14s ease, opacity 0.14s ease;
}

.post-list a.external-row:hover::before {
  color: #111;
}

.new-label {
  color: rgb(255, 0, 170);
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 440;
  margin-left: 0.75rem;
  margin-right: 0.15rem;
  position: relative;
}

.new-label::before {
  display: none;
}

.new-label svg {
  display: block;
  height: 1.95rem;
  left: 50%;
  max-width: none;
  overflow: visible;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 3.85rem;
}

.new-line {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.72;
  vector-effect: non-scaling-stroke;
}

.new-line-one {
  animation: drawNew 0.95s linear 0.85s both, newLineTremble 0.38s steps(2, end) 0.85s 3;
  opacity: 0.95;
}

.new-line-two {
  animation: drawNew 1.05s linear 1.32s both, newLineTrembleAlt 0.42s steps(2, end) 1.32s 3;
  opacity: 0.72;
}

.case-figure {
  display: block;
  margin: 1rem auto 0;
}

.case-figure img {
  border-radius: 0.5rem;
  display: block;
  width: 100%;
}

.case-figure + .case-figure {
  margin-top: 0.625rem;
}

.back-link {
  display: none;
}

.footer {
  padding: 2.5rem 0 5rem;
}

.footer::before {
  background: #ededed;
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 2.375rem;
  width: 3.125rem;
}

.footer-inner p {
  align-items: center;
  color: rgba(0, 0, 0, 0.4);
  display: flex;
  font-size: 0.8125rem;
  font-weight: 440;
  gap: 0.35rem;
  letter-spacing: -0.0025rem;
}

.clock {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clock.is-visible {
  opacity: 1;
}

@keyframes drawNew {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes newLineTremble {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0.35px, -0.2px);
  }
}

@keyframes newLineTrembleAlt {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-0.25px, 0.3px);
  }
}

@media screen and (max-width: 768px) {
  .site-shell {
    padding: 2rem 1.5rem 2.5rem;
  }

  .site-shell::before {
    display: none;
  }
}

@media screen and (max-width: 1080px) {
  .article-aside {
    padding: 0 0 1rem;
    position: static;
  }

  .article-index {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .post-list a {
    padding-left: 3rem;
    padding-right: 1.5rem;
  }

  .post-list a::after {
    left: 3rem;
  }

  .post-list time span:last-child {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
