:root {
  --primary-color: #2d4150;
  --bg-color: #ffffff;
  --bg-color-hover: #faf5f1;
  --accent-color: #ff582f;
  --body-text: #7e8890;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 0;
  margin: 0;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

p {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: var(--body-text);
  line-height: 1.4;
  font-size: 1rem;
}

.link {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: var(--primary-color);
  line-height: 1.4;
  font-size: 1.5rem;
  text-align: center;
  text-decoration: none;
}

.container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: #2d415050;
  min-height: calc(100dvh / 3 * 2);
  grid-auto-rows: 1fr;
}

.header .object {
  display: flex;
  flex-direction: column;
  align-items: top;
  justify-content: start;
  background-color: var(--bg-color);
  padding: 1rem;
}

.header .animation {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  padding: 1rem;
  position: relative;
}

.circle {
  width: 15vw;
  height: 15svw;
  border-radius: 50%;
  background: radial-gradient(#ffa565, #ff582f);
  position: absolute;
}

.circle.blur {
  filter: blur(1rem);
  z-index: 1;
  animation: heartbeat 2s ease-in-out infinite;
}

.circle:not(.blur) {
  z-index: 2;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
  background-color: #2d415050;
  padding-top: 2px;
  height: calc(100vh / 3);
}

.content .object {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  padding: 1rem;
  transition: all 0.2s ease-in-out;
  color: var(--primary-color);
}

.content .object:hover {
  background-color: var(--bg-color-hover);
  box-shadow: 0 -2px #2d4150;
}

@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr 1fr;
  }

  .header {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }
}

@media (min-width: 1440px) {
  p {
    font-size: calc(100vw / 1440 * 16);
  }

  .link {
    font-size: calc(100vw / 1440 * 24);
  }

  h1 {
    font-size: calc(100vw / 1440 * 48);
  }

  h2 {
    font-size: calc(100vw / 1440 * 32);
  }

  .author-links a {
    font-size: calc(100vw / 1440 * 16) !important;
  }

  .circle.blur {
    filter: blur(2rem);
  }

  .authors-list {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr !important;
  }
}

.authors-list {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  background-color: #2d415050;
  min-height: 100vh;
  gap: 2px;
}

.authors-list .author {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  padding: 1rem;
  flex: 1;
}

hr {
  width: 100%;
  height: 2px;
  border: none;
  background-color: var(--primary-color);
  margin: 0;
  opacity: 0.2;
}

.author-links {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.author-links a {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  text-decoration: underline;
  color: var(--primary-color);
  transition: all 0.2s ease-in-out;
}

.author-links a:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

::selection {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

::-moz-selection {
  background-color: var(--accent-color);
  color: var(--bg-color);
}
