@import url("https://fonts.cdnfonts.com/css/stretch-pro");
@import url("https://fonts.bunny.net/css?family=outfit:400,500,600,700,800,900");
@import url("https://fonts.bunny.net/css?family=jetbrains-mono:400,400i");
@import url("./hero.css");
@import url("./socials.css");
@import url("./footer.css");
@import url("./projects-grid.css");
@import url("./glowy-button.css");
@import url("./links-list.css");
@import url("./blog-post.css");
@import url("./404.css");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

code {
  font-family: "JetBrains Mono", monospace;
}

body {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: Outfit, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;

  /* fallback height */
  min-height: 100vh;

  /* new small viewport height for modern browsers */
  min-height: 100svh;
}

header {
  margin: 5vw 5vw 1vw 5vw;
}

main {
  margin: 0 5vw;

  h1 {
    display: flex;
    align-items: center;
    font-size: 28pt;
    margin-top: 0.5ch;
    margin-bottom: 0.5ch;

    &::after {
      content: "";
      background-color: var(--text);
      margin-left: 0.75ch;
      width: 100%;
      height: 2px;
    }

    a {
      text-decoration: none;
      flex-shrink: 0;
    }
  }

  summary,
  p {
    font-size: 16pt;
  }

  section:not(:last-child) {
    margin-bottom: 28pt;
  }
}

.to-blog {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;


  h2 {
    margin: 10px;
  }

  h2::after {
    content: none;
  }
}


hr {
  width: 100%;
  color: var(--text);
  margin: 10px 0px;
}

footer {
  margin-top: 5vw;

  p {
    font-size: 12pt;
    margin: 0;
  }
}

header p {
  font-size: 18pt;
  font-weight: 600;
  margin: 0;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

summary:hover {
  cursor: pointer;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

/* Gradient */
.background-gradient {
  width: 100lvw;
  height: 100lvh;
  background: linear-gradient(in oklab, var(--overlay-2), var(--bg));
  position: fixed;
  transform: translateY(-5vw);
  z-index: -1;
}

.giallo-l {
  display: inline-block;
  min-height: 1lh;
  width: 100%;
}

.giallo-ln {
  display: inline-block;
  margin-right: 0.4em;
  padding: 0.4em;
  min-width: 3ch;
  text-align: right;
  opacity: 0.8;
}
