:root {
  --bg: #fffefb;
  --ink: #1b1410;
  --or: #ff6a13;
  --pe: #ffe6d2;
  --bu: #fff0b8;
  --mut: #6a5e55;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110d;
    --ink: #fff3e8;
    --or: #ff8a3d;
    --pe: #3a2416;
    --bu: #3a3015;
    --mut: #b9a999;
  }
}

:root[data-theme="dark"] {
  --bg: #17110d;
  --ink: #fff3e8;
  --or: #ff8a3d;
  --pe: #3a2416;
  --bu: #3a3015;
  --mut: #b9a999;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) .75px, transparent .75px);
  background-size: 18px 18px;
  color: var(--ink);
  font: 16.5px/1.6 "Bricolage Grotesque", system-ui, sans-serif;
  overflow-x: hidden;
}

.w {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: var(--or);
  font-weight: 500;
}

nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

nav .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
}

nav b {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

nav b i {
  font-style: normal;
  color: var(--or);
}

nav div {
  display: flex;
  gap: 16px;
  font-size: 14.5px;
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
}

nav div::-webkit-scrollbar {
  display: none;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--or);
}

.tt {
  font: 500 13px "Fira Code", monospace;
  background: var(--or);
  color: #1b1410;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: 14px;
  flex: none;
  transition: transform 0.15s;
}

.tt:hover {
  transform: rotate(-4deg) scale(1.06);
}

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

.hero {
  padding: 54px 0 30px;
}

.kick {
  display: inline-block;
  background: var(--or);
  color: #1b1410;
  font: 500 13px "Fira Code", monospace;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 20px;
  max-width: 100%;
}

.ms-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 7px 11px 7px 8px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-0.7deg);
  font: 500 13px "Fira Code", monospace;
}

.ms-hero .ms-logo {
  width: 22px;
  height: 22px;
  flex: none;
}

.ms-hero-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ms-hero-text strong {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 15px;
}

.ms-hero-text span {
  color: var(--mut);
  font-size: 11.5px;
  margin-top: 2px;
}

.ms-logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

.ms-logo rect {
  shape-rendering: geometricPrecision;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 6.6vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 13em;
}

.lead {
  font-size: 1.2rem;
  max-width: 44em;
  margin: 0 0 22px;
}

.lead b {
  background: linear-gradient(transparent 55%, var(--pe) 55%);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  background: var(--bg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn.p {
  background: var(--or);
  color: #1b1410;
}

.btn:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.s {
  font: 500 13.5px "Fira Code", monospace;
  padding: 6px 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.st {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  background: var(--pe);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s;
}

.st:nth-child(even) {
  background: var(--bu);
  transform: rotate(1.2deg);
}

.st:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.st:hover {
  transform: rotate(0) scale(1.04);
}

.st b {
  display: block;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.st span {
  font-size: 13.5px;
  color: var(--mut);
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

section {
  padding-top: 84px;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
}

.sq {
  display: block;
  width: 90px;
  height: 12px;
  margin: 0 0 22px;
  color: var(--or);
}

.sub {
  color: var(--mut);
  margin: 0 0 24px;
  max-width: 46em;
}

.term {
  border: 2px solid var(--ink);
  border-radius: 14px;
  font: 14px/1.55 "Fira Code", monospace;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--or);
  background: var(--bg);
}

.bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
}

.bar b {
  color: var(--or);
  font-weight: 500;
}

#out {
  height: min(52vh, 430px);
  overflow: auto;
  padding: 14px;
}

.cmd {
  color: var(--or);
  margin: 10px 0 6px;
  word-break: break-word;
}

.err {
  color: #e0245e;
  font-weight: 500;
}

.note {
  color: var(--mut);
}

.tw {
  overflow-x: auto;
  margin: 4px 0;
}

table {
  border-collapse: collapse;
  min-width: 100%;
}

th {
  text-align: left;
  color: var(--mut);
  font-weight: 500;
  border-bottom: 2px solid var(--ink);
}

th,
td {
  padding: 6px 14px 6px 0;
  vertical-align: top;
}

td:first-child {
  white-space: nowrap;
  font-weight: 500;
}

tr + tr td {
  border-top: 1px dashed var(--pe);
}

form {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 2px solid var(--ink);
}

form span {
  color: var(--or);
}

input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chips button,
.tog {
  font: 500 13px "Fira Code", monospace;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.15s;
}

.chips button:hover,
.tog:hover {
  background: var(--or);
  transform: rotate(-2deg) scale(1.05);
}

.g4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.box {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg);
}

.box h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.25;
}

.box p {
  margin: 0;
  color: var(--mut);
  font-size: 15px;
}

.box:hover {
  background: var(--pe);
}

.job {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 6px 6px 0 var(--ink);
}

.job header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  align-items: center;
}

.company-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.company-brand .ms-logo {
  width: 27px;
  height: 27px;
}

.job h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.2;
}

.job .d {
  font: 13px "Fira Code", monospace;
  color: var(--mut);
}

.job .r {
  color: var(--mut);
  margin: 4px 0 14px;
}

.job ul {
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 56em;
}

.job li {
  margin-bottom: 9px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tags span {
  font: 12.5px "Fira Code", monospace;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  background: var(--bg);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  margin: 14px 0;
  font: 12.5px "Fira Code", monospace;
}

.flow > div {
  flex: 1 1 120px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--bg);
  transition: 0.25s;
}

.flow small {
  display: block;
  color: var(--mut);
  font-size: 11px;
}

.flow .on {
  background: var(--or);
  color: #1b1410;
  transform: translateY(-4px) rotate(-1deg);
}

.flow .on small {
  color: #1b1410;
}

.flow .bad {
  background: #e0245e;
  color: #fff;
  border-color: #e0245e;
  transform: rotate(1.5deg);
}

.flow .bad small {
  color: #fff;
}

.fst {
  min-height: 1.5em;
  font: 13px "Fira Code", monospace;
  color: var(--mut);
  margin-top: 10px;
}

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.work-hint {
  margin: -4px 0 18px;
  color: var(--mut);
  font: 500 12.5px "Fira Code", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pj {
  min-width: 0;
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.pj:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
}

.pj.a {
  background: var(--pe);
}

.pj.b {
  background: var(--bu);
}

.pj.c {
  background: var(--ink);
  color: var(--bg);
}

.pj.c .tags span {
  background: transparent;
  border-color: var(--bg);
}

.pj.c p,
.pj.c .fst {
  color: var(--bg);
}

.pj.c .flow > div {
  color: var(--ink);
}

.pj.c .flow .on {
  color: #1b1410;
}

.pj.c .flow .bad {
  color: #fff;
}

.pj .n {
  font: 12.5px "Fira Code", monospace;
  opacity: 0.75;
}

.pj h3 {
  margin: 2px 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.2;
}

.pj p {
  margin: 0 0 12px;
  font-size: 15.5px;
}

.pj .ab {
  align-self: flex-start;
  margin: 16px 0 0;
  font: 500 13px "Fira Code", monospace;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.pj .ab:hover {
  background: var(--or);
}

.pj .ab i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.3s;
}

.pj.open .ab i {
  transform: rotate(180deg);
}

.arch {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s ease;
}

.arch > div {
  overflow: hidden;
  min-height: 0;
}

.pj.open .arch {
  grid-template-rows: 1fr;
}

.arch .in {
  margin-top: 14px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
  overflow: hidden;
}

.ar {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  max-width: 100%;
}

.ar text {
  font: 500 11px "Fira Code", monospace;
  fill: var(--ink);
}

.ar .l {
  font-size: 9px;
  fill: var(--mut);
}

.ar rect {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 2;
}

.ar .hi rect {
  fill: var(--or);
}

.ar .hi text {
  fill: #1b1410;
}

.ar .e {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-dasharray: 5 5;
}

.pipe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  font: 12px "Fira Code", monospace;
}

.pipe > div {
  min-height: 70px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pipe > div:last-child {
  grid-column: 1 / -1;
}

.pipe small {
  display: block;
  color: var(--mut);
  font-size: 10.5px;
}

@media (prefers-reduced-motion: no-preference) {
  .pj.open .ar .e {
    animation: fl 1.8s linear infinite;
  }

  .pj.open .pipe > div {
    animation: lit 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * .75s);
  }

  .pj.open .pipe > div small {
    animation: litsmall 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * .75s);
  }

  @keyframes fl {
    to {
      stroke-dashoffset: -10;
    }
  }

  @keyframes lit {
    0%, 10% {
      background: var(--or);
      color: #1b1410;
      transform: translateY(-2px);
    }
    20%, 100% {
      background: var(--bg);
      color: var(--ink);
      transform: translateY(0);
    }
  }

  @keyframes litsmall {
    0%, 10% {
      color: #1b1410;
    }
    20%, 100% {
      color: var(--mut);
    }
  }
}

@media (hover: hover) and (min-width: 641px) {
  .work {
    align-items: stretch;
  }

  .pj:hover {
    box-shadow: 8px 8px 0 var(--ink);
    z-index: 2;
  }

  .work:has(.pj.a:hover) .pj.b,
  .work:has(.pj.b:hover) .pj.a {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .pj .ab {
    display: none;
  }

  .arch {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .pj.a .arch {
    left: 100%;
    padding-left: 20px;
  }

  .pj.b .arch {
    right: 100%;
    padding-right: 20px;
  }

  .pj:hover .arch {
    opacity: 1;
    pointer-events: auto;
  }

  .arch > div {
    height: 100%;
    overflow: visible;
  }

  .arch .in {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .pipe > div {
    min-height: 84px;
  }
}

.bars div {
  display: flex;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  font: 12.5px "Fira Code", monospace;
  background: var(--bg);
}

.bars span {
  display: flex;
  align-items: center;
  padding-left: 8px;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  background: var(--or);
  color: #1b1410;
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

.bars span + span {
  background: var(--bu);
  border-left: 2px solid var(--ink);
}

.bars span + span + span {
  background: var(--pe);
}

.tb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.tb div {
  border-top: 3px solid var(--or);
  padding-top: 8px;
}

.tb b {
  font-weight: 700;
  text-transform: capitalize;
}

.tb span {
  display: block;
  color: var(--mut);
  font-size: 15px;
}

.edu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.cta {
  margin-top: 84px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--or);
  color: #1b1410;
  padding: 34px;
  box-shadow: 8px 8px 0 var(--ink);
}

.cta h2 {
  font-size: clamp(1.8rem, 6vw, 3.6rem);
}

.cta a.m {
  color: #1b1410;
  font-weight: 700;
  font-size: clamp(1.05rem, 4vw, 2rem);
  word-break: break-all;
}

.cta .btn {
  background: var(--bg);
  color: var(--ink);
}

.cta .social {
  margin: 18px 0 0;
}

footer {
  padding: 36px 0 50px;
  color: var(--mut);
  font-size: 14px;
}

#blob {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--or);
  border: 2px solid var(--ink);
  pointer-events: none;
  z-index: 9;
  opacity: 0.9;
  transition: width 0.2s, height 0.2s;
  display: none;
}

#blob.big {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #blob {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .caret::after {
    content: "\258D";
    animation: b 1s steps(2) infinite;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .w {
    padding: 0 16px;
  }

  nav .w {
    flex-wrap: wrap;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    row-gap: 6px;
  }

  nav .tt {
    margin-left: auto;
    order: 2;
  }

  nav b {
    order: 1;
  }

  nav div {
    order: 3;
    width: 100%;
    gap: 14px;
    padding-bottom: 2px;
  }

  .hero {
    padding: 36px 0 18px;
  }

  .lead {
    font-size: 1.05rem;
  }

  .ms-hero {
    margin-bottom: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .st {
    padding: 12px;
  }

  .st b {
    font-size: 1.6rem;
  }

  .st:nth-child(even),
  .st:nth-child(odd) {
    transform: none;
  }

  section {
    padding-top: 60px;
  }

  .term {
    font-size: 13px;
    box-shadow: 4px 4px 0 var(--or);
  }

  #out {
    height: 46vh;
    padding: 10px;
  }

  .job {
    padding: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .job h3,
  .pj h3 {
    font-size: 1.35rem;
  }

  .company-brand .ms-logo {
    width: 24px;
    height: 24px;
  }

  .pj {
    padding: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .flow > div {
    flex: 1 1 calc(50% - 6px);
  }

  .cta {
    margin-top: 60px;
    padding: 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .kick {
    font-size: 12px;
  }

  .ar {
    width: 100%;
    height: auto;
  }

  .pipe {
    grid-template-columns: 1fr;
  }

  .pipe > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .pj:hover {
    transform: none;
  }
}
