:root {
  font-size: clamp(14px, 3vw, 30px);
  /* colors and measure declarations */
  --salmon-color: #dd674c;
  --light-salmon-color: #fcf3ef;
  --orange-color: #f3a981;
  --blue-color: #24283c;
  --transparent: #ffffff00;
  --measure: 100ch;
}

/* fonts declaration */
@font-face {
  font-family: "League Mono";
  src: url("LeagueMono-Regular.woff2") format("woff2");
  font-weight: normal;
}

@font-face {
  font-family: "League Mono Bold";
  src: url("LeagueMono-Bold.woff2") format("woff2");
  font-weight: bold;
}

@font-face {
  font-family: "Inter Light";
  src: url("Inter-VariableFont_opsz,wght.ttf");
  font-weight: lighter;
}

* {
  font-family: "Inter Light";
  color: var(--blue-color);
  background-color: white;
  line-height: 1.5;
  box-sizing: border-box;
  max-inline-size: var(--measure);
}

html,
body,
div,
header,
nav,
main,
footer {
  max-inline-size: none;
}

body {
  margin: 2em;
}

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

h2 {
  display: inline;
  font-family: "League Mono Bold";
  padding: 0.2ex 0.5ch;
}

header,
footer {
  background-color: var(--light-salmon-color);
  margin-top: 3em;
  padding-left: 2em;
}

header > * {
  background-color: rgba(255, 255, 255, 0);
  position: relative;
  top: -1.5em;
}

header > p {
  color: var(--salmon-color);
  font-family: "League Mono";
}

section#expertises h2 {
  color: var(--light-salmon-color);
  background-color: var(--salmon-color);
}
section#expertises h3 {
  margin-block: 0;
}

footer h2 {
  color: var(--light-salmon-color);
  background-color: var(--blue-color);
}

footer > p {
  background-color: var(--transparent);
  font-family: "League Mono";
}

footer > p > a {
  background-color: inherit;
  font-family: inherit;
}

footer > * {
  position: relative;
  top: -0.8em;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: var(--measure);
  /* center elements */
  margin: 0 auto;
  padding: 1em;
}

.stack > * + * {
  margin-block-start: 1.5em;
}
.stack > div {
  display: flex;
  flex-wrap: wrap;
}

.stack > div > h3 {
  font-family: "League Mono";
  color: var(--salmon-color);
  flex-basis: 15ch;
  flex-grow: 1;
  padding: 1ch;
  text-align: center;
  font-weight: bold;
  text-align: left;
}

.stack > div > div {
  flex-basis: 0;
  flex-grow: 999;
  padding: 1ch;
  min-inline-size: 60%;
  margin-block-start: 0;
  margin-block-end: 0;
}
