@font-face {
  font-family: "VCR OSD Mono";
  src: url("fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0e;
  --bg-elevated: #141416;
  --ink: #ecece8;
  --muted: #8a8a90;
  --faint: #5c5c64;
  --line: #26262b;
  --line-strong: #34343c;
  --accent: #7e908e;
  --accent-hover: #93a5a3;
  --accent-dim: rgba(126, 144, 142, 0.14);
  --mono: "VCR OSD Mono", ui-monospace, monospace;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  font-family: var(--mono);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(126, 144, 142, 0.09), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(3rem, 1fr) auto minmax(5rem, 1.35fr) auto minmax(2.5rem, 0.85fr);
  justify-items: center;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  animation: rise 0.5s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.greeting {
  grid-row: 2;
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1;
}

.projects {
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 40rem;
  margin: 0;
}

.project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: clamp(0.75rem, 1.8vw, 1rem) clamp(1.2rem, 3.5vw, 1.65rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.05rem, 2.6vw + 0.35rem, 1.35rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.project:hover,
.project:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.project:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

@media (max-width: 1024px) {
  .projects {
    max-width: 24rem;
    gap: 1rem 1.25rem;
  }

  .project {
    min-height: 3.35rem;
    padding: 1rem 1.65rem;
    font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  }
}

@media (max-width: 720px) {
  .shell {
    grid-template-rows: minmax(2.5rem, 0.9fr) auto minmax(4rem, 1.2fr) auto minmax(2rem, 0.8fr);
  }

  .projects {
    flex-direction: column;
  }

  .project {
    width: min(100%, 20rem);
    min-height: 3.5rem;
    font-size: 1.35rem;
    padding: 1.05rem 1.75rem;
  }
}
