/* Pizzler shared theme. Every page on the site links this file. */
:root {
  --void: #07080F;
  --panel: #0E1020;
  --line: #2B2F5A;
  --text: #E8E6F2;
  --muted: #8D91B8;
  --ember: #FF4A2E;
  --cyan: #5CE1E6;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --pixel: "Silkscreen", "Courier New", ui-monospace, monospace;
  --term: "VT323", "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--term);
  background: radial-gradient(ellipse 80% 50% at 50% 100%, #1B1146 0%, var(--void) 70%);
  display: flex;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
/* perspective grid floor */
body::before {
  content: "";
  position: fixed;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 55vh;
  background-image:
    linear-gradient(rgba(92, 225, 230, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(62deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
          mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  z-index: -1;
  pointer-events: none;
}
/* scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 5;
}
main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 18vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  color: var(--ember);
  text-shadow: 0 0 28px rgba(255, 74, 46, 0.45);
}
h1.page-title {
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 32px;
}
.cursor {
  display: inline-block;
  width: 0.38em;
  height: 0.72em;
  margin-left: 0.12em;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(92, 225, 230, 0.7);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.back {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 20px;
}
.back:hover { color: var(--cyan); }
.back:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.project {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  padding: 18px 20px;
  min-height: 72px;
}
.project:hover {
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 var(--cyan);
}
.project:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--cyan); }
.project:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.project strong {
  display: block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.project span {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .project:active { transform: none; }
}
/* unfinished project: same card, not clickable */
.project.soon { pointer-events: none; cursor: default; }
