* { 
  box-sizing: border-box; 
}
/* Everything is border-box so fits neatly within things even if borders are added. */

html {
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, sans-serif;
  color: #1c1917;
  background: #f8f5ef;
}

header,
main,
footer {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  /* display: flex; */
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
  background: #f8f5ef;
  border-bottom: 1px solid #d6d3d1;
}

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

main {
  padding: 2rem 0 4rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid #d6d3d1;
}

h1,
h2,
h3,
p,
ul {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 0.75rem;
}

ul {
  padding-left: 1.25rem;
}

article {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 0.75rem;
}

#profile {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 3rem;
  align-items: start;
}

#pfp {
  margin-top: 15px;
  margin-left: 15px;
  max-width: 140px;
}

#tools > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

footer {
  padding: 1.5rem 0 3rem;
}

@media (max-width: 700px) {
  header {
    position: static;
  }

  #profile,
  #tools > div {
    grid-template-columns: 1fr;
  }
}
