:root {
  --base03: #002b36;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --orange: #cb4b16;
  --red: #dc322f;
  --yellow: #b58900;
  --green: #859900;
  --cyan: #2aa198;
  --line: rgba(0, 43, 54, 0.14);
  --terminal: #3e626a;
  --terminal-top: #48727a;
  --terminal-line: rgba(238, 232, 213, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--base3);
  color: var(--base03);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand,
.resume-link,
.eyebrow,
.role,
.contact-label,
.terminal-card,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  color: var(--orange);
  font-size: 1.08rem;
  letter-spacing: -0.2em;
}

.accent,
.role span {
  color: var(--orange);
}

.resume-link {
  padding: 7px 12px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  color: var(--orange);
  font-size: 0.73rem;
  transition: background 160ms ease, color 160ms ease;
}

.resume-link:hover {
  background: var(--orange);
  color: var(--base3);
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 10vw, 140px);
  min-height: calc(100vh - 188px);
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--base01);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prompt,
.code-prompt {
  color: var(--green);
}

.intro h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.095em;
  line-height: 0.86;
}

.intro h1 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.09em;
}

.role {
  margin: 28px 0 0;
  color: var(--base00);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.contact-list {
  max-width: 520px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--base01);
  font-size: 0.79rem;
  transition: color 160ms ease, padding 160ms ease;
}

.contact-link:hover {
  padding-left: 6px;
  color: var(--orange);
}

.contact-label {
  color: var(--cyan);
  font-size: 0.7rem;
}

.contact-arrow {
  color: var(--orange);
  text-align: right;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(0, 43, 54, 0.2);
  border-radius: 4px 4px 8px 4px;
  background: var(--terminal);
  box-shadow: 12px 15px 0 rgba(0, 43, 54, 0.08);
  color: var(--base2);
  transform: rotate(1deg);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  background: var(--terminal-top);
  color: rgba(238, 232, 213, 0.7);
  font-size: 0.69rem;
}

.terminal-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--base0);
  opacity: 0.78;
}

.terminal-topbar span:first-child {
  background: var(--red);
}

.terminal-topbar span:nth-child(2) {
  background: var(--yellow);
}

.terminal-topbar span:nth-child(3) {
  background: var(--green);
}

.terminal-topbar code {
  margin-left: auto;
}

.terminal-body {
  min-height: 310px;
  padding: 28px 28px 24px;
  color: rgba(238, 232, 213, 0.72);
  font-size: 0.79rem;
}

.terminal-body > p:first-child {
  margin: 0 0 27px;
}

.terminal-body dl {
  margin: 0;
}

.terminal-body dl > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--terminal-line);
}

.terminal-body dt {
  color: #5cc7bb;
}

.terminal-body dd {
  margin: 0;
  color: #f5f0df;
}

.terminal-cursor {
  margin: 25px 0 0;
  color: #e2a51d;
}

.terminal-cursor span:last-child {
  animation: blink 1.1s steps(2, start) infinite;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--base01);
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .terminal-card {
    width: min(100%, 520px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, 1080px);
  }

  .site-header {
    min-height: 76px;
  }

  .intro h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .contact-list {
    margin-top: 42px;
  }

  .contact-link {
    grid-template-columns: 68px minmax(0, 1fr) 16px;
    gap: 10px;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
  }

  .terminal-body {
    min-height: 290px;
    padding: 24px 22px 22px;
    font-size: 0.74rem;
  }

  .terminal-body dl > div {
    grid-template-columns: 64px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
