@font-face {
  font-family: "TeXGyreTermes";
  src: url("./files/fonts/TeXGyreTermes-Bold.woff2") format("woff2"),
    url("./files/fonts/TeXGyreTermes-Bold.woff") format("woff"),
    url("./files/fonts/TeXGyreTermes-Bold.svg#TeXGyreTermes-Bold") format("svg");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeXGyreTermes";
  src: url("./files/fonts/TeXGyreTermes-Regular.woff2") format("woff2"),
    url("./files/fonts/TeXGyreTermes-Regular.woff") format("woff"),
    url("./files/fonts/TeXGyreTermes-Regular.svg#TeXGyreTermes-Regular")
      format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./files/fonts/NimbusSanL-Reg.woff2") format("woff2"),
    url("./files/fonts/NimbusSanL-Reg.woff") format("woff"),
    url("./files/fonts/NimbusSanL-Reg.ttf") format("truetype"),
    url("./files/fonts/NimbusSanL-Reg.svg#NimbusSanL-Reg") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nimbus Sans L";
  src: url("./files/fonts/NimbusSanL-Bol.woff2") format("woff2"),
    url("./files/fonts/NimbusSanL-Bol.woff") format("woff"),
    url("./files/fonts/NimbusSanL-Bol.ttf") format("truetype"),
    url("./files/fonts/NimbusSanL-Bol.svg#NimbusSanL-Bol") format("svg");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family-default: "Helvetica Neue", "Nimbus Sans L", sans-serif;
  --font-family-accent: "Times", "TeXGyreTermes", serif;

  --font-size-xlarge: 3rem;
  --font-size-large: 2.2rem;
  --font-size-medium: 1.6rem;
  --font-size-small: 1.4rem;
  --font-size-xsmall: 0.8rem;

  --spaceing-xxl: 5em;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: calc(12px + (17 - 12) * ((100vw - 300px) / (1600 - 300)));
  background-color: #fcfcfc;
  font-family: var(--font-family-default);
  display: flex;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  text-decoration: underline;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 2em 1em;
  width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-medium);
  padding-right: 4em;
}

.logo {
  font-weight: 500;
  line-height: 1.4;
  margin-left: 1em;
}

.logo__e {
  margin-left: 2rem;
}

.logo__d {
  display: block;
  margin-top: 1rem;
  margin-left: 1rem;
}

.name {
  font-size: var(--font-size-small);
}

@media screen and (max-width: 680px) {
  header {
    flex-direction: column;
    padding-right: 1em;
  }

  .logo {
    font-size: var(--font-size-xlarge);
  }

  .name {
    font-size: calc(12px + (17 - 12) * ((100vw - 300px) / (1600 - 300)));
    align-self: flex-end;
    margin-top: 2rem;
  }
}

.text-vertical {
  transform: rotate(-90deg);
  white-space: nowrap;
  display: block;
  align-self: center;
  margin-top: 3em;
  transform-origin: left;
  margin-left: 2em;
}

main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex: 1;
}

@media screen and (max-width: 680px) {
  main {
    flex-direction: column;
    padding-top: 100px;
  }
  .text-vertical {
    align-self: flex-start;
  }
}

.section {
  display: flex;
  flex: 1;
  margin-left: 1em;
  height: 100%;
}

@media screen and (max-width: 860px) {
  .section {
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 3em;
  }
}

.section__title {
  margin: 25vmin 6em 6em 0;
}

.section__content {
  margin-right: 2em;
  display: flex;
  flex-direction: column;
}

.experience {
  font-size: var(--font-size-large);
  font-size: calc(28px + (36 - 28) * ((100vw - 300px) / (1600 - 300)));
  font-family: var(--font-family-accent);
  font-weight: 100;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-top: auto;
}

@media screen and (max-width: 680px) {
  .experience {
    font-size: var(--font-size-medium);
  }
}

footer {
  display: flex;
  font-size: var(--font-size-xsmall);
  font-family: var(--font-family-default);
  font-weight: 500;
  margin-top: auto;
}

@media screen and (max-width: 680px) {
  footer {
    margin-left: 0em;
    margin-top: 8em;
    padding-bottom: 1em;
    justify-content: start;
  }
}

footer div {
  display: flex;
  flex-direction: column;
}

.spacer--xxl {
  --space: var(--spaceing-xxl);
}

.spacer > * + * {
  margin-left: var(--space, 1em);
}
