@font-face {
  font-family: "jetbrains mono";
  src: url("/JetBrainsMono-Regular.woff2") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

:root {
  --clr-background: #f0ebd6;
  --clr-background-light: #f4f1e5;
  --sector-width: clamp(130px, 230 / 1440 * 100vw, 230px);
  --logo-sector-ratio: 50%;

  background: var(--clr-background);
}

.wrapper {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 1fr;
  place-items: center;

  > * {
    grid-area: 1 / 1;
  }
}

.logo {
  width: var(--logo-sector-ratio);
  height: auto;
  display: block;
  place-self: center;
}

.title {
  font-family: "jetbrains mono", monospace;
  font-weight: normal;
  font-size: calc(var(--sector-width) * 0.1);
  line-height: 1.66;
  color: #000;
  text-transform: uppercase;
  text-align: right;

  a {
    color: inherit;
  }
}

.bg-pattern {
  width: 100%;
  height: calc(var(--sector-width) * 1.9 * 1.5);
  /* background-color: pink; */
  background-image: url(/pattern.svg);
  background-repeat: repeat;
  background-position: center center;
  background-size: var(--sector-width) auto;
}

.content {
  display: grid;
  grid-template-columns: var(--sector-width) 1fr;
  align-items: center;

  /* temp */
  /* width: round(down, 90%, calc(var(--sector-width) / 1)); */
  width: round(down, 90%, var(--sector-width));
  max-width: round(down, 1240px, var(--sector-width));
}

.title {
  justify-self: end;
  margin: 0;
}

@media (max-width: 600px) {
  .content {
    width: 90%;
    grid-template-columns: 80px 1fr;
  }

  .logo {
    justify-self: start;
  }
}
