:root {
  --background: #2b2b2b;
  --outline: #b8b8b8;
  --text: #d6d6d6;
}

* {
  box-sizing: border-box;
}

body::-webkit-scrollbar {
  display: none;
}

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 2rem;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--text);
}

body.project a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
body.project a:hover {
    opacity: 0.7;
}

h1 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

header,
.grid {
  max-width: 60rem;
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

#gif {
  display: block;
  margin: 0 auto;
  width: 200px;
  max-width: 50vw;     
  height: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
}

.square {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: 1rem;
  border: 1px solid var(--outline);
  text-decoration: none;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.square:hover,
.square:focus-visible {
  background: var(--text);
  color: var(--background);
}

.project {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.back {
  margin-bottom: 1rem;
}

body.project img {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  width: 600px;
  height: auto;
}

.date {
  display: block;
  margin-top: -3.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  position: relative;
}

.project p {
  max-width: 65rem;
  margin: 3px;
}

.next {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 1rem;
}

.next img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}