:root {
  color-scheme: dark;
  --black: #000;
  --card: #050505;
  --white: #ededeb;
  --copy: #a3a19b;
  --muted: #92928f;
  --line: #292929;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Literata', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

.wrap {
  width: min(100% - 40px, 600px);
  margin-inline: auto;
}

.hero {
  padding: 62px 0 0;
}

.identity-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.hero h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-meta {
  margin: 13px 0 0;
  color: var(--muted);
  font: 13px var(--mono);
}

.hero-role {
  margin: 2px 0 18px;
  color: var(--muted);
  font: 13px var(--mono);
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.65;
}

.off-hours {
  margin: 9px 0 0;
  color: var(--muted);
  font: 13px var(--mono);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  font: 13px var(--mono);
}

.social-links a:not(:last-child)::after {
  content: '/';
  display: inline-block;
  margin: 0 12px;
}

.social-links a:hover,
.footer a:hover,
.company-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  margin-top: 58px;
  scroll-margin-top: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font: 12px var(--mono);
}

.section-heading h2,
.hire-section h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.section-aside {
  white-space: nowrap;
  color: var(--muted);
  font: 12px var(--mono);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

a.project-card:hover {
  border-color: var(--white);
}

.project-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.card-link {
  flex: 0 0 auto;
  font: 14px var(--mono);
}

.project-card p {
  margin: 0;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.6;
}

.project-impact {
  margin-top: 9px;
  font: 500 13px var(--mono);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  row-gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font: 13px var(--mono);
}

.tech-list span {
  white-space: nowrap;
}

.company-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin: 20px 0 17px;
}

.company-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.company-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.date-range {
  padding-top: 3px;
  white-space: nowrap;
  color: var(--muted);
  font: 12px var(--mono);
}

.role-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
}

.role-list::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 3px;
  border-left: 1px dashed #41413e;
  content: '';
}

.role {
  position: relative;
}

.role::before {
  position: absolute;
  top: 7px;
  left: -20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ededeb;
  content: '';
}

.role-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.role-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.role-title span {
  white-space: nowrap;
  color: var(--muted);
  font: 12px var(--mono);
}

.role p {
  margin: 5px 0 0;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.6;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 13px;
}

.stack-list span {
  color: var(--copy);
  font: 14px var(--mono);
}

.hire-section {
  padding: 12px 0 0;
}

.hire-section>p {
  margin: 5px 0 12px;
  color: var(--copy);
  font-size: 14px;
}

.hire-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.email-button,
.copy-button {
  min-height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--black);
  font: 12px var(--mono);
}

.email-button:hover,
.copy-button:hover {
  border-color: var(--white);
}

.copy-button {
  cursor: pointer;
}

.copy-status {
  min-width: 75px;
  font: 12px var(--mono);
}

.server-section {
  margin-top: 58px;
}

.server-section .live-tag {
  color: #8bd49a;
}

.server-section .live-tag i,
.server-section .status-value i {
  background: #8bd49a;
  box-shadow: 0 0 8px #8bd49a66;
}

.server-section .live-tag i {
  animation: live-pulse 2.4s ease-in-out infinite;
}

.server-section .prompt {
  color: var(--white);
}

.server-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #30302e;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 20px 70px #000b;
}

.server-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(3px);
}

.server-dialog .server-section {
  margin: 0;
  padding: 20px;
}

.server-dialog .section-heading {
  align-items: center;
}

.server-section-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dialog-close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: 18px/1 var(--mono);
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--white);
  color: var(--white);
}

.dialog-close:focus-visible,
.server-launcher:focus-visible {
  outline: 2px solid #8bd49a;
  outline-offset: 3px;
}

.server-section.is-waking .live-tag {
  color: var(--muted);
}

.server-section.is-waking .live-tag i {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

.server-launcher {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ededeb;
  border-radius: 6px;
  background: #ededeb;
  color: #080808;
  font: 500 11px var(--mono);
  cursor: pointer;
  box-shadow: 0 8px 28px #0009;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.server-launcher:hover {
  transform: translateY(-2px);
  border-color: #8bd49a;
  background: #fff;
}

.server-launcher i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #39e875;
  box-shadow: 0 0 9px #39e87599;
  animation: launcher-pulse 2.4s ease-in-out infinite;
}

.server-launcher.is-waking i {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

@keyframes launcher-pulse {
  50% {
    opacity: .62;
    box-shadow: 0 0 4px #39e87555;
  }
}

.server-launcher-prompt {
  color: #5f5f5b;
  font-weight: 500;
}

.server-launcher-state {
  color: #39e875;
  font-weight: 500;
}

.server-launcher.is-waking .server-launcher-state {
  color: var(--muted);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 12px var(--mono);
}

.live-tag i,
.status-value i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--white);
}

.terminal {
  overflow: hidden;
  border: 1px solid #30302e;
  border-radius: 8px;
  background: var(--card);
}

.terminal-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-bottom: 1px solid #292927;
  color: var(--muted);
  font: 12px var(--mono);
}

.terminal-dots {
  display: flex;
  gap: 4px;
}

.terminal-dots i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: #555552;
}

.terminal-body {
  padding: 18px;
  font: 13px var(--mono);
}

.terminal-intro {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.prompt {
  font-weight: 500;
}

.cursor {
  width: 6px;
  height: 13px;
  background: var(--white);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes live-pulse {
  50% {
    opacity: .55;
    box-shadow: 0 0 3px #8bd49a33;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.traffic-panel {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #292927;
}

.traffic-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 11px var(--mono);
}

.traffic-chart {
  height: 48px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  margin-top: 9px;
}

.traffic-bar {
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: #8bd49a;
  opacity: .78;
  transition: height .35s ease;
}

.stat-label {
  font: 12px var(--mono);
}

.stat-value {
  overflow-wrap: anywhere;
  font: 14px var(--mono);
}

.stat-value small {
  font-size: 12px;
}

.status-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.terminal-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 19px;
  padding-top: 10px;
  border-top: 1px solid #292927;
  color: var(--muted);
  font: 12px var(--mono);
}

.terminal-note {
  margin: 9px 0 0;
  color: var(--copy);
  font: 13px/1.55 var(--mono);
}

.footer {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 50px;
  padding: 14px 0;
  font: 12px var(--mono);
}

.footer-time {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .hero {
    padding-top: 44px;
  }

  .identity-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hero-meta {
    margin-top: 10px;
  }

  .section {
    margin-top: 48px;
  }

  .company-heading {
    flex-direction: column;
    gap: 6px;
  }

  .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-dialog .server-section {
    padding: 16px;
  }

  .server-launcher {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .footer {
    justify-content: flex-start;
  }

  .footer-time {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}