@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0d0d0c;
  --text: #efe9df;
  --muted: #a99f94;
  --accent: #d5a44f;
  --line: #332f2a;
  --panel: #151411;
  --panel-soft: #1b1915;
  --home-green: #74ff9b;
  --home-green-soft: #b7ffc7;
  --home-green-muted: #8fcf9d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-header {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--text);
  outline: none;
}

.site-footer {
  width: min(calc(100% - 32px), 1080px);
  margin: auto auto 0;
  padding: 32px 0;
  display: flex;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.home-page {
  --bg: #020403;
  --text: var(--home-green);
  --muted: var(--home-green-muted);
  --accent: var(--home-green);
  --line: rgba(116, 255, 155, 0.3);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(116, 255, 155, 0.035) 0,
      rgba(116, 255, 155, 0.035) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(180deg, rgba(116, 255, 155, 0.1), transparent 30rem),
    #020403;
  color: var(--home-green);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
}

.home-page .site-header,
.home-page .site-footer {
  position: relative;
  z-index: 1;
}

.home-page .site-nav a {
  color: var(--home-green-muted);
}

.home-page .site-nav a:hover,
.home-page .site-nav a:focus-visible,
.home-page .site-nav a[aria-current="page"] {
  color: var(--home-green);
}

.home-main {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 36px 0 52px;
}

.terminal-window {
  width: 100%;
  border: 1px solid rgba(116, 255, 155, 0.38);
  border-radius: 8px;
  background: rgba(3, 14, 8, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 42px rgba(116, 255, 155, 0.05);
  overflow: hidden;
}

.terminal-top {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(116, 255, 155, 0.22);
  padding: 0 14px;
  color: rgba(183, 255, 199, 0.7);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(116, 255, 155, 0.7);
  border-radius: 50%;
}

.terminal-label {
  margin-left: 8px;
  font-size: 0.78rem;
}

.terminal-body {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 42px;
}

.headshot {
  width: 154px;
  height: 154px;
  border: 3px solid var(--home-green);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px rgba(116, 255, 155, 0.08);
}

.terminal-copy {
  min-width: 0;
}

.prompt-line {
  margin: 0 0 14px;
  color: var(--home-green-muted);
  font-size: 0.96rem;
}

.prompt-line span:first-child {
  color: var(--home-green);
}

.typing-line {
  max-width: 0;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  animation: terminal-reveal 900ms steps(8, end) forwards;
}

.typing-line-wide {
  animation-duration: 1200ms;
  animation-delay: 260ms;
  animation-timing-function: steps(14, end);
}

.typing-line-long {
  animation-duration: 1600ms;
  animation-delay: 1180ms;
  animation-timing-function: steps(31, end);
}

.typing-line::after {
  content: "";
  width: 0.58em;
  height: 1em;
  margin-left: 0.1em;
  display: none;
  background: currentColor;
  transform: translateY(0.15em);
  animation: cursor-blink 900ms steps(1, end) infinite;
}

.typing-line-long::after {
  display: inline-block;
}

.home-title {
  margin: 0;
  color: var(--home-green);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-kicker {
  margin: 14px 0 0;
  color: var(--home-green-soft);
  font-size: 1.08rem;
}

.home-summary {
  max-width: 35rem;
  margin: 18px 0 0;
  color: var(--home-green-muted);
  font-size: 1rem;
}

@keyframes terminal-reveal {
  to {
    max-width: 42rem;
  }
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

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

  .typing-line {
    max-width: none;
  }

  .typing-line::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 24px), 1080px);
    padding: 18px 0;
    align-items: flex-start;
    gap: 14px;
  }

  .brand {
    padding-top: 7px;
  }

  .home-main {
    width: min(calc(100% - 24px), 860px);
    align-items: start;
    padding-top: 24px;
  }

  .terminal-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }

  .headshot {
    width: 132px;
    height: 132px;
  }

  .home-title {
    font-size: 2.35rem;
  }

  .home-kicker {
    font-size: 1rem;
  }
}

@media (max-width: 460px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .terminal-body {
    padding: 22px;
  }

  .prompt-line {
    font-size: 0.86rem;
  }

  .home-title {
    font-size: 2rem;
  }
}
