main {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 2rem;
}

/*
  Photo as a phosphor monitor: green duotone made with filters, full colour on hover.
  The hard offset shadow is a nod to old GUI windows.
*/
main img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--amber-deep);
  filter: grayscale(1) sepia(0.6) hue-rotate(60deg) saturate(2.2) brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease;
}

main img:hover {
  filter: none;
}

main h2 {
  margin: 0 0 1.5rem;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 10px hsl(39 98% 49% / 0.4);
}

main h2::after {
  content: "_";
  color: var(--green);
  animation: blink 1s step-end infinite;
}

main p {
  margin: 0 0 0.75rem;
}

/* Links as terminal "buttons" with inverse-video hover */
main a {
  display: inline-block;
  min-width: 14ch;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--fg);
}

main a::before {
  content: "→ ";
  color: var(--green-soft);
}

main a:hover,
main a:focus-visible {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--bg);
}

main a:hover::before,
main a:focus-visible::before {
  color: inherit;
}

@media (max-width: 700px) {
  main {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
    padding-top: 2.5rem;
    text-align: center;
  }
  main img {
    max-width: 220px;
  }
}
