@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Charon Mono";
  src: url("fonts/iosevka-charon-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Iosevka Charon Mono";
  src: url("fonts/iosevka-charon-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: radial-gradient(1200px 760px at 50% 42%, #ffffff 0%, #eff1f5 48%, #dce0e8 100%);
  --page-solid: #dce0e8;
  --text: #4c4f69;
  --sub: #5c5f77;
  --shell: linear-gradient(180deg, #ffffff 0%, #f6f7fa 8%, #e6e9ef 100%);
  --shell-shadow: inset 0 2px 1px #ffffff, inset 0 -2px 3px rgba(76, 79, 105, 0.18), 0 2px 0 #d5d9e2, 0 4px 0 #ccd0da, 0 6px 0 #c4c8d3, 0 8px 0 #bcc0cc, 0 10px 0 #b2b6c3, 0 12px 0 #a8acba, 0 30px 40px -8px rgba(76, 79, 105, 0.42), 0 70px 90px -20px rgba(76, 79, 105, 0.36);
  --track: #ccd0da;
  --accent: #8839ef;
  --accent-text: #ffffff;
  --s-base: #1e1e2e;
  --s-mantle: #181825;
  --s-surface0: #313244;
  --s-text: #cdd6f4;
  --s-sub: #a6adc8;
  --s-note: #9399b2;
  --s-accent: #cba6f7;
  --plastic: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.35);
  --mono: "Iosevka Charon Mono", ui-monospace, Menlo, Consolas, monospace;
}

:root[data-theme="mocha"] {
  color-scheme: dark;
  --page: radial-gradient(1200px 760px at 50% 42%, #2a2a40 0%, #1a1a29 48%, #11111b 100%);
  --page-solid: #11111b;
  --text: #cdd6f4;
  --sub: #a6adc8;
  --shell: linear-gradient(180deg, #4b4d63 0%, #36374b 8%, #2a2b3d 100%);
  --shell-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.4), inset 3px 0 3px -2px rgba(255, 255, 255, 0.12), inset -3px 0 3px -2px rgba(255, 255, 255, 0.12), 0 2px 0 #232436, 0 4px 0 #1f2031, 0 6px 0 #1b1c2c, 0 8px 0 #181825, 0 10px 0 #151521, 0 12px 0 #12121c, 0 30px 40px -8px rgba(0, 0, 0, 0.6), 0 70px 90px -20px rgba(0, 0, 0, 0.55);
  --track: rgba(17, 17, 27, 0.5);
  --accent: #cba6f7;
  --accent-text: #11111b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="latte"]) {
    color-scheme: dark;
    --page: radial-gradient(1200px 760px at 50% 42%, #2a2a40 0%, #1a1a29 48%, #11111b 100%);
    --page-solid: #11111b;
    --text: #cdd6f4;
    --sub: #a6adc8;
    --shell: linear-gradient(180deg, #4b4d63 0%, #36374b 8%, #2a2b3d 100%);
    --shell-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.4), inset 3px 0 3px -2px rgba(255, 255, 255, 0.12), inset -3px 0 3px -2px rgba(255, 255, 255, 0.12), 0 2px 0 #232436, 0 4px 0 #1f2031, 0 6px 0 #1b1c2c, 0 8px 0 #181825, 0 10px 0 #151521, 0 12px 0 #12121c, 0 30px 40px -8px rgba(0, 0, 0, 0.6), 0 70px 90px -20px rgba(0, 0, 0, 0.55);
    --track: rgba(17, 17, 27, 0.5);
    --accent: #cba6f7;
    --accent-text: #11111b;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-solid);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

html:not(.js) .js-only {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top,
.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  color: var(--sub);
}

.top-right,
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.domain {
  font-weight: 500;
  text-decoration: none;
}

.tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mailto {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

html:not(.js) .mailto {
  text-decoration: none;
  cursor: text;
}

.name {
  margin: 0;
}

.art {
  display: flex;
  gap: 2.6%;
}

.w1,
.w2 {
  display: block;
  min-width: 0;
  height: auto;
}

.w1 {
  flex: 40 1 0;
}

.w2 {
  flex: 66 1 0;
}

.name-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.09;
}

.name-fill {
  fill: var(--text);
}

.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
}

.role {
  margin: 0;
  flex: 1 1 420px;
  max-width: 58ch;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 500;
  text-wrap: pretty;
}

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 26px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 2px 0 rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(-20deg);
}

.stage {
  perspective: 1800px;
  padding: 6px 0 40px;
}

.shell {
  position: relative;
  border-radius: 30px;
  padding: 0 14px 14px;
  background: var(--shell);
  box-shadow: var(--shell-shadow);
  transform-style: preserve-3d;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 8px;
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
  transform: translateZ(14px);
}

.beads {
  display: flex;
  gap: 9px;
}

.bead {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.bead-red {
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f38ba8 38%, #d9607f 100%);
}

.bead-yellow {
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #f9e2af 38%, #ddb76e 100%);
}

.bead-green {
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #a6e3a1 38%, #6fbe69 100%);
}

.segs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 14px;
  background: var(--track);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bar + .segs {
  margin: 0 auto 14px;
  transform: translateZ(14px);
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.seg:hover {
  filter: brightness(1.1);
}

.seg[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--plastic);
}

.seg svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--s-base);
  color: var(--s-text);
  font-family: var(--mono);
  font-size: 17px;
  transform: translateZ(5px);
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.panes {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--s-surface0);
}

.man-pane {
  flex: 3 1 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--s-base);
}

.prompt {
  margin: 0;
  padding: 16px 22px 0;
  white-space: nowrap;
  overflow: hidden;
}

.host {
  color: var(--s-accent);
  font-weight: 700;
}

.dim {
  color: var(--s-note);
}

.typed {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  width: 18ch;
}

.caret {
  display: inline-block;
  vertical-align: bottom;
  width: 0.55em;
  height: 1.2em;
  margin-left: 2px;
  background: var(--s-text);
}

.man-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 22px 22px;
  min-height: 460px;
}

.man-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  color: var(--s-sub);
}

.man-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.js .man-section {
  display: none;
}

.js .man-section.active {
  display: block;
}

.man-section h2 {
  margin: 0 0 14px;
  font: inherit;
  font-weight: 700;
  color: var(--s-accent);
}

.man-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 72ch;
  padding-left: clamp(0px, 3vw, 28px);
}

.man-text p {
  margin: 0;
  text-wrap: pretty;
}

.rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: clamp(0px, 3vw, 28px);
}

.rows > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.rows dt {
  flex: 0 0 9ch;
  font-weight: 700;
  color: var(--s-accent);
}

.rows dd {
  margin: 0;
  flex: 1 1 280px;
}

.env {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: clamp(0px, 3vw, 28px);
}

.env > div {
  padding-left: 2ch;
  text-indent: -2ch;
}

.env b {
  color: var(--s-accent);
}

.status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  padding: 3px 22px;
  background: var(--s-surface0);
  font-size: 16px;
}

.mascot-pane {
  flex: 2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--s-base);
}

.mascot-pane > p {
  margin: 0;
  padding: 16px 18px 0;
}

.mascot-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 340px;
}

.mascot-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mascot-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 14px 14px;
}

.mascot-controls .segs {
  background: var(--s-mantle);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.mascot-controls .seg {
  color: var(--s-text);
}

.mascot-controls .seg[data-mascot="nix"][aria-pressed="true"] {
  background: #89b4fa;
  color: #11111b;
}

.mascot-controls .seg[data-mascot="beastie"][aria-pressed="true"] {
  background: #f38ba8;
  color: #11111b;
}

.mascot-controls .seg[data-mascot="puffy"][aria-pressed="true"] {
  background: #f9e2af;
  color: #11111b;
}

.mascot-controls p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--s-sub);
  text-align: center;
}

.doc {
  padding: 16px 22px 28px;
  min-height: 420px;
}

.doc-head {
  margin: 0 0 8px;
  font: inherit;
  font-weight: 700;
  color: var(--s-accent);
}

.placeholder {
  color: #f9e2af;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

@media (max-width: 760px) {
  .art {
    flex-wrap: wrap;
    gap: 6px;
  }

  .w1 {
    flex: 0 0 60.6%;
  }

  .w2 {
    flex: 0 0 100%;
  }

  .shell {
    border-radius: 24px;
    padding: 0 8px 8px;
  }

  .screen,
  .screen::after {
    border-radius: 14px;
  }

  .man-body {
    min-height: 0;
  }

  .mid {
    display: none;
  }
}

@media (max-width: 480px) {
  .prompt .host,
  .prompt .tilde,
  .head-end {
    display: none;
  }
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes gone {
  to {
    opacity: 0;
  }
}

@keyframes print {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .w1 {
    animation: wipe 0.6s steps(40) backwards;
  }

  .w2 {
    animation: wipe 0.9s steps(66) 0.55s backwards;
  }

  .typed {
    animation: typing 1.2s steps(18) 1.2s backwards;
  }

  .caret {
    animation: blink 1s steps(2) infinite;
  }

  .caret.done {
    animation: gone 0.01s linear 2.6s forwards;
  }

  .boot {
    animation: print 0.4s steps(12) 2.5s backwards;
  }

  .js .man-section.active {
    animation: print 0.24s steps(10) backwards;
  }

  .cta {
    transition: transform 0.15s ease;
  }

  .cta:hover {
    transform: translateY(-2px);
  }

  .cta:active {
    transform: translateY(1px);
  }

  .cta::before {
    transition: left 0.5s ease;
  }

  .cta:hover::before {
    left: 120%;
  }
}
