:root {
  box-sizing: border-box;
  max-width: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

::selection {
  background-color: var(--blue-dark-10);
  color: white;
}

body {
  margin: 0;

  width: 100%;
  min-height: 100%;

  background-color: var(--gray-light-20);
  color: black;

  font-family: "Roboto", sans-serif;
  font-size: 1em;
  line-height: 1.35;

  background-color: var(--gray-light-20);
  opacity: 1;
  background-size: 26px 26px;
  background-image: repeating-linear-gradient(
    to right,
    var(--gray),
    var(--gray) 1.3px,
    var(--gray-light-20) 1.3px,
    var(--gray-light-20)
  );
}

main {
  width: 800px;
  height: 100%;
  margin: 0 auto;

  background-color: var(--gray-light-20);
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
}

section > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 4.5rem;
  /* padding: 0 2rem; */
}

footer {
  height: var(--footer-height);
  margin: 1rem 0 0;
  padding: 1rem 2rem;

  text-align: center;
}

footer > span {
  color: var(--gray-dark-10);
}

footer a,
footer a:hover,
footer a:focus {
  transition: 200ms;
  color: inherit;
}

footer a:hover,
footer a:focus {
  color: inherit;
}

footer a::before {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2rem 0 1.35rem;
  margin: 32px 0 1em;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

h1 {
  font-size: 2rem;
  /* margin-bottom: 2rem; */
}

a {
  color: var(--blue-dark-20);

  position: relative;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--blue);
}

a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::before {
  transform: scaleX(1);
}

section[id="socials"] {
  height: 50vh;
}

section[id="socials"] > div {
  width: 60%;
  padding: 0;

  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}

section[id="socials"] div div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
}

section[id="socials"] div div:last-child button {
  width: 100%;
}

section[id="socials"] a:hover,
section[id="socials"] a:focus {
  color: inherit;
}

section[id="socials"] a::before {
  display: none;
}

section[id="socials"] button {
  transition: 200ms;

  height: 50px;
  width: 100%;
  max-height: 50px;

  border: none;
  border-radius: 0.5rem;

  background: var(--gray);

  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 500;

  cursor: pointer;
}

section[id="socials"] button:not([id="email-me"]) {
  height: 2rem;
  font-size: 1rem;
}

section[id="socials"] button:hover,
section[id="socials"] button:focus {
  background: var(--blue-light-10);
  color: white;
}

#email-me {
  background: var(--primary);
  color: white;
}

#email-me:hover,
#email-me:focus {
  background: var(--primary-light-10);
}

section[id="projects"] ul {
  list-style: none;

  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;

  gap: 28px 2rem;
}

section[id="projects"] h3 {
  margin: 0;
  margin-bottom: 1em;

  text-transform: capitalize;
}

section[id="projects"] p {
  margin: 0;
}

section[id="projects"] li div {
  transition: 110ms;

  height: 21.6vh;
  padding: 20px;

  border-radius: 1rem;
  background: var(--gray);
}

section[id="projects"] a {
  display: block;
  color: inherit;
}

section[id="projects"] a > div:hover,
section[id="projects"] a > div:focus {
  /* color: white; */
  background: var(--gray-light-20);

  color: white;
  background: var(--blue);
  /* outline: 3.5px solid var(--gray-dark-10); */
  outline: 3.5px solid white;
}

section[id="projects"] a::before {
  display: none;
}

.tile-wip {
  color: var(--gray-dark-10);
  font-weight: 500;
}

.btn {
  /* max-height: 3.875rem; */

  border-radius: 20px;
  margin: 0.5rem;
  padding: 1.25rem;
  text-align: center;

  border: none;

  color: white;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;

  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light-10);
}
.btn-primary:focus {
  outline: 4px solid var(--primary-light-20);
  outline-offset: 0.5rem;
}

.btn-skeleton {
  padding: calc(1.25rem - 0.25rem);

  background: #fff8;
  border: 0.25rem solid var(--primary);
  /* outline: 0.25rem solid var(--primary); */
  /* outline-offset: -0.25rem; */
  color: var(--primary);
}
.btn-skeleton:hover,
.btn-skeleton:focus {
  border-color: var(--primary-light-10);
  color: var(--primary-light-10);
}
.btn-skeleton:focus {
  outline: 4px solid var(--primary-light-20);
  outline-offset: 0.5rem;
}

.divider {
  font-size: 4rem;
  color: var(--gray-light-10);
  line-height: 0;
  text-align: center;
  user-select: none;
}

.clickable {
  transition: 200ms;

  display: inline-block;
  width: fit-content;

  cursor: pointer;
}

.clickable:hover,
.clickable:focus {
  color: var(--gray-dark-10);
}

#hero {
  font-family: "Inter", sans-serif;
  text-align: center;
}

#hero h1,
#hero h2 {
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#heading-name {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

#heading-title {
  margin-top: 0;
  margin-bottom: 1.05rem;
  font-size: 3rem;
}

#hero-text {
  margin: 0 0 3.25rem 0;
}
