@font-face {
  font-family: "satoshi";
  src: url("font/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "satoshi";
  src: url("font/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "satoshi";
  src: url("font/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-white: #FDFDFD;
  --color-grey: #7d7d7d;
  --color-black: #1A1A1A;
  --font-primary: "satoshi", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-black);
  font-family: var(--font-primary), arial;
  background-color: var(--color-white);
  margin: 0;
}

/*************************************************************************
TYPOGRAPHY 
************************************************************************* */

h1 {
  font-size: clamp(6rem, 20vw, 25rem);
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
  margin-bottom: 20px;
  padding: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2 {
  font-size: 2.7rem;
  margin: 0;
  text-wrap: balance;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
  max-width: 700px;
}

p,
ul,
.thumbnail {
  font-family: arial;
  max-width: 700px;
  font-size: 1rem;

}

.thumbnail {
  max-height: 80vh;
}

li {
  list-style: square;
}

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

hr {
  border: 1px solid var(--color-black);
}

mark {
  background-color: var(--color-black);
  color: var(--color-white);
}

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

/*************************************************************************
LAYOUT 
************************************************************************* */

.bodyWrapper {
  display: flex;
  flex-direction: row;
}

#top {
  min-height: 100vh;
}

main {
  width: calc(100vw - 160px);
}

section,
footer,
header {
  display: flex;
  flex-direction: column;
  padding: 0 50px;
  justify-content: space-between;
  padding-bottom: 2rem;
}

header {
  justify-content: flex-start;
}


footer {
  background-color: var(--color-black);
  color: var(--color-white);
}

.contactRow {
  justify-content: flex-end;
  text-align: right;
}

.contactRow a:hover {
  color: var(--color-black);
  background-color: var(--color-white);
}

/*************************************************************************
NAVIGATION AND ASIDE
************************************************************************* */

nav {
  right: 0;
  padding: 0;
}

aside {
  right: 80px;
}

nav,
aside {
  position: fixed;
  border-left: 2px solid var(--color-black);
  z-index: 999;
  background-color: var(--color-white);
  height: 100vh;
  width: 80px;
  flex-direction: column;
  align-items: center;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

nav a {
  writing-mode: vertical-lr;
  display: block;
}

nav h2 {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.color-toggle {
  width: 100%;
  flex: 1;
  cursor: pointer;
}

nav h2:has(.active) {
  background-color: var(--color-black);
}

nav h2:has(.active) a {
  color: var(--color-white);
}

nav h2:hover {
  background-color: var(--color-black);
}

nav h2:hover a {
  color: var(--color-white);
}

.active {
  color: var(--color-white);
  background-color: var(--color-black);
}

/*************************************************************************
COLLAPSIBLES 
************************************************************************* */

header summary {
  list-style-type: '(more)';
  border: none;

}

header details[open]>summary {
  list-style-type: '(less)';
}

summary {
  font-size: clamp(1.5rem, 2vw, 2rem);
  border-bottom: 2px solid var(--color-black);
  padding: 0.3rem;
  font-weight: 700;
  font-size: 2.7rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

summary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
}

.thumbnail {
  cursor: pointer;
}

.hover:hover {
  color: var(--color-white);
  background-color: var(--color-black);
  cursor: pointer;
}

.hover-image-container {
  position: fixed;
  bottom: -150%;
  left: 55%;
  transform: translateX(-50%);
  opacity: 0;
  transition: bottom 0.8s ease-in-out, opacity 0.5s ease;
  z-index: 999999999;
  pointer-events: none;
}

.hover-image {
  width: 600px;
  transform: translateY(50%);
  transition: transform 0.8s ease-in-out;
}

.hover-image-container.show {
  bottom: 0;
  opacity: 1;
}

.hover-image-container.show .hover-image {
  transform: translateY(0);
}

.cv-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-black);
  font-size: 1.5rem;
}

.cv-entry span {
  display: block;
}

#resume h2 {
  margin-top: 2rem;
}





@media (max-width: 1000px) {
  html {
    cursor: auto;
    line-height: 1.3;
  }

  main {
    width: 100vw;
    padding-left: 5px;
    padding-right: 5px;
  }

  p {
    max-width: 100%;
  }

  h1 {
    position: sticky;
    top: 0;
  }

  section,
  footer,
  header {
    width: 100%;
    padding: 0;
  }

  .thumbnail {
    max-width: 100%;
    max-height: 80vh;
  }

  nav,
  aside,
  #customCursor {
    display: none;
    width: 0;
  }


}