:root {
  --bg-color: #101010;
  --fg-color: #dddddd;
  --fg-color-light: #b3b3b3;
  --fg-color-highlight: #f4f4f4;
  --accent-color: #FF8744;
  --accent-color-hover: #9C86D6;
  --accent-gradient-color: linear-gradient(60deg,var(--accent-color), var(--accent-color-hover));
  --accent-gradient-color-reversed: linear-gradient(60deg,var(--accent-color-hover), var(--accent-color));

  --page-max-width: 60rem;
  --cols: 8;
  --grid-line-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 32.5rem) {
  :root {
    --cols: 10;
  }
}

@media (min-width: 64.0625rem) {
  :root {
    --cols: 12;
  }
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background: var(--fg-color-light);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--fg-color-light) transparent;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--fg-color);
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fg-color-highlight);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--bg-color);
  text-decoration: none;
  background: var(--accent-gradient-color-reversed);
}

a:focus-visible {
  text-decoration: none;
  outline: 0.125rem solid var(--accent-color-hover);
  outline-offset: 0.1875rem;
  border-radius: 0.125rem;
}

.se-logo {
  position: fixed;
  z-index: 10;
  top: 1.5rem;
  left: 2rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 0.75;
  margin-left: 0.25rem;
  transform: rotate(90deg);
  transform-origin: top left;
}

@media (min-width: 48rem) {
  .se-logo {
    font-size: 2rem;
  }
}

@media (min-width: 75rem) {
  .se-logo {
    left: calc(50% - min(100%, var(--page-max-width)) / 2 - min(100%, var(--page-max-width)) / var(--cols));
  }
}

.se-logo a {
  color: var(--fg-color-highlight);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.se-logo a:hover {
  color: var(--accent-color);
}

.se-logo a span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 5rem, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.loaded .se-logo a span {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1.5s cubic-bezier(0.18, 1, 0.24, 1);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .se-logo a span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.gitlab {
  background: var(--accent-gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .fake-cursor::after {
    content: "";
    z-index: 999;
    position: fixed;
    top: var(--y);
    left: var(--x);
    right: 0;
    bottom: 0;
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(127, 127, 127, 0.3);
    mix-blend-mode: difference;
    pointer-events: none;
    transition: 0.05s ease;
  }
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:has(img.photo) {
  text-decoration: none;
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    transparent calc(50% - 0.03125rem),
    var(--grid-line-color) calc(50% - 0.03125rem),
    var(--grid-line-color) calc(50% + 0.03125rem),
    transparent calc(50% + 0.03125rem)
  );
  background-size: calc(min(100%, var(--page-max-width)) / var(--cols)) 100%;
  background-position: center;
  background-repeat: repeat;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem 0 4rem;
  padding-inline: calc(min(100%, var(--page-max-width)) / var(--cols));
}

@media (min-width: 45rem) {
  .content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.main-inner {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.mt {
  margin-top: 3rem;
}

@media (min-width: 45rem) {
  .mt {
    margin-top: 1.5rem;
  }
}

.img-link {
  display: inline-block;
}

.img-link:focus-visible {
  border-radius: 50%;
}

img.photo {
  border-radius: 50%;
  display: block;
  width: 5rem;
  height: 5rem;
}

h1 {
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05rem;
  color: var(--fg-color-highlight);
  margin: 1.5rem 0;
}

@media (min-width: 45rem) {
  h1 {
    margin-top: 2.5rem;
  }
}

.blinking-cursor {
  display: inline-block;
  position: relative;
  top: 0.2em;
  width: 0.06em;
  height: 1em;
  margin-left: 0.06em;
  vertical-align: baseline;
  background: var(--accent-gradient-color);
  opacity: 0;
}

.blinking-cursor.is-visible {
  opacity: 1;
  animation: blinking-cursor 1s steps(1, end) infinite;
}

@keyframes blinking-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blinking-cursor {
    display: none;
  }
}

p {
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.03rem;
  margin: 0 0 2rem;
}

@media (min-width: 45rem) {
  p {
    font-size: 1.5rem;
  }
}

p.lead {
  line-height: 1.35;
}

@media (min-width: 45rem) {
  p.lead {
    font-size: 1.875rem;
  }
}

.muted {
  color: var(--fg-color-light);
  font-size: 1.125rem;
}

footer.muted p {
  margin: 0;
  font-size: 1.125rem;
}

.stats {
  margin-bottom: 1.5rem;
}

.stats dl.reveal {
  display: grid;

  grid-template-columns: repeat(calc(var(--cols) - 2), minmax(0, 1fr));
  margin: 0;
}

.stats .stat {
  display: flex;
  flex-direction: column;
  padding-right: 0.25rem;
  grid-column: span 2;
}

@media (min-width: 32.5rem) {

  .stats .stat:nth-child(1) { grid-column: span 3; }
  .stats .stat:nth-child(2) { grid-column: span 3; }
  .stats .stat:nth-child(3) { grid-column: span 2; }
}

@media (min-width: 64.0625rem) {

  .stats .stat:nth-child(1) { grid-column: span 3; }
  .stats .stat:nth-child(2) { grid-column: span 3; }
  .stats .stat:nth-child(3) { grid-column: span 3; }
}

.stats dt {
  align-self: flex-start;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03rem;
  background: var(--accent-gradient-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 48rem) {
  .stats dt {
    font-size: 2.5rem;
  }
}

.stats dd {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  color: var(--fg-color-light);
}

@media (min-width: 45rem) {
  .stats dd {
    font-size: 1.5rem;
  }
}

.ui-polish {
  position: relative;
  margin: 0 0 3rem;
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ui-polish.is-visible {
  opacity: 1;
  transform: none;
}

.ui-polish__intro {
  font-weight: 500;
  margin-top: 1rem;
  margin-right: 3rem;
}

@media (min-width: 64rem) {
  .ui-polish__intro {
    margin-right: 12rem;
  }
}

.ui-polish__arrow {
  position: absolute;
  top: -4rem;
  right: -2rem;
  height: 5rem;
  width: auto;
  color: var(--fg-color-light);
  transform: rotate(30deg);
  pointer-events: none;
}

@media (min-width: 48rem) {
  .ui-polish__arrow {
    top: -5rem;
    height: 6rem;
  }
}

@media (min-width: 64rem) {
  .ui-polish__arrow {
    right: 6rem;
    height: 7rem;
  }
}

.ui-polish__list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .ui-polish__list {
    grid-template-columns: 1fr 1fr;
    gap: 160px;
    align-items: end;
    margin-inline: -10%;
  }
}

.mr {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hand-drawn marker line at the left of each item */
.mr__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1rem;
  width: 0.6rem;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--fg-color-light);
}

.mr__marker path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mr__title {
  font-size: 1.25rem;
}

.mr__title:not(:focus-visible, :hover, :active) {
  text-decoration: none;
}

.mr__meta {
  margin: -0.25rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-color-light);
}

.ba-slider {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  max-height: 480px;
  border-radius: 0.75rem;
  background: #fff;
  touch-action: none;
}

.ba-img {
  display: block;
  width: 100%;
  height: auto;
}

.ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-after .ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--bg-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.ba-line::before,
.ba-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  transform: translateY(-50%);
}

.ba-line::before {
  border-right: 0.5rem solid var(--bg-color);
  right: 0.5rem;
}

.ba-line::after {
  border-left: 0.5rem solid var(--bg-color);
  left: 0.5rem;
}

.ba-label {
  position: absolute;
  bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem;
  border-radius: 0.25rem;
  background: var(--bg-color);
  color: var(--fg-color);
  pointer-events: none;
}

.ba-label--before { left: 0.5rem; }
.ba-label--after { right: 0.5rem; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.social {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.social .social-list.reveal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social .sep {
  color: var(--fg-color-light);
  user-select: none;
}

.reveal-block {
  padding: 0.5rem;
  margin-inline: -0.5rem;
  overflow: hidden;
}

.reveal-block .reveal {
  display: block;
  opacity: 0;
  transform: translate3d(0, 3.75rem, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.loaded .reveal-block .reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 1.5s ease,
    transform 1s cubic-bezier(0.18, 1, 0.24, 1);
  will-change: auto;
}

.loaded .main-inner .reveal-block:nth-child(1) .reveal { transition-delay: 0s; }
.loaded .main-inner .reveal-block:nth-child(2) .reveal { transition-delay: 0.15s; }
.loaded .main-inner .reveal-block:nth-child(3) .reveal { transition-delay: 0.3s; }
.loaded .main-inner .reveal-block:nth-child(4) .reveal { transition-delay: 0.45s; }
.loaded .main-inner .reveal-block:nth-child(5) .reveal { transition-delay: 0.6s; }
.loaded .main-inner .reveal-block:nth-child(6) .reveal { transition-delay: 0.75s; }
.loaded .main-inner .reveal-block:nth-child(7) .reveal { transition-delay: 0.9s; }
.loaded .main-inner .reveal-block:nth-child(8) .reveal { transition-delay: 1.05s; }
.loaded .main-inner .reveal-block:nth-child(9) .reveal { transition-delay: 1.2s; }
.loaded .content > footer.reveal-block .reveal { transition-delay: 1.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-block .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
