@font-face {
  font-family: "Ubuntu Mono", monospace;
  src: url("assets/Ubuntu_Mono/UbuntuMono-Regular.tff") format("truetype"),
    url("assets/Ubuntu_Mono/UbuntuMono-Bold.tff") format("truetype");
}
:root {
  --theme1-bg: 216 18% 16%;
  --theme1-text: 0 0% 93%;
  --theme1-accent: 183 26% 57%;
  --theme1-box: 219 12% 22%;

  --theme2-bg: 219 38% 90%;
  --theme2-text: 212 64% 19%;
  --theme2-accent: 213 47% 47%;
  --theme2-box: 0 14% 97%;

  --theme3-bg: 213 73% 22%;
  --theme3-text: 350 79% 59%;
  --theme3-accent: 0 3% 88%;
  --theme3-box: 223 48% 16%;

  --theme4-bg: 26 100% 97%;
  --theme4-text: 352 27% 52%;
  --theme4-accent: 174 12% 53%;
  --theme4-box: 30 100% 89%;
}

.theme1 {
  --color-bg: var(--theme1-bg);
  --color-text: var(--theme1-text);
  --color-accent: var(--theme1-accent);
  --color-box: var(--theme1-box);
}
.theme2 {
  --color-bg: var(--theme2-bg);
  --color-text: var(--theme2-text);
  --color-accent: var(--theme2-accent);
  --color-box: var(--theme2-box);
}
.theme3 {
  --color-bg: var(--theme3-bg);
  --color-text: var(--theme3-text);
  --color-accent: var(--theme3-accent);
  --color-box: var(--theme3-box);
}
.theme4 {
  --color-bg: var(--theme4-bg);
  --color-text: var(--theme4-text);
  --color-accent: var(--theme4-accent);
  --color-box: var(--theme4-box);
}

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

a {
  text-decoration: none;
}

html {
  overflow-y: scroll;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Ubuntu Mono", monospace;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  background-color: hsl(var(--color-bg));
  color: hsl(var(--color-text));
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
textarea,
button {
  font: inherit;
}
.nav {
  display: flex;
  justify-content: center;
}

.theme-btn {
  margin-top: 2rem;
  border: 2px solid hsl(var(--color-text));
  height: 1.6rem;
  width: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(
    to right,
    hsl(var(--color-bg)) 50%,
    hsl(var(--color-accent)) 50%
  );
  cursor: pointer;
  background-repeat: no-repeat;
  appearance: none;
  transform: translateY(0);
  transition: transform 0.2s;
}

.theme-btn:active {
  transform: translateY(2px);
}

.theme-picker {
  position: absolute;
  display: none;
  gap: 0.5rem;
  flex-direction: column;
  top: 4rem;
}

.visible {
  display: flex;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  display: flex;
  gap: 10rem;
  margin-inline: auto;
  max-width: 80rem;
  margin-top: 5rem;
}

@media (max-width: 80em) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 50em) {
  .container {
    max-width: 90%;
  }
}

.header {
  max-width: 36rem;
}

.title {
  line-height: 1.2;
  font-weight: 400;
  font-size: 2.5rem;
}

@media (max-width: 50em) {
  .title {
    font-size: 2rem;
  }
}
.name {
  font-weight: 800;
  color: hsl(var(--color-accent));
}

.description {
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  font-size: 1.125rem;
}

@media (max-width: 50em) {
  .description {
    font-size: 1rem;
  }
}

.contact {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.contact svg {
  color: hsl(var(--color-text));
}

.main {
  width: 28.625rem;
  margin-bottom: 2rem;
}
@media (max-width: 50em) {
  .main {
    width: 100%;
  }
  .main > section {
    margin-bottom: 1rem;
  }
}

[type="radio"],
[type="checkbox"] {
  position: absolute;
  left: -9999px;
}

.section-content {
  visibility: hidden;
  position: absolute;
  max-height: 0;
  opacity: 0;
  display: flex;
  gap: 1rem;
  transition: max-height 0.6s ease-in-out, opacity 0.25s 0.1s;
}

@media (max-width: 50em) {
  .section-content {
    flex-direction: column;
  }
}
.column {
  flex-direction: column;
}
.skills-checkbox:checked ~ .section-content {
  position: relative;
  visibility: visible;
  max-height: 50rem;
  opacity: 1;
}

.arrow {
  transform: rotate(0);
  transition: 0.25s ease;
}

.section-circle {
  height: 1.2rem;
  width: 1.2rem;
  border: 2px solid hsl(var(--color-text));
  border-radius: 50%;
  transition: background-color 0.2s;
}

@keyframes grow {
  from {
    box-shadow: 0 0 0 -2px hsl(var(--color-text));
  }
  to {
    box-shadow: 0 0 0 2px hsl(var(--color-text));
  }
}

.skills-checkbox:checked ~ .section-title > div > .section-circle {
  background-color: hsl(var(--color-text) / 1);
  animation: grow 0.5s;
}

.projects-checkbox:checked ~ .section-content {
  position: relative;
  visibility: visible;
  max-height: 100rem;
  opacity: 1;
}

.projects-checkbox:checked ~ .section-title > div > .section-circle {
  background-color: hsl(var(--color-text));
  animation: grow 0.5s;
}

.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
}

.skill-box {
  background-color: hsl(var(--color-box));
  border-radius: 4px;
  width: 100%;
  padding: 1rem 0 1.4rem 0;
}

.heading-small {
  margin-left: 1.25rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: hsl(var(--color-accent));
}

.heading-small--regular {
  font-weight: normal;
  color: hsl(var(--color-text));
}

@media (max-width: 50em) {
  .heading-small--regular {
    display: block;
    margin-top: 0.6rem;
    font-size: 1rem;
  }
}

.heading-small.project {
  margin-bottom: 0;
  line-height: 0.8;
}

.skill-list {
  margin-left: 2.3rem;
  line-height: 1.2;
  font-size: 1rem;
}

.project-box {
  background-color: hsl(var(--color-box));
  border-radius: 4px;
  padding-block: 1.4rem;
}

.deployed-site {
  color: hsl(var(--color-accent));
  font-weight: bold;
}

.project-link {
  color: inherit;
  font-size: 0.8rem;
  margin-left: 1.25rem;
}
.project-link:hover {
  font-weight: bold;
}

.project-text {
  padding: 1.25rem;
}

.project-stack {
  margin-left: 2.5rem;
}
