:root {
  --bg: #f4f1e8;
  --text: #111111;
  --button-bg: rgba(255, 255, 255, 0.10);
  --button-hover-bg: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  padding: 48px 24px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 420ms ease, color 420ms ease;
}

main {
  width: min(100%, 980px);
  margin: 0 auto;

  /* Pushes the buttons down so they sit closer to the bottom of the page. */
  min-height: calc(100svh - 96px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(28px, 8vh, 90px);
}

.project-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 30px;
}

.project-link {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px 24px;
  border: 4px solid currentColor;
  border-radius: 999px;
  background: var(--button-bg);
  color: inherit;
  text-decoration: none;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-4px) scale(1.01);
  background: var(--button-hover-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  outline: none;
}

.project-link:active {
  transform: translateY(-1px) scale(0.99);
}

@media (max-width: 760px) {
  body {
    padding: 28px 20px;
  }

  main {
    min-height: calc(100svh - 56px);
    padding-bottom: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-link {
    min-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .project-link {
    transition: none;
  }
}
