@import url(https://fonts.bunny.net/css?family=albert-sans:400,800);
@import url(/css/colours.css);

code {
  background: var(--background-text);
  color: var(--text);
  padding: 2px 4px;
  border-radius: var(--radius);
}

h1 {
  letter-spacing: -4%;
}

h2,
h3 {
  letter-spacing: -3%;
  margin: calc(2*var(--margin)) 0
}

h1,
h2,
h3 {
  margin-bottom: 0px;
}

.header h1 {
  margin-bottom: 0.5em;
}

ul,
ol {
  padding-left: calc(4*var(--margin));
}

li::marker {
  color: var(--link);
}


ul.posts>li {
  margin-top: var(--margin);
}

pre.codeblock {
  background: var(--background-text);
  color: var(--text);
  padding: 2px 4px;
  border-radius: var(--radius);
  width: 100%;
}

html {
  color: var(--text);
  background-color: var(--background);
  font-family: 'Albert Sans', sans-serif;
}

body {
  background-color: initial !important;
  font-variant-ligatures: none;
}

a {
  color: var(--link);
  transition: 0.1s ease-in-out;
  text-decoration: none;
}

a:visited {
  color: var(--link);
}

a:hover {
  color: var(--link-visited);
}

body {
  min-height: 100vh;
  min-width: 100vw;
  margin: 0px;
  padding: 0px;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1.3;
}

#content {
  display: grid;
  grid-template-areas:
    "header1 header1 header1"
    "content1 content2 content2"
    "footer1 footer2 footer3"
  ;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: var(--gap);
  padding: var(--padding);
}

#content>div {
  background: var(--background);
  border: var(--border-thickness) solid var(--border);
  border-radius: var(--radius);
  padding: var(--padding);
  align-content: center;
}

#content>div:nth-child(3n+1) {
  border-color: var(--border2);
}

#background {
  position: fixed;
  z-index: -3;

  top: 50%;
  left: 50%;

  color: var(--background-text);
  opacity: 0.3;

  aspect-ratio: 1/1;

  font-size: 1.5em;

  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(-45deg);

  align-content: center;
  text-align: center;
}

@media (max-width:800px) {
  #content {
    grid-template-areas:
      "header1"
      "content1"
      "content2"
      "footer1"
      "footer2"
      "footer3"
    ;
    grid-template-columns: 1fr;
  }
}
