@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #090b11;
  --surface: #141a21;
  --text: #eeefe7;
  --muted: #adbbc2;
  --line: #313d40;
  --accent: #8cf5cc;
  --mono: Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a,
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  opacity: 0;
  pointer-events: none;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 10px;
  opacity: 1;
  pointer-events: auto;
}
.shell {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
/* Navigation */
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, calc(100% - 80px));
  margin: auto;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.logo {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo > span {
  color: var(--muted);
  font-weight: 400;
}
.logo > i {
  height: 7px;
  width: 7px;
  background: var(--accent);
  margin: 10px 0 0 9px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 14px;
}
.site-header nav a {
  padding-block: 12px;
}
.site-header nav a:hover,
.site-header nav a[aria-current],
.text-link:hover,
.social-links a:hover {
  color: var(--accent);
}
.nav-contact {
  border: 1px solid var(--line);
  padding: 9px 18px !important;
  border-radius: 4px;
}
.menu-toggle {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  display: none;
}
/* Introduction */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 80px 85px;
}
.eyebrow {
  font: 11px/1.6 var(--mono);
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}
.status-dot {
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #c3f36b12;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 1.06;
  letter-spacing: -4px;
  font-weight: 600;
  margin-bottom: 28px;
}
.accent,
h1 em {
  color: var(--accent);
}
em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}
.hero-description {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.primary {
  background: var(--accent);
  color: var(--bg);
}
.primary:hover {
  background: #d5ffa0;
}
.text-link {
  font-size: 14px;
}
.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 51px;
  color: var(--muted);
  font: 9px/1.6 var(--mono);
  letter-spacing: 1px;
}
.hero-visual {
  position: relative;
  padding: 4px 20px 20px 0;
}
.portrait-window {
  transform: rotate(3deg);
  border: 1px solid #59644d;
  background: #20261d;
  box-shadow: 12px 15px 0 #1b2118;
}
.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
  color: var(--muted);
  font: 10px var(--mono);
}
.window-bar > span:first-child {
  display: flex;
  gap: 5px;
}
.window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76826b;
}
.window-bar i:first-child {
  background: #ba7868;
}
.window-bar i:nth-child(2) {
  background: #c5b569;
}
.portrait-scene {
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #929480;
}
.portrait-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.65);
}
.portrait-cross {
  position: absolute;
  font: 28px var(--mono);
  color: #f3f4d5;
  top: 6px;
  left: 10px;
}
.portrait-sticker {
  position: absolute;
  right: 16px;
  bottom: 20px;
  background: var(--accent);
  color: #182111;
  padding: 12px 14px;
  transform: rotate(-7deg);
  font: 800 22px/0.95 var(--sans);
  letter-spacing: -1px;
  box-shadow: 4px 4px 0 #0003;
}
.portrait-sticker span {
  font-size: 29px;
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 1px;
  padding: 15px;
}
.floating-label {
  position: absolute;
  left: -32px;
  bottom: -4px;
  background: #ececd9;
  color: #333b2b;
  padding: 13px 20px;
  transform: rotate(-5deg);
  font: 13px/1.4 var(--mono);
  box-shadow: 4px 4px 0 #0003;
}
.floating-label > span {
  float: left;
  font-size: 36px;
  margin-right: 13px;
  color: #526332;
}
.floating-label small {
  font-size: 9px;
  color: #58614f;
}
.interest-strip {
  border-block: 1px solid var(--line);
  background: #161c14;
}
.interest-strip > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  align-items: center;
  font: 10px/1.4 var(--mono);
  letter-spacing: 1.3px;
  flex-wrap: wrap;
}
.interest-strip b {
  color: var(--accent);
  font-size: 20px;
}
/* Selected work — CSS concept illustration, not a gameplay screenshot. */
.work-section,
.skills-section {
  padding-block: 88px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 500;
  margin-bottom: 0;
}
.section-heading > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
}
.project-art {
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #475038;
  border-radius: 4px;
  padding: 20px;
  transition: border-color 0.2s;
}
.project-art:hover {
  border-color: var(--accent);
}
.art-top,
.art-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.art-arrow {
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff4d;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.zombie-art {
  background: #222d19;
  color: #deefba;
}
.arena-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #7c963540, transparent 60%);
}
.arena-grid {
  position: absolute;
  inset: 35% -50% -90%;
  background-image:
    linear-gradient(#b8d47b25 1px, transparent 1px),
    linear-gradient(90deg, #b8d47b25 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(300px) rotateX(55deg);
  transform-origin: center top;
}
.arena-block {
  position: absolute;
  width: 60px;
  height: 110px;
  background: linear-gradient(90deg, #354526 70%, #182814 70%);
  border-top: 12px solid #728047;
  transform: skewY(-8deg);
  right: 65px;
  bottom: 40px;
  box-shadow: 20px 20px 20px #0004;
}
.block-two {
  right: 160px;
  bottom: 60px;
  width: 42px;
  height: 80px;
  opacity: 0.6;
}
.block-three {
  right: 27px;
  bottom: 108px;
  width: 42px;
  height: 90px;
  opacity: 0.5;
}
.game-wordmark {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 3.7vw, 50px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 3px 4px #15210d;
  max-width: 380px;
}
.game-wordmark > span {
  color: var(--accent);
}
.game-wordmark small {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 3px;
  margin-top: 16px;
}
.chess-art {
  background: #bcb6d1;
  color: #252032;
  border-color: #bcb6d1;
}
.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 216px;
  height: 216px;
  position: absolute;
  top: 60px;
  left: calc(50% - 108px);
  transform: perspective(550px) rotateX(30deg) rotateZ(-15deg);
  box-shadow: 10px 16px 0 #43395266;
  border: 5px solid #544763;
}
.mini-board span {
  display: grid;
  place-items: center;
  background: #e5e0eb;
  color: #30273e;
  font: 40px/1 Georgia;
}
.mini-board span:nth-child(8n + 2),
.mini-board span:nth-child(8n + 4),
.mini-board span:nth-child(8n + 5),
.mini-board span:nth-child(8n + 7) {
  background: #79678e;
}
.project-meta {
  padding: 22px 0 0;
}
.project-meta h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.project-meta h3 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-meta h3 a:hover {
  color: var(--accent);
}
.project-meta p {
  color: var(--muted);
  font-size: 14px;
  max-width: 430px;
  margin-bottom: 18px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tags span {
  border: 1px solid var(--line);
  padding: 3px 9px;
  font: 10px/1.6 var(--mono);
  color: #b9c0b5;
  border-radius: 3px;
}
.github-link {
  display: block;
  width: fit-content;
  margin-top: 35px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
/* About and interactive desk */
.about-section {
  border-block: 1px solid var(--line);
  background: #151a15;
  padding-block: 80px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-copy h2 {
  margin-bottom: 25px;
  font-size: 37px;
}
.about-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 500px;
}
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 25px;
}
.about-facts span {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.about-facts strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}
.desk-widgets {
  min-width: 0;
}
.terminal {
  border: 1px solid #3b4635;
  border-radius: 5px;
  background: #0e120e;
  overflow: hidden;
  box-shadow: 0 10px 35px #0002;
}
.terminal-body {
  padding: 22px;
  font: 12px/1.8 var(--mono);
}
.terminal-body p {
  margin-bottom: 16px;
}
.terminal-hint {
  color: var(--muted);
  font-size: 10px;
}
.terminal-hint code {
  color: var(--accent);
}
#terminal-output {
  max-height: 160px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#terminal-output p {
  white-space: pre-wrap;
  margin-bottom: 10px;
}
#terminal-form {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
#terminal-form label {
  color: var(--accent);
}
#terminal-input {
  background: none;
  border: 0;
  color: var(--text);
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  font: 12px var(--mono);
}
#terminal-input::placeholder {
  color: #9aa793;
}
#terminal-form button {
  background: none;
  border: 0;
  padding: 8px 10px;
  color: var(--accent);
}
.music-player {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
  background: #1c231a;
}
.record {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    #242823 0px,
    #242823 2px,
    #3a4233 3px,
    #242823 4px
  );
  display: grid;
  place-items: center;
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}
.record span {
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #253018;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.music-player.is-playing .record {
  animation-play-state: running;
}
.music-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.music-details .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin: 0 0 3px;
}
.music-details strong {
  font-size: 13px;
  font-weight: 500;
}
.music-details > span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.music-controls {
  display: flex;
  gap: 3px;
  align-items: center;
}
.music-controls button {
  background: none;
  border: 0;
  width: 30px;
  height: 40px;
  font-size: 22px;
}
.music-controls #play-track {
  font-size: 13px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  width: 34px;
  height: 34px;
}
#music-progress {
  grid-column: 1/-1;
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  height: 12px;
}
.music-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 9px var(--mono);
  color: var(--muted);
}
/* Toolkit and contact */
.skill-list {
  border-top: 1px solid var(--line);
}
.skill-row {
  display: grid;
  grid-template-columns: 35px 1fr 1.35fr 120px;
  gap: 25px;
  align-items: start;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
}
.skill-number {
  font: 11px var(--mono);
  color: var(--muted);
  padding-top: 6px;
}
.skill-row h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: 0;
}
.skill-row p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 370px;
}
.skill-row > a {
  font: 10px/1.8 var(--mono);
  padding-block: 7px;
  text-align: right;
}
.skill-row > a:hover {
  color: var(--accent);
}
.contact-section {
  padding-block: 56px 70px;
  border-top: 1px solid var(--line);
}
.contact-section h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.16;
}
.contact-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
}
.email-link {
  font-size: 20px;
  letter-spacing: -0.5px;
  border-bottom: 1px solid #69745e;
  padding-bottom: 3px;
}
.email-link:hover {
  color: var(--accent);
}
.copy-button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  font: 10px var(--mono);
}
#copy-status {
  font-size: 11px;
  color: var(--accent);
}
.social-links {
  margin-left: auto;
  display: flex;
  gap: 25px;
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 28px;
}
footer .logo {
  font-size: 22px;
}
footer > span,
footer > a:last-child {
  font: 10px/1.8 var(--mono);
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 110px;
  }
  .portrait-scene {
    height: 390px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 35px;
  }
  h1 {
    font-size: 56px;
    letter-spacing: -3px;
  }
  .portrait-scene {
    height: 330px;
  }
  .hero-footnote {
    font-size: 8px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-copy h2 {
    font-size: 32px;
  }
  .skill-row {
    grid-template-columns: 25px 1fr 1.2fr;
    gap: 20px;
  }
  .skill-row > a {
    grid-column: 3;
    text-align: left;
  }
  .interest-strip > div {
    gap: 15px;
    font-size: 9px;
  }
  .hero-actions {
    gap: 18px;
  }
  .button {
    padding-inline: 17px;
  }
  .music-player {
    padding: 14px;
    gap: 9px;
  }
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    width: calc(100% - 40px);
    min-height: 76px;
    flex-wrap: wrap;
    padding-block: 15px;
    position: relative;
  }
  .logo {
    font-size: 24px;
  }
  .menu-toggle:not([hidden]) {
    display: block;
  }
  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
  }
  .js .site-header nav {
    display: none;
  }
  .js .site-header nav.is-open {
    display: flex;
  }
  .site-header nav .nav-contact {
    padding: 6px 12px !important;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px 60px;
    gap: 44px;
  }
  h1 {
    font-size: clamp(45px, 9.6vw, 67px);
    letter-spacing: -2.7px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 22px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-actions {
    gap: 22px;
  }
  .text-link {
    font-size: 13px;
  }
  .hero-footnote {
    margin-top: 30px;
    gap: 13px;
  }
  .hero-visual {
    width: min(380px, 90%);
    margin: auto;
    padding: 0 0 20px;
  }
  .portrait-scene {
    height: 330px;
  }
  .floating-label {
    left: -12px;
  }
  .interest-strip > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    text-align: center;
    gap: 10px;
    font-size: 8px;
  }
  .interest-strip b:nth-of-type(2) {
    display: none;
  }
  .work-section,
  .skills-section {
    padding-block: 55px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .section-heading > p br {
    display: none;
  }
  h2 {
    font-size: 36px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .project-art {
    height: 300px;
  }
  .game-wordmark {
    font-size: 43px;
  }
  .mini-board {
    top: 50px;
  }
  .about-section {
    padding-block: 52px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-copy h2 {
    font-size: 34px;
  }
  .skill-row {
    grid-template-columns: 25px 1fr;
    gap: 12px;
    padding-block: 25px;
  }
  .skill-row > div,
  .skill-row > a {
    grid-column: 2;
  }
  .skill-row > a {
    text-align: left;
  }
  .skill-row h3 {
    font-size: 20px;
  }
  .contact-section {
    padding-block: 35px 48px;
  }
  .contact-section .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .contact-section h2 {
    font-size: 36px;
  }
  .contact-bottom {
    gap: 15px;
  }
  .email-link {
    font-size: 19px;
  }
  .social-links {
    width: 100%;
    margin: 10px 0 0;
  }
  footer {
    flex-wrap: wrap;
    padding-block: 24px;
    gap: 15px;
  }
  footer > span {
    order: 3;
    width: 100%;
    font-size: 9px;
  }
  footer > a:last-child {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
