:root {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  --black: #0c0c0c;
  --white: white;
  --gray: oklch(98.5% 0.002 247.839);
  --dark-gray: oklch(92.8% 0.006 264.531);
  --green: rgba(0, 255, 0, 0.5);
  --blue: rgb(50, 50, 255);
  --red: rgba(255, 0, 0, 0.4);

  width: 100%;
  margin: 0;
  font-family: "HK Grotesk", sans-serif;
  color: var(--black);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  background-color: var(--gray);

  @media (min-width: 1024px) {
    font-size: 1.8rem;
  }
}

header {
  padding: 40px 20px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;

  @media (min-width: 1024px) {
    padding: 50px 60px 0 60px;
    align-items: flex-start;
  }
}

main {
  max-width: 100%;
  margin: 0;
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

section {
  padding: 40px 20px 60px 20px;

  @media (min-width: 1024px) {
    padding: 50px 60px 60px 60px;
  }
}

section.header {
  padding: 40px 20px 0px 20px;

  @media (min-width: 1024px) {
    padding: 50px 60px 0px 60px;
  }
}

section > p {
  width: 100%;

  @media (min-width: 1024px) {
    width: 60%;
  }
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02rem;
  font-weight: 500;
  color: var(--black);
  line-height: 3rem;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -moz-hyphenate-limit-chars: 6 3 2;
  -webkit-hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-chars: 6 3 2;

  @media (min-width: 1024px) {
    font-size: 3rem;
  }
}

h2 {
  color: var(--black);
  letter-spacing: -0.02rem;
  line-height: 3rem;
  font-weight: 500;
}

h3 {
  margin: 0 0 3.5px 0;
  font-size: 1.7rem;
  letter-spacing: -0.02rem;
  font-weight: 500;

  @media (min-width: 1024px) {
    font-size: 2rem;
  }
}

h3::first-letter {
  text-transform: capitalize;
}

h4 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02rem;
  font-weight: 500;

  @media (min-width: 1024px) {
    font-size: 2rem;
  }
}

p {
  margin: 17px 0;
}

a,
a:active,
a:visited {
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 0 var(--black);
  cursor: pointer;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -moz-hyphenate-limit-chars: 6 3 2;
  -webkit-hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-chars: 6 3 2;

  @media (min-width: 1024px) {
    box-shadow: none;
  }
}

a:hover {
  box-shadow: inset 0 -2px 0 0 var(--black);

  @media (min-width: 1024px) {
    box-shadow: inset 0 -2px 0 0 var(--black);
    transition: box-shadow 0.1s;
  }
}

a:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 0 var(--black);
}

button {
  font-size: 1.4rem;
  color: var(--black);
  border-radius: 2px;
  cursor: pointer;
  padding: 3.5px 7px;
  border: 1px solid var(--black);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  background-color: white;

  @media (min-width: 1024px) {
    font-size: 1.7rem;
  }
}

button:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 0 var(--black);
}

fieldset {
  border: none;
  padding: 7px;
  background-color: var(--white);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  font-size: 1.7rem;
}

legend {
  box-sizing: border-box;
  float: left;
  width: 100%;
  padding: 3.5px 7px;
  margin-bottom: 3.5px;
  border-radius: 4px;
  background-color: var(--dark-gray);
}

legend.process {
  background-color: var(--red);
}

legend.technical {
  background-color: var(--green);
}

fieldset > div {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  padding: 3.5px;
}

label {
  @media (min-width: 640px) {
    white-space: nowrap;
  }
}

label::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  border: 1px solid var(--black);
  margin-right: 8px;
  color: var(--black);
  border-radius: 1px;
}

input:focus-visible + label::before {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 0 var(--black);
}

input:checked + label::before {
  background-image: url("data:image/svg+xml,<svg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'><path d='M0 0L12 12M0 12L12 0' stroke='black' stroke-width='1' /></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

input:disabled + label::before {
  border: 1px solid #6a7282;
  background-color: var(--gray);
}

input:disabled + label {
  color: oklch(55.1% 0.027 264.364);
}

.fieldsets-container {
  display: grid;
  gap: 14px;
  grid-template-columns: 100%;

  @media (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

ul {
  line-height: 3.5rem;
  padding-left: 20px;
  width: 100%;

  @media (min-width: 1024px) {
    width: 60%;
  }
}

ul.skills {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  list-style: none;

  @media (min-width: 640px) {
    line-height: 1;
  }
}

li.skill {
  font-size: 1.4rem;
  color: var(--black);
  flex-direction: row;
  align-items: center;
  gap: 3.5px;
  border-bottom: 2px solid var(--black);

  @media (min-width: 640px) {
    position: absolute;
    max-width: 150px;
    left: calc(var(--x) / var(--x-max) * 100%);
    bottom: calc((var(--y) + 1) / (var(--y-max) + 1) * 100%);
    padding: 0;
    border: none;
    text-align: center;
    text-shadow: 1px 1px 0 #fffafa, -1px -1px 0 #fffa, 1px -1px 0 #fffa,
      -1px 1px 0 #fffafa;
    padding: 3.5px;
    transform: translate(-50%, 100%);
  }
}

@container figure (width > 640px) {
  li.skill {
    bottom: calc(((var(--y) / 2) + 1) / (var(--y-max) + 1) * 100%) !important;
  }
}

@container figure (width > 1280px) {
  li.skill {
    font-size: 1.7rem;
    bottom: calc(((var(--y) / 4) + 1) / (var(--y-max) + 1) * 100%) !important;
  }
}

li.skill.technical > div.skill-details-container > span:first-of-type {
  background-color: var(--green);

  @media (min-width: 640px) {
    background-color: transparent;
  }
}

li.skill.process > div.skill-details-container > span:first-of-type {
  background-color: var(--red);

  @media (min-width: 640px) {
    background-color: transparent;
  }
}

li.skill > span {
  border-left: 1px solid var(--white);
  padding: 0 3.5px 0 3.5px;
}

li.skill > div.daily {
  display: none;

  @media (min-width: 640px) {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    height: 70px;
    width: 70px;
    border-radius: 100%;
  }
}

li.skill > div.daily.technical {
  background-color: var(--green);
}

li.skill > div.daily.process {
  background-color: var(--red);
}

li.skill > div.weekly {
  display: none;

  @media (min-width: 640px) {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    height: 50px;
    width: 50px;
    border-radius: 100%;
  }
}

li.skill > div.weekly.technical {
  background-color: var(--green);
}

li.skill > div.weekly.process {
  background-color: var(--red);
}

li.skill > div.monthly {
  display: none;

  @media (min-width: 640px) {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    height: 30px;
    width: 30px;
    border-radius: 100%;
  }
}

li.skill > div.monthly.technical {
  background-color: var(--green);
}

li.skill > div.monthly.process {
  background-color: var(--red);
}

#skills-placeholder {
  padding-left: 7px;
}

.legend {
  font-size: 1.4rem;
  display: none;

  @media (min-width: 640px) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
}
.legend > ul {
  display: flex;
  flex-direction: row;
  gap: 7px;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

li.legend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

li.legend-item > div {
  margin: 0 3.5px 0 0;
  border-radius: 100%;
}

li.legend-item > div.daily {
  height: 21px;
  width: 21px;
  border: 1px solid var(--black);
}

li.legend-item > div.weekly {
  height: 14px;
  width: 14px;
  border: 1px solid var(--black);
}

li.legend-item > div.monthly {
  height: 7px;
  width: 7px;
  border: 1px solid var(--black);
}

li.legend-item > div.process {
  height: 14px;
  width: 14px;
  background-color: var(--red);
}

li.legend-item > div.technical {
  height: 14px;
  width: 14px;
  background-color: var(--green);
}

footer {
  padding: 40px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background-color: var(--white);
  border-top: 1px solid var(--black);
  box-shadow: 0 -1px 3px 0 rgb(0 0 0 / 0.1), 0 -1px 2px -1px rgb(0 0 0 / 0.1);

  @media (min-width: 1024px) {
    padding: 50px 60px 60px 60px;
    align-items: flex-start;
  }
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-wrap: wrap;

  @media (min-width: 640px) {
    flex-wrap: nowrap;
  }
}

figure {
  container-type: inline-size;
  container-name: figure;
  flex-direction: column;
  width: 100%;
  justify-content: right;
  margin: 0;
  display: flex;

  @media (min-width: 250px) {
    display: flex;
  }
}

.graph-container {
  background-color: white;
  margin: 0 0 28px 0;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  min-height: 28px;

  @media (min-width: 640px) {
    --x-max: 5;
    --y-max: 100;
    position: relative;
    width: calc(100% - 42px);
    aspect-ratio: 1 / 2;
    border: none;
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    margin: 0 0 68px auto;
  }
}

@container figure (width > 640px) {
  .graph-container {
    aspect-ratio: 1 / 1;
    --y-max: 50;
  }
}

@container figure (width > 1280px) {
  .graph-container {
    aspect-ratio: 2 / 1;
    --y-max: 25;
  }
}

.axis-label {
  position: absolute;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1;
}

.x-label {
  display: none;

  @media (min-width: 640px) {
    display: block;
    left: calc(50%);
    bottom: calc(-35px - 7px);
    transform: translateX(-50%);
    width: 100%;
  }
}

.y-label {
  display: none;

  @media (min-width: 640px) {
    display: block;
    left: calc(-100% - 21px - 7px);
    top: calc(50% - 17px);
    transform: rotate(-90deg);
    width: calc(100% * 2);
  }
}

@container figure (width > 640px) {
  .y-label {
    width: 100%;
    left: calc(-50% - 21px - 7px);
  }
}

@container figure (width > 1280px) {
  .y-label {
    width: 50%;
    left: calc(-25% - 21px - 7px);
  }
}

figcaption {
  gap: 3.5px;
  font-size: 1.4rem;
  line-height: 1.2;
  text-align: center;
}

.filters-container {
  display: none;
  flex-direction: column;
  gap: 20px;
  margin-top: 35px;
}

.filter-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;

  @media (min-width: 640px) {
    flex-wrap: nowrap;
  }
}

.filter-buttons > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;

  @media (min-width: 640px) {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

.all-filters {
  width: max-content;
  align-self: flex-end;
}

.clear-filters {
  width: max-content;
  align-self: center;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;

  @media (min-width: 1024px) {
    align-items: flex-start;
  }
}

.introduction {
  width: auto;
  padding: 14px 21px;
  box-sizing: border-box;
  display: flex;
  overflow: auto;
  color: var(--black);
  background-color: var(--dark-gray);
  border-radius: 4px;

  @media (min-width: 1024px) {
    width: 60%;
  }
}

.skill-details-container {
  display: flex;
  flex-wrap: wrap;
  padding: 7px;
}

.skill-details-container > span {
  margin-right: 7px;
  line-height: 2;

  @media (min-width: 640px) {
    margin-right: 0;
  }
}

.skill-details-container > span:first-of-type {
  border-radius: 4px;
  padding: 2.5px 4px;
  line-height: 1;
  align-self: center;
  background-color: var(--white);

  @media (min-width: 640px) {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
  }
}

.hidden {
  display: none;
}

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

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

@font-face {
  font-family: "HK Grotesk";
  src: url("./fonts/HKGrotesk-Medium.eot");
  src: url("./fonts/HKGrotesk-Medium.eot?#iefix") format("embedded-opentype"),
    url("./fonts/HKGrotesk-Medium.woff2") format("woff2"),
    url("./fonts/HKGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: medium;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("./fonts/HKGrotesk-Bold.eot");
  src: url("./fonts/HKGrotesk-Bold.eot?#iefix") format("embedded-opentype"),
    url("./fonts/HKGrotesk-Bold.woff2") format("woff2"),
    url("./fonts/HKGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./fonts/SpaceMono-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
