/* klabukov.me — terminal / amber phosphor theme */

:root {
  --bg: #0e0c09;
  --panel: #14110c;
  --line: #3b3225;
  --fg: #eadfc8;
  --muted: #a99a80;
  --accent: #ffb000;
  --accent-shadow: #4a3a1c;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --pixel: 'VT323', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--fg); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; }

p, h1, h2, h3 { margin: 0; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.fg { color: var(--fg); }
.small { font-size: 13px; }

/* top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.topbar .wrap {
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}
.nav a {
  text-decoration: none;
  padding: 0 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav a.accent { color: var(--accent); }

main.wrap { padding-bottom: 40px; }

/* hero */
.hero {
  padding: 72px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.logo {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  shape-rendering: crispEdges;
}
.logo .shadow { fill: var(--accent-shadow); }
.logo .face { fill: var(--accent); }
.hero-text { display: flex; flex-direction: column; gap: 6px; }
.hero h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
}
.hero-text p { max-width: 680px; color: var(--muted); }

.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover { color: var(--bg); filter: brightness(1.1); }

/* sections */
.section {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-head .num,
.section-head h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
}
.section-head .num { color: var(--accent); }
.section-head h2 { letter-spacing: 0.04em; }
.section-head .rule { flex: 1; border-top: 2px dashed var(--line); }

.prompt { color: var(--muted); }
.prompt::before { content: '$ '; color: var(--accent); }

/* about */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.about-text {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.focus { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.focus p:last-child { line-height: 1.9; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
}
.stack {
  flex: 1 1 280px;
  min-width: 0;
  padding: 16px 18px;
}
.stack dt { color: var(--muted); margin: 14px 0 6px; }
.stack dt:first-child { margin-top: 0; }
.stack dt::before { content: '// '; }
.stack dd { margin: 0; }

/* experience */
.jobs { display: flex; flex-direction: column; }
.job {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job .when { flex: 0 0 170px; color: var(--accent); }
.job .body {
  flex: 999 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.job h3 { font-size: 17px; font-weight: 600; }
.job h3 span { color: var(--muted); font-weight: 400; }
.job ul { margin: 0; padding: 0; list-style: none; }
.job li { padding-left: 3ch; text-indent: -3ch; }
.job li::before { content: '├─ '; color: var(--muted); }
.job li:last-child::before { content: '└─ '; }
.job .tags { font-size: 13px; color: var(--muted); }

.job.compact { gap: 2px 32px; padding: 16px 0; }
.job.compact .body {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
}
.job.compact h3 { font-size: 15px; }

/* contact */
.contacts {
  padding: 8px 20px;
  max-width: 640px;
  margin: 0;
}
.contacts div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  min-height: 48px;
  border-bottom: 1px dashed var(--line);
}
.contacts div:last-child { border-bottom: 0; }
.contacts dt { flex: 0 0 96px; color: var(--muted); }
.contacts dd { margin: 0; }

/* side quest teaser */
.teaser { padding: 32px 0 16px; }
.teaser a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  text-decoration: none;
  color: var(--muted);
}
.teaser a:hover { border-color: var(--accent); }

/* footer */
.footer { border-top: 1px solid var(--line); }
.footer .wrap {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* games page */
.intro {
  padding: 64px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.intro h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.intro p:last-child { max-width: 680px; }

.games .section { padding: 32px 0; }
.games #jams { padding: 40px 0 32px; }

.shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}
.pixelated { image-rendering: pixelated; }

.featured {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--accent);
  background: var(--panel);
}
.featured .key-art { aspect-ratio: 1320 / 760; }
.featured-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.featured-text {
  flex: 999 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-text h3 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
}
.featured-cta {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-cta .btn { padding: 0 14px; }
.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.screens img { aspect-ratio: 16 / 9; }
@media (max-width: 560px) {
  .screens { grid-template-columns: 1fr; }
}

.jam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.jam {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}
.jam img { aspect-ratio: 315 / 250; }
.jam h3 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
}
.jam .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  margin-top: auto;
}
.all-games {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* phone */
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .intro h1 { font-size: 44px; }
  .section-head .num, .section-head h2 { font-size: 28px; }
  .featured { padding: 14px; }
}
