@font-face {
    font-family: 'TMR';
    font-style: normal;
    font-weight: 400;
    src: url(/assets/fonts/body-web.woff2) format("woff2")
}

* {
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  border: none;
  box-sizing: border-box;
  text-decoration-thickness: 0.6px;
  text-decoration-color: var(--highlight);
  text-underline-offset: 0.3rem;
  text-decoration-skip-ink: none;
  box-sizing: border-box;
}

:root {
  --padding-top: calc(50vh - 3.6em - 1rem);
  --font-size-L: 160%;
}

@media (max-width: 1200px) {
  :root {
    --font-size-L: 140%;
  }
}

@media (max-width: 1000px) {
  :root {
    --padding-top: 0;
    --font-size-L: 160%;
  }
}

a {
  text-decoration: none;
  position: relative;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.logo {
  letter-spacing: -0.03em;
}

.logo span {
  margin-left: -0.02em;
}

html {
  position: relative;
  width: 100vw;
  height: 100dvh;
  font-family: "TMR";
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.2;
}

body {
  position: absolute;
  inset: 2rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-evenly;
  text-wrap: pretty;
  gap: 1.2em;
}

@media (max-width: 1000px) {
  body {
    flex-direction: column;
    justify-content: start;
  }
}

#banner {
  padding-top: var(--padding-top);
}

#banner .logo {
  font-size: var(--font-size-L);
}

header {
  padding-top: var(--padding-top);
}

h1 {
  font-size: var(--font-size-L);
}

h1 span {
  display: block;
}

main {
  max-width: 37rem;
  padding-top: var(--padding-top);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  main {
    max-width: 33rem;
  }
}

@media (max-width: 1000px) {
  main {
    flex-grow: 2;
    max-width: 37rem;
  }
}

#description {
  font-size: var(--font-size-L);
  margin-bottom: auto;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.2rem;
}

nav {
  font-size: var(--font-size-L);
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  gap: 1.2rem;
}

nav #link_email:after {
  content: "still active!";
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  transform: rotate(6deg);
  font-size: 1rem;
  white-space: nowrap;
}

footer p {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.3em;
}

@media (max-width: 500px) {
  nav {
    flex-grow: 2;
    align-self: stretch;
    gap: 0.5rem;
    margin: 0 -0.25rem;
  }
  nav a {
    font-size: 85%;
    flex-grow: 2;
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 3.5rem;
    padding: 0 2rem 0.15em;
    border-radius: 10rem;
    background: rgba(127.5,127.5,127.5,0.075);
  }
  nav a span {
    display: none;
  }
  nav #link_email:before {
    content: "email";
  }
  nav #link_email:after {
    top: -0.6rem;
    right: 0.9rem;
  }
  nav #link_url:before {
    content: "website";
  }
  footer p {
    order: -1;
    width: 100%;
  }
  footer p span {
    font-size: 90%;
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}
