*, *::after, *::before {
  box-sizing: border-box;
}
:root {
  --theme-light--font-title: 'Rethink Sans', sans-serif;
  --theme-light--font-body: 'Geist', sans-serif;
  --theme-light--color-text: #000000;
  --theme-light--color-background: #FFFFFF;

  --theme-dark--font-title: 'Averia Serif Libre', serif;
  --theme-dark--font-body: 'Geist Mono', monospace;
  --theme-dark--color-text: #E9861B;
  --theme-dark--color-background: #1B2524;

  --theme-contrast--font-title: 'Unbounded', sans-serif;
  --theme-contrast--font-body: 'Geist', sans-serif;
  --theme-contrast--color-text: #F21B5A;
  --theme-contrast--color-background: #BCD4E0;

  --font-size--largest: 42px;
  --font-size--large: 26px;
  --font-size--mid: 20px;
  --font-size--small: 16px;
}
html {
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  --color--background: var(--theme-light--color-background);
  --color--text: var(--theme-light--color-text);
  --font-family--title: var(--theme-light--font-title);
  --font-family--body: var(--theme-light--font-body);
  font-family: var(--font-family--body);
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-size: var(--font-size--small);
  line-height: 1.3;
  padding: 0 1.2rem 1.2rem;
  margin: 0;
  cursor: none;
  color: var(--color--text);
  background-color: var(--color--background);
}
body[data-theme=dark] {
  --color--background: var(--theme-dark--color-background);
  --color--text: var(--theme-dark--color-text);
  --font-family--title: var(--theme-dark--font-title);
  --font-family--body: var(--theme-dark--font-body);
}
body[data-theme=contrast] {
  --color--background: var(--theme-contrast--color-background);
  --color--text: var(--theme-contrast--color-text);
  --font-family--title: var(--theme-contrast--font-title);
  --font-family--body: var(--theme-contrast--font-body);
}
 #custom-cursor {
  --cursor-size: 40px;
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--color--background);
  top: var(--y, 0);
  left: var(--x, 0);
  transform: translate(-50%, -50%);
  z-index: 1000;
  mix-blend-mode: difference;
  transition: 
    transform .5s,
    width .2s,
    height .2s;
  pointer-events: none;
  animation: x .7s forwards;
}
body[data-theme=contrast],
body[data-theme=dark] {
  font-weight: 400;
}
body[data-theme=contrast] #custom-cursor {
  --cursor-size: 56px;
  mix-blend-mode: multiply;
  border-radius: 50%;
}
body[data-theme=dark] {
  cursor:  auto;
}
body[data-theme=dark] #custom-cursor {
  display: none;
}
#custom-cursor.click {
  width: 30px;
  height: 30px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family--title);
  font-weight: 800;
  font-size: var(--font-size--small);
  text-transform: uppercase;
  text-wrap: balance;
}
h1 {
  font-size: var(--font-size--large);
  line-height: 1.1;
  margin-block-end: 0;
}
p {
  text-wrap: pretty;
}
a {
  position: relative;;
  color: var(--color--text);
  font-weight: 600;
  text-decoration: none;
  cursor: none;
}
a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -.1em;
  transform: translate(-50%);
  height: 4px;
  width: 0%;
  background-color: var(--color--text);
  transition: width .5s ease;
}
a:hover::after {
  width: 100%;
}
ul {
  list-style-type: square;
  list-style-position: outside;
  padding-inline-start: 1.2rem;
}
body[data-theme=contrast] ul {
  list-style-type: disc;
}
body[data-theme=dark] ul {
  list-style-type: circle;
}
li {
  padding-block: 0 .4em;
}
.subtitle {
  text-transform: uppercase;
  font-family: var(--font-family--title);
  font-size: var(--font-size--mid);
  font-weight: 800;
  margin-block-start: .2em;
}
.highlight {
  font-size: var(--font-size--mid);
  font-weight: 400;
}
section {
  margin-block: 64px;
  margin-inline: auto;
  max-width: 600px;
}
section#intro {
  margin-top: 96px;
}
header {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 99;
}
.header-item {
  position: relative;
  margin-left: 1rem;
}
header ul {
  list-style: none;
}
nav {
  z-index: 2;
}
#menu-toggle,
#theme-selector,
#language-selector {
  --toggle-size: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--toggle-size);
  margin-bottom: 1rem;
  background-color: var(--color--background);
  box-shadow: 4px 4px var(--color--text);
  transition: box-shadow .5s ease;
}
#menu-toggle {
  flex-direction: column;
  width: var(--toggle-size);
  z-index: 99;
}
#menu-toggle:hover,
#theme-selector:hover,
#language-selector:hover {
  box-shadow: 8px 8px var(--color--text);
}
#menu-toggle > div {
  width: 32px;
  height: 4px;
  background-color: var(--color--text);
  margin-block: 4px;
}
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  padding-inline-start: 0;
  background-color: var(--color--background);
  margin: 0;
  padding: 5rem 0;
  transform: translateY(-100%);
  transition: transform .2s ease;
}
#main-nav.active {
  transform: translateY(0);
  transition: transform .5s ease;
}
#main-nav li {
  padding-block: .7rem;
  text-align: center;
}
#main-nav a {
  font-family: var(--font-family--title);
  font-size: var(--font-size--mid);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color--text);
}
#theme-selector,
#language-selector {
  flex-direction: row-reverse;
  width: fit-content;
  z-index: 1;
}
#theme-toggle,
#theme-options li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--toggle-size);
  padding: 0;
}
#theme-toggle {
  z-index: 99;
}
#theme-options,
#language-options {
  display: flex;
  flex-direction: row-reverse;
  width: 0;
  padding: 0;
  overflow: hidden;
  transition: width .5s ease;
}
#theme-options.active,
#language-options.active {
  width: auto;
}
.theme-option__outer {
  width: 32px;
  background-color: var(--color--text);
  padding: 4px;
}
.theme-option__inner {
  width: 100%;
  background-color: var(--color--background);
}
.theme-option__outer, 
.theme-option__inner {
  aspect-ratio: 1;
  border-radius: 50%;
}
li[data-theme=light] .theme-option__outer {
  background-color: var(--theme-light--color-text);
}
li[data-theme=light] .theme-option__inner {
  background-color: var(--theme-light--color-background);
}
li[data-theme=dark] .theme-option__outer {
  background-color: var(--theme-dark--color-text);
}
li[data-theme=dark] .theme-option__inner {
  background-color: var(--theme-dark--color-background);
}
li[data-theme=contrast] .theme-option__outer {
  background-color: var(--theme-contrast--color-text);
}
*[data-theme=contrast] .theme-option__inner {
  background-color: var(--theme-contrast--color-background);
}
#language-selector {
  font-weight: 600;
}
#language-toggle,
#language-options li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  width: var(--toggle-size);
  padding: 0;
}
#language-toggle span {
  background-color: var(--color--text);
  color: var(--color--background);
  padding: .2rem;
}

@media screen and (min-width: 1280px) {
  :root {
    --font-size--large: 36px;
    --font-size--mid: 24px;
  }
  header {
    flex-direction: column;
    top: 96px;
    right: 64px;
  }
  #main-nav {
    left: unset;
    right: 0;
    width: auto;
    padding: 160px 64px;
    transform: translateX(100%);
  }
  #main-nav.active {
    transform: translateX(0);
  }
  #main-nav li {
    text-align: right;
  }
  #main-nav a {
    font-size: var(--font-size--small);
  }
  section {
    max-width: 720px;
    margin-left: 100px;
  }
  p {
    font-size: var(--font-size--mid);
  }
  section ul {
    font-size: var(--font-size--mid);
  }
}