@font-face {
  font-family: "Geist Pixel";
  font-style: normal;
  font-weight: 400;
  src:
    url("https://raw.githubusercontent.com/vercel/geist-font/geist%401.7.0/fonts/GeistPixel/webfonts/GeistPixel-Square.woff2")
      format("woff2"),
    url("https://raw.githubusercontent.com/vercel/geist-font/geist%401.7.0/fonts/GeistPixel/otf/GeistPixel-Square.otf")
      format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: "Geist Pixel", "Courier New", Courier, monospace;
  padding: 20px;
  image-rendering: pixelated;
  overflow: hidden;
}

/* ── pulsing grid background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 80px);
  grid-template-rows: repeat(var(--rows), 80px);
  gap: 3px;
  pointer-events: none;
}

.grid-bg > div {
  background: #111;
  border: 1px solid #1a1a1a;
  transition: background 0.6s ease, border-color 0.6s ease;
}

.grid-bg > div.alive {
  background: #3d2000;
  border-color: #7c4400;
}

.card {
  width: min(92vw, 520px);
  border: 3px solid #333;
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 10px);
  position: relative;
  z-index: 1;
  background: #0a0a0a;
}

/* corner accents */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #f59e0b;
  border-style: solid;
}

.card::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}

/* blinking cursor */
h1::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: #f59e0b;
}

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

.role {
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.3;
  color: #888;
  margin-top: 2px;
}

.school {
  font-size: clamp(12px, 1.8vw, 15px);
  line-height: 1.3;
  color: #555;
}

.divider {
  border: none;
  border-top: 1px dashed #333;
  margin: clamp(8px, 1.5vw, 14px) 0;
}

.contacts {
  display: grid;
  gap: 4px;
}

.contacts p {
  font-size: clamp(12px, 1.6vw, 15px);
}

.contacts p::before {
  content: "> ";
  color: #b45309;
}

a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.1s step-end;
}

a:hover,
a:focus-visible {
  color: #f59e0b;
}
