/*
 * 
 * Made with Init.
 * 
*/
:is(*, *::before, *::after) {
  box-sizing: border-box;
  margin: 0rem;
  padding: 0rem;
}

:is(input, button, select, textarea, optgroup) {
  font: inherit;
  color: inherit;
  line-height: inherit;
  word-spacing: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

@media only screen and (prefers-color-scheme: light) {
  :root {
    --fg-color: var(--clr-black);
    --bg-color: var(--clr-white);
    --primary-color: var(--clr-bordeaux);
    --secondary-color: var(--clr-turquoise);
    --complementary-color: var(--clr-white);
  }
}
@media only screen and (prefers-color-scheme: dark) {
  :root {
    --fg-color: var(--clr-black);
    --bg-color: var(--clr-white);
    --primary-color: var(--clr-bordeaux);
    --secondary-color: var(--clr-turquoise);
    --complementary-color: var(--clr-white);
  }
}
@media only screen and (prefers-color-scheme: high-contrast) {
  :root {
    --fg-color: var(--clr-white);
    --bg-color: var(--clr-black);
    --primary-color: var(--clr-yellow);
    --secondary-color: var(--clr-yellow);
    --complementary-color: var(--clr-bordeaux);
  }
}
:root {
  --vw: calc(1rem * var(--vw-js));
  --vw-squared: calc(var(--vw) * var(--vw-js));
  --vw-cubed: calc(var(--vw-squared) * var(--vw-js));
  --vh: calc(1rem * var(--vh-js));
  --vh-squared: calc(var(--vh) * var(--vh-js));
  --vh-cubed: calc(var(--vh-squared) * var(--vh-js));
  --magic-term-one: calc((var(--vw-squared) - 60 * var(--vw) + 900rem) / 4900);
  --magic-term-two: calc((var(--vw-cubed) - 90 * var(--vw-squared) + 2700 * var(--vw) - 27000rem) / 343000);
  --clr-black: hsl(0, 0%, 15%);
  --clr-white: hsl(0, 0%, 95%);
  --clr-yellow: hsl(46, 100%, 63%);
  --clr-bordeaux: hsl(349, 88%, 25%);
  --clr-turquoise: hsl(183, 92%, 25%);
  --clr-turquoise-light: hsl(183, 92%, 35%);
  --fg-color-5: color-mix(in srgb, transparent, var(--fg-color) 5%);
  --fg-color-10: color-mix(in srgb, transparent, var(--fg-color) 10%);
  --fg-color-20: color-mix(in srgb, transparent, var(--fg-color) 20%);
  --fg-color-50: color-mix(in srgb, transparent, var(--fg-color) 50%);
  --fg-color-70: color-mix(in srgb, transparent, var(--fg-color) 70%);
  --bg-color-5: color-mix(in srgb, transparent, var(--bg-color) 5%);
  --bg-color-10: color-mix(in srgb, transparent, var(--bg-color) 10%);
  --bg-color-20: color-mix(in srgb, transparent, var(--bg-color) 20%);
  --bg-color-50: color-mix(in srgb, transparent, var(--bg-color) 50%);
  --bg-color-70: color-mix(in srgb, transparent, var(--bg-color) 70%);
  --primary-color-5: color-mix(in srgb, transparent, var(--primary-color) 5%);
  --primary-color-10: color-mix(in srgb, transparent, var(--primary-color) 10%);
  --primary-color-20: color-mix(in srgb, transparent, var(--primary-color) 20%);
  --primary-color-50: color-mix(in srgb, transparent, var(--primary-color) 50%);
  --primary-color-70: color-mix(in srgb, transparent, var(--primary-color) 70%);
  --secondary-color-5: color-mix(in srgb, transparent, var(--secondary-color) 5%);
  --secondary-color-10: color-mix(in srgb, transparent, var(--secondary-color) 10%);
  --secondary-color-20: color-mix(in srgb, transparent, var(--secondary-color) 20%);
  --secondary-color-50: color-mix(in srgb, transparent, var(--secondary-color) 50%);
  --secondary-color-70: color-mix(in srgb, transparent, var(--secondary-color) 70%);
  --font-family-body: "Ubuntu", Helvetica, Arial, sans-serif;
  --font-family-head: "Readex Pro", Helvetica, Arial, sans-serif;
}

html {
  tab-size: 4;
  font-size: 100%;
  line-height: 1.5;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  font-stretch: normal;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

body {
  font: inherit;
  color: var(--fg-color);
  background: var(--bg-color);
  font-weight: normal;
  font-family: var(--font-family-body);
}

@page {
  size: A4 portrait;
  margin: 0rem;
}
:is(h1, h2, h3, h4, h5, h6) {
  color: var(--fg-color);
  line-height: 110%;
  font-weight: 400;
  letter-spacing: -0.04em;
  font-family: var(--font-family-head);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.2rem;
}

a {
  text-decoration: none;
}

a:not(:has(> :is(h1, h2, h3, h4, h5, h6, svg))) {
  --fg-color: var(--primary-color);
  color: var(--fg-color);
}

.button {
  color: var(--fg-color);
  background: var(--bg-color);
  border: 0.3rem solid transparent;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  cursor: pointer;
  display: inline-block;
  height: fit-content;
}
.button:hover:not(:active) {
  transform: translateY(-1px);
}
.button:active {
  background: color-mix(in srgb, var(--clr-black), var(--bg-color) 80%);
}

svg {
  color: var(--fg-color);
}

body > header nav > ul,
body > footer nav > ul {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.5rem;
  list-style: none;
  font-family: var(--font-family-head);
}
body > header nav > ul > li > a:hover,
body > footer nav > ul > li > a:hover {
  border-bottom: 2px solid var(--fg-color);
}

body > header > div,
body > main > article > div,
body > footer > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  padding-block: 6rem;
  padding-inline: calc(2rem + 8 * clamp(0rem, (100vw - 30rem) / 70, 1rem));
  color: var(--fg-color);
  background-color: var(--bg-color);
}
body > header > div header > h2,
body > main > article > div header > h2,
body > footer > div header > h2 {
  padding-block-end: 1rem;
}
@media only screen and (max-width: 30rem) {
  body > header > div,
  body > main > article > div,
  body > footer > div {
    --max-viewport: 30rem;
    padding-block: 3rem;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  body > header > div,
  body > main > article > div,
  body > footer > div {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    padding-block: 3rem;
  }
}
@media only screen and (min-width: 40rem) and (max-width: 60rem) {
  body > header > div,
  body > main > article > div,
  body > footer > div {
    --min-viewport: 40rem;
    --max-viewport: 60rem;
    padding-block: 3rem;
  }
}
@media only screen and (min-width: 60rem) and (max-width: 80rem) {
  body > header > div,
  body > main > article > div,
  body > footer > div {
    --min-viewport: 60rem;
    --max-viewport: 80rem;
    padding-block: 3rem;
  }
}
@media only screen and (min-width: 100rem) {
  body > header > div,
  body > main > article > div,
  body > footer > div {
    --min-viewport: 100rem;
    padding-inline: calc(50vw - var(--min-viewport) / 2 + 10rem);
  }
}

body > main > article header > a > :is(h1, h2, h3, h4):hover::before {
  content: "#";
  margin-inline-end: 1rem;
}

body > header > div {
  align-items: baseline;
  padding-block: 1rem;
  user-select: none;
}
body > header > div > a {
  grid-column: span 2;
}
body > header > div > label#hamburger {
  display: none;
  cursor: pointer;
  justify-self: end;
  align-self: center;
  width: 2rem;
  height: 2rem;
  padding-block: 0.25rem;
  background-color: var(--bg-color);
  z-index: 2;
}
body > header > div > label#hamburger > input {
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: none !important;
  pointer-events: none !important;
}
body > header > div > label#hamburger > input, body > header > div > label#hamburger > div {
  width: 2rem;
  height: 0.1rem;
  border-radius: 1rem;
  margin-inline: auto;
  background-color: var(--fg-color);
  transition: transform 300ms;
  transform: scale(100%, 100%) translate(0%, 0%) rotate(0deg);
}
body > header > div > label#hamburger > div:has(+ input:checked) {
  transform: scale(100%, 100%) translate(0%, 0.5rem) rotate(-45deg);
}
body > header > div > label#hamburger > input:checked {
  transform: scale(0%, 100%) translate(0%, 0%) rotate(0deg);
}
body > header > div > label#hamburger > input:checked + div {
  transform: scale(100%, 100%) translate(0%, -0.5rem) rotate(45deg);
}
body > header > div > label#hamburger:has(input:checked) + nav {
  transform: translate(calc(5rem - 50%), 3rem) scale(100%, 100%);
}
@media only screen and (max-width: 30rem) {
  body > header > div > label#hamburger {
    --max-viewport: 30rem;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
  }
}
body > header > div > nav {
  grid-column: 3;
  padding: 0.3rem;
  background-color: var(--bg-color);
}
body > header > div > nav > ul > a, body > header > div > nav > ul > button {
  font-family: var(--font-family-head);
  border: none;
  background: none;
  cursor: pointer;
  color: var(--primary-color);
}
@media only screen and (max-width: 30rem) {
  body > header > div > nav {
    --max-viewport: 30rem;
    position: absolute;
    top: 1.7rem;
    right: 0%;
    transition: transform 300ms;
    transform: translate(4rem, 0%) scale(0%, 0%);
  }
  body > header > div > nav > ul {
    column-gap: 0.6rem;
  }
}

article#hero {
  min-height: 70vh;
  background-blend-mode: normal, screen, color-dodge, overlay, difference;
  background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color-70) 100%), radial-gradient(50% 120% at 50% 50%, #ba489e 0%, #430135 100%), linear-gradient(100deg, #e9e9e9 0%, #FF0000 100%), linear-gradient(360deg, #0029FF 0%, #8FFF00 100%), radial-gradient(100% 160% at 100% 100%, #eb00ff 0%, #0bbe48 100%);
}
article#hero > div {
  justify-items: start;
  background-color: unset;
}
article#hero > div > a, article#hero > div > p, article#hero > div > header {
  grid-column: span 2;
}
@media only screen and (max-width: 30rem) {
  article#hero > div > a, article#hero > div > p, article#hero > div > header {
    --max-viewport: 30rem;
    grid-column: span 3;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#hero > div > a, article#hero > div > p, article#hero > div > header {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-column: span 3;
  }
}
@media only screen and (min-width: 40rem) and (max-width: 60rem) {
  article#hero > div > a, article#hero > div > p, article#hero > div > header {
    --min-viewport: 40rem;
    --max-viewport: 60rem;
    grid-column: span 3;
  }
}
article#hero > div > header > h2 {
  --fg-color: var(--complementary-color);
  font-size: 3.5rem;
  padding-block-end: 2rem;
}
@media only screen and (max-width: 30rem) {
  article#hero > div > header > h2 {
    --max-viewport: 30rem;
    font-size: 2.5rem;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#hero > div > header > h2 {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    font-size: 2.5rem;
  }
}

article#fourofour > div {
  display: block;
  min-height: 60vh;
}
article#fourofour > div > a {
  --fg-color: var(--bg-color-70);
  --bg-color: var(--fg-color-70);
}

article#about > div {
  column-gap: 1rem;
}
article#about > div > img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 5/6;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
}
article#about > div > div {
  grid-column: span 2;
}
article#about > div > div > p {
  padding-block: 1rem 2rem;
}
@media only screen and (max-width: 30rem) {
  article#about > div {
    --max-viewport: 30rem;
    row-gap: 2rem;
    grid-template-columns: 1fr;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#about > div {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    row-gap: 2rem;
    grid-template-columns: 1fr;
  }
}

article#research > div {
  gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
}
article#research > div > header {
  grid-column: span 3;
}
article#research > div > section {
  display: grid;
  justify-items: center;
}
article#research > div > section > a > svg {
  display: block;
  width: 12rem;
  aspect-ratio: 1/1;
  user-select: none;
}
article#research > div > section > h4 {
  padding-block: 1rem;
  text-align: center;
}
article#research > div > section > p {
  font-size: 1.1rem;
  padding-block-end: 2rem;
}
article#research > div > section > p > span {
  float: inline-end;
  padding-inline-end: 20%;
}
@media only screen and (max-width: 30rem) {
  article#research > div {
    --max-viewport: 30rem;
    grid-template-columns: repeat(1, 1fr);
  }
  article#research > div > header {
    grid-column: span 1;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#research > div {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-template-columns: repeat(1, 1fr);
  }
  article#research > div > header {
    grid-column: span 1;
  }
}

article#news > div {
  gap: 1rem;
}
article#news > div > header {
  grid-column: span 3;
}
article#news > div > section:first-of-type {
  grid-row: span 2;
  grid-column: span 2;
}
@media only screen and (max-width: 30rem) {
  article#news > div > section:first-of-type {
    --max-viewport: 30rem;
    grid-row: initial;
    grid-column: initial;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#news > div > section:first-of-type {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-row: initial;
    grid-column: initial;
  }
}
@media only screen and (min-width: 40rem) and (max-width: 60rem) {
  article#news > div > section:first-of-type {
    --min-viewport: 40rem;
    --max-viewport: 60rem;
    grid-row: initial;
    grid-column: initial;
  }
}
article#news > div > section > a {
  --fg-color: var(--clr-white);
  --bg-color: var(--clr-black);
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}
article#news > div > section > a > p, article#news > div > section > a > time {
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--bg-color), transparent 40%);
  backdrop-filter: blur(0.5rem);
}
article#news > div > section > a > p {
  width: 100%;
}
article#news > div > section > a > time {
  visibility: hidden;
  opacity: 0%;
  position: absolute;
  top: 0%;
  right: 0%;
}
article#news > div > section > a:hover > time {
  visibility: visible;
  opacity: 100%;
}
@media only screen and (min-width: 40rem) and (max-width: 60rem) {
  article#news > div {
    --min-viewport: 40rem;
    --max-viewport: 60rem;
    grid-template-columns: repeat(2, 1fr);
  }
  article#news > div > header {
    grid-column: span 2;
  }
}
@media only screen and (max-width: 30rem) {
  article#news > div {
    --max-viewport: 30rem;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
  article#news > div > header {
    grid-column: span 1;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  article#news > div {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
  article#news > div > header {
    grid-column: span 1;
  }
}

article#timeline > div {
  grid-template-columns: 1fr 1rem 1fr;
  gap: 1rem;
}
article#timeline > div div.timeline-center {
  grid-column: 2/3;
  grid-row: 2/20;
  background-image: linear-gradient(96deg, var(--primary-color), var(--secondary-color));
}
article#timeline > div div.timeline-space {
  grid-column: span 1;
  grid-row: span 1;
}
article#timeline header {
  grid-column: 1/4;
  grid-row: 1/2;
  text-align: center;
}
article#timeline section {
  counter-increment: timeline-section;
  grid-column: 1/2;
  grid-row-start: span 1;
  text-align: right;
  vertical-align: middle;
  padding: 1rem;
}
article#timeline section::before {
  content: "";
  display: inline-block;
  position: relative;
  top: 50%;
  width: 2rem;
  height: 2rem;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--fg-color);
}
article#timeline section:nth-of-type(even) {
  grid-column: 3/4;
  text-align: left;
}
article#timeline section:nth-of-type(even)::before {
  right: 3.5rem;
}
article#timeline section:nth-of-type(odd)::before {
  left: 3.5rem;
}
article#timeline section:last-of-type::after {
  content: "";
  display: inline-block;
  position: relative;
  top: 50%;
  width: 3rem;
  height: 2rem;
  box-sizing: border-box;
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background: var(--fg-color);
}
article#timeline section:last-of-type:nth-of-type(odd)::after {
  left: 4rem;
}
article#timeline section:last-of-type:nth-of-type(even)::after {
  right: 4rem;
}

article#publications > div {
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
}
article#publications > div > a > :is(h1, h2, h3, h4):hover::before {
  content: "#";
  margin-inline-end: 1rem;
}
article#publications > div section {
  position: relative;
  border-inline-start: 0.2rem solid var(--primary-color);
  padding-inline-start: 0.2rem;
}
article#publications > div section > div {
  position: absolute;
  top: 0rem;
  left: -2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
article#publications > div section a {
  padding: 0rem;
  border: 0rem;
  margin: 0rem;
  visibility: hidden;
  opacity: 0;
  width: 2.5rem;
  height: 1.5rem;
  vertical-align: middle;
  text-align: end;
  font-size: 0.85rem;
  cursor: pointer;
  transition: visibility 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
article#publications > div section:hover a {
  visibility: visible;
  opacity: 1;
}
article#publications > div section p {
  padding-block-start: 0.3rem;
  padding-inline-start: 0.5rem;
}

body > footer > div {
  --fg-color: var(--complementary-color);
  --bg-color: var(--primary-color);
}
body > footer > div a {
  --fg-color: var(--complementary-color);
}
body > footer > div:nth-child(1) {
  padding-block: 2rem;
  row-gap: 2rem;
}
body > footer > div:nth-child(1) > div > p {
  padding-block: 1rem 2.5rem;
}
body > footer > div:nth-child(1) > div > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}
body > footer > div:nth-child(1) > nav > h4 {
  padding-block-end: 1rem;
}
body > footer > div:nth-child(1) > nav > ul {
  grid-auto-flow: row;
  justify-items: left;
  row-gap: 0.5rem;
}
body > footer > div:nth-child(1) > address {
  font-style: normal;
}
body > footer > div:nth-child(1) > address > h4 {
  padding-block-end: 1rem;
}
body > footer > div:nth-child(1) > address > :nth-child(2) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block-end: 1rem;
}
@media only screen and (max-width: 30rem) {
  body > footer > div:nth-child(1) {
    --max-viewport: 30rem;
    grid-template-columns: 1fr;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  body > footer > div:nth-child(1) {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-template-columns: 1fr;
  }
}
body > footer > div:nth-child(2) {
  align-items: baseline;
  padding-block: 1rem;
  row-gap: 0.5rem;
  background-color: var(--bg-color);
  position: relative;
}
body > footer > div:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0%;
  left: 5%;
  width: 90%;
  border-bottom: 1px solid var(--fg-color);
}
body > footer > div:nth-child(2) > nav {
  grid-column: 2;
  font-family: var(--font-family-head);
}
body > footer > div:nth-child(2) > nav > ul {
  justify-content: space-between;
}
body > footer > div:nth-child(2) > span, body > footer > div:nth-child(2) > span > a {
  text-align: end;
  font-size: 0.7rem;
}
@media only screen and (max-width: 30rem) {
  body > footer > div:nth-child(2) {
    --max-viewport: 30rem;
    grid-template-columns: repeat(1, 1fr);
  }
  body > footer > div:nth-child(2) > nav {
    grid-column: 1;
  }
}
@media only screen and (min-width: 30rem) and (max-width: 40rem) {
  body > footer > div:nth-child(2) {
    --min-viewport: 30rem;
    --max-viewport: 40rem;
    grid-template-columns: repeat(1, 1fr);
  }
  body > footer > div:nth-child(2) > nav {
    grid-column: 1;
  }
}
