:root {
  --padding: 2rem;
  --color-black: #0f0f0d;
  --color-white: #f0f0f0;
  --color-grey: #777;
  --color-background: var(--color-black);
  --font-family: "chercan", sans-serif;
  --font-family-mono: "zeitung-mono", monospace;
}

html {
  font-family: var(--font-family);
  color: var(--color-white);
  background: var(--color-background);
  overflow-x: hidden;
}

::-moz-selection {
  color: var(--color-white);
  background: var(--color-grey);
}

::selection {
  color: var(--color-white);
  background: var(--color-grey);
}

img {
  width: 100%;
}
body {
  padding: 0;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: underline dotted var(--color-grey);
  text-underline-offset: 0.15em;
}
.buttons a {
  text-decoration: none;
}
strong,
b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

h1 {
  font-size: 5.9vw;
}
h2 {
  font-size: 3vh;
}
p {
  font-size: clamp(1rem, 0.9vw, 1.25rem);
  line-height: 1.25;
  max-width: 60ch;
}

main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

#logo {
  width: 9vw;
  min-width: 7.5rem;
  max-width: 10rem;
  padding: var(--padding) var(--padding) 0 var(--padding);
}

.text {
  padding: var(--padding);
}

p:first-of-type {
  color: #97a97c;
  margin-top: 0;
}

.logoandtext,
.buttons {
  min-height: 100vh;
}

.buttons {
  display: inline-grid;
}

button {
  /* font-family: var(--font-family-mono); */
  /* font-family: 'utile'; */
  font-family: "massilia-variable", sans-serif;
  font-variation-settings: "wght" 200;
  font-size: clamp(1.5rem, 1.5vw, 3rem);
  color: var(--color-black);
  letter-spacing: 0.05rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  padding: var(--padding);
  transition: all 0.25s ease-in-out;
}

button a {
  display: block;
}

button:hover {
  /* font-size: clamp(1.5rem, 1.75vw, 3rem); */
  font-variation-settings: "wght" 800;
  padding: 3rem;
}

button span {
  color: #87986a;
}

button:nth-of-type(1) {
  background-color: #e9f5db;
}

button:nth-of-type(2) {
  background-color: #cfe1b9;
}

button:nth-of-type(3) {
  background-color: #b5c99a;
}

button:nth-of-type(4) {
  background-color: #97a97c;
}

button:nth-of-type(5) {
  background-color: #87986a;
  /* color: var(--color-white) */
}

#logo .cls-1 {
  transition: all 0.25s ease-in-out;
}

#logo:hover .cls-1 {
  fill: #b5c99a;
}

.cclq {
  transform-origin: center;
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: rotate;
  -moz-animation-duration: 20s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  animation-name: rotate;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes rotate {
  from {
    -moz-transform: rotate(0deg);
  }
  to {
    -moz-transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* .cclq:hover {
  -webkit-animation-duration: 10s; 
  -moz-animation-duration: 10s; 
  animation-duration: 10s;
} */

@media screen and (max-width: 40rem) {
  #logo {
    padding: 1.5rem 1rem 0 1rem;
  }

  .text {
    padding: 1rem;
  }
}
