@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-VariableFont.ttf");
}

:root {
  --bg: #fff6f1;
  --bd: #e6dfdc;
  --text: #353231;
  --accent: #ff7518;

  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 100vh;

  background-color: var(--bg);
}

main {
  position: relative;

  width: 60%;
  min-height: 100vh;

  padding-top: 4rem;

  color: var(--text);
}

main p {
  line-height: 2rem;
  font-size: 1.2rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  padding: 0.4rem;

  background-color: var(--bg);
  border-bottom: 1px solid transparent;

  z-index: 1000;
  transition: all 0.2s ease;
}

header.scrolled {
  border-color: var(--bd);
  box-shadow: 4px 0 10px #00000010;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

header nav a {
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  width: auto;
  padding: 0.5rem;

  font-size: 1.2rem;
  text-decoration: none;
  color: #000;

  transition: all 0.2s ease;
}

header nav a::after {
  content: "";

  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;

  background-color: var(--accent);
  border-radius: 0.5rem;
  transition: width 0.2s ease;
}

header nav a:hover::after {
  width: 100%;
}

section {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
}

.section-header {
  display: block;
  width: fit-content;
  font-size: 1.8rem;
  position: relative;
  margin-bottom: 1rem;
  color: var(--accent);
}

#contact a {
  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.2s ease;
}

#contact a:hover {
  opacity: 0.6;
}

#contact a:active {
  opacity: 0.6;
}

#name {
  font-size: 1.65em;
}

hr {
  border: none;
  height: 2px;
  border-radius: 0.5rem;
  background-color: var(--bd);
}

footer {
  width: 100%;
  text-align: center;
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
  font-size: 1.25em;
  font-weight: 600;
}

@media screen and (max-width: 1200px) {
  main {
    width: 100%;
  }
  hr {
    border-radius: 0;
  }
}

@media screen and (max-width: 655px) {
  #profile-pic {
    display: none;
  }
  header nav {
    display: none;
  }
}
