/* self.aleksa.cc — portfolio. Same handmade game-screen look as pygame.aleksa.cc.
   Palette: ink #14161d, amber 255,179,71, plus teal / pink / green accents. */

@font-face {
  font-family: "PressStart";
  src: url("/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #14161d;
  --panel: #1c1f2a;
  --panel2: #232736;
  --line: #2c3040;
  --text: #e7e4d8;
  --dim: #8b8fa0;
  --amber: #ffb347;
  --teal: #6fd3c7;
  --pink: #ff7a9e;
  --green: #8ec98a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }
body {
  font-family: "VT323", monospace;
  font-size: 22px;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  line-height: 1.35;
}

/* faint CRT scanlines + vignette; barely there */
body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.28) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 999;
}

::selection { background: var(--amber); color: var(--ink); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--amber); }

.px { font-family: "PressStart", monospace; line-height: 1.6; }

/* ------------------------------------------------ HUD header */
header.hud {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 2px solid var(--line);
  background: var(--panel);
}
header.hud .logo { font-size: 13px; color: var(--amber); letter-spacing: 1px; }
header.hud .logo a { color: var(--amber); }
header.hud nav { display: flex; gap: 20px; font-size: 22px; flex-wrap: wrap; }
header.hud nav a.here { color: var(--amber); border-bottom: 2px solid var(--amber); }

main { max-width: 1080px; margin: 0 auto; padding: 8px 20px 90px; }

/* ------------------------------------------------ panels with pixel-cut corners */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 22px;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px,
    100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}

.kicker { font-size: 11px; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }

.btn {
  font-family: "PressStart", monospace;
  font-size: 12px;
  color: var(--text);
  background: var(--panel2);
  border: 2px solid var(--text);
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  user-select: none;
  display: inline-block;
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.ghost { border-color: var(--line); color: var(--dim); box-shadow: none; }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--panel2); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}

/* ------------------------------------------------ hero */
.hero { text-align: center; padding: 40px 0 10px; }
.hero h1 {
  font-family: "PressStart", monospace;
  font-size: clamp(20px, 4.4vw, 40px); color: var(--amber);
  text-shadow: 4px 4px 0 #000; letter-spacing: 2px; line-height: 1.4;
}
.hero .sub { font-size: 27px; color: var(--dim); margin-top: 20px; }
.hero .sub b { color: var(--text); font-weight: normal; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#play { display: block; width: 100%; height: 300px; border: 2px solid var(--line);
  background: #101218; margin: 24px 0 6px; image-rendering: pixelated; }
.playhint { color: var(--dim); font-size: 18px; text-align: center; margin-bottom: 8px; }

.ctaband { display: flex; gap: 16px; justify-content: center; margin: 26px 0 8px; flex-wrap: wrap; }

/* ------------------------------------------------ stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0; }
.stat { border: 2px solid var(--line); background: var(--panel); padding: 16px; text-align: center; }
.stat .num { font-family: "PressStart", monospace; font-size: 22px; color: var(--amber); }
.stat .lbl { font-size: 17px; color: var(--dim); margin-top: 8px; }

/* ------------------------------------------------ section head */
.section { margin: 52px 0 0; }
.section > h2 {
  font-family: "PressStart", monospace; font-size: 15px; color: var(--text);
  letter-spacing: 1px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.section > h2::before { content: "\25B6"; color: var(--amber); font-size: 12px; }
.section > .lede { color: var(--dim); font-size: 20px; margin: 6px 0 20px; }

/* ------------------------------------------------ project grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.proj {
  background: var(--panel);
  border: 2px solid var(--line);
  border-top: 6px solid var(--c, var(--amber));
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .09s;
}
.proj:hover { transform: translateY(-4px); border-color: var(--c); }
.proj .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.proj h3 { font-family: "PressStart", monospace; font-size: 13px; color: var(--c, var(--amber)); }
.proj .live { font-size: 15px; color: var(--dim); white-space: nowrap; }
.proj .live a { color: var(--teal); }
.proj p { font-size: 20px; color: var(--text); }
.proj .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.proj .tag {
  font-size: 14px; color: var(--dim); border: 1px solid var(--line);
  padding: 1px 8px; white-space: nowrap;
}
.proj.wide { grid-column: 1 / -1; }

/* ------------------------------------------------ pattern callout */
.pattern {
  border: 2px dashed var(--line); background: var(--panel);
  padding: 18px 20px; margin: 22px 0 0; font-size: 21px; color: var(--dim);
}
.pattern b { color: var(--amber); font-weight: normal; }

/* ------------------------------------------------ models */
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.models .m {
  font-size: 16px; color: var(--teal); border: 1px solid var(--teal);
  padding: 2px 10px;
}
.models .m span { color: var(--dim); }

/* ------------------------------------------------ featured work (with screenshots) */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--panel); border: 2px solid var(--line);
  border-left: 6px solid var(--c, var(--amber));
  margin-bottom: 20px; overflow: hidden;
}
.feature.flip { grid-template-columns: 1fr 1.05fr; }
.feature .shotwrap { background: #0e1017; border-right: 2px solid var(--line); display: block; }
.feature.flip .shotwrap { order: 2; border-right: none; border-left: 2px solid var(--line); }
.feature .shot { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: top center; display: block; }
.feature .body { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.feature .role { font-size: 17px; color: var(--c, var(--amber)); letter-spacing: 1px; text-transform: uppercase; }
.feature h3 { font-family: "PressStart", monospace; font-size: 16px; color: var(--text); line-height: 1.5; }
.feature p { font-size: 20px; color: var(--text); }
.feature .meta { font-size: 18px; color: var(--dim); }
.feature .meta b { color: var(--text); font-weight: normal; }
.feature .stackrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.feature .tag { font-size: 15px; color: var(--dim); border: 1px solid var(--line); padding: 1px 9px; }
.feature .links { margin-top: 8px; font-size: 18px; }
.feature .links a { color: var(--teal); }
.feature .shotpair { display: grid; grid-template-rows: 1fr 1fr; height: 100%; }
.feature .shotpair img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.feature .shotpair img:first-child { border-bottom: 2px solid var(--line); }

/* small screenshot thumb inside a proj card */
.proj .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center;
  border: 1px solid var(--line); background: #0e1017; display: block; }

/* ------------------------------------------------ about */
.about { font-size: 21px; color: var(--text); }
.about p { margin-bottom: 14px; }
.about b { color: var(--amber); font-weight: normal; }

/* ------------------------------------------------ footer */
footer { text-align: center; color: var(--dim); font-size: 19px; padding: 46px 0 20px; margin-top: 40px; border-top: 2px solid var(--line); }
footer .px { font-size: 9px; margin-top: 10px; color: #4a4e5e; }
footer a { color: var(--teal); }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  header.hud nav { gap: 12px; font-size: 19px; }
  .proj.wide { grid-column: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature .shotwrap, .feature.flip .shotwrap { order: 0; border-right: none; border-left: none; border-bottom: 2px solid var(--line); }
  .feature .shot { min-height: 200px; }
}
