:root {
  --blackish: oklch(0.252 0 0);
  --whiteish: oklch(0.9672 0 0);
  --greyish: oklch(from var(--whiteish) 0.7 c h);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--blackish);
  color: var(--whiteish);
  line-height: 1.6;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  color: var(--whiteish);
  padding: 1rem 1.5rem;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 5rem 1rem;
  margin: 0 auto;
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

nav a {
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--whiteish);
  transition: color 0.3s ease;
}

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

nav a.active {
  font-size: 1.875rem;
  text-decoration: underline;
}

.logo {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

main section {
  margin: 0 auto;
  height: 100%;
  max-width: 64rem;
}

h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.2rem, 5vw, 3.125rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 7vw, 3rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 400;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

.skill-tag {
  display: inline-block;
  white-space: nowrap;
  border-radius: 9999px;
  background-color: var(--whiteish);
  padding: 0.125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blackish);
}

.hover-bg {
  transition: background-color 0.3s ease;
}

.hover-bg:hover {
  background-color: oklch(from var(--whiteish) l c h / 0.05);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: oklch(from var(--whiteish) l c h / 0.1);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--whiteish);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--greyish);
}

@media (min-width: 640px) {
  header {
    flex-direction: row;
    padding: 1rem 1.5rem;
  }

  nav a {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  main {
    padding: 10rem 1rem;
  }
}

@media (min-width: 1024px) {
  main {
    padding: 10rem 5rem;
  }
}