@import url("/assets/styles/fonts.css");

:root {
  /* Colors */
  --color-accent: #f9c700;
  --color-success: #00ba34;
  --color-error: #e92c2c;
  --color-warning: #ffac00;
  --color-info: #0085ff;

  --color-neutral: #aaaaaa;
  --box-shadow: 0 2px var(--shadow-blur) rgba(20, 20, 20, var(--shadow-opacity)),
    0 1px var(--shadow-blur) rgba(20, 20, 20, calc(var(--shadow-opacity) * 2));
  --inset-shadow: 0 2px var(--shadow-blur) rgba(20, 20, 20, var(--shadow-opacity)) inset,
    0 1px var(--shadow-blur) rgba(20, 20, 20, calc(var(--shadow-opacity) * 2)) inset;

  --pill-radius: 999rem;
  --pill-padding: 0.125em 1em;
  --pill-color: var(--color-neutral);

  --surface-modifier: #ffffff;
  --background-color: #f2f1ed;
  --text-100: #1c1c1c;
  --shadow-opacity: 12%;
  --shadow-blur: 2px;

  /* Sizes */
  --max-width: 120ch;
  --inline-gap: 1rem;
  --block-gap: 2rem;
  --blur: 1rem;

  --content-padding: max(calc((100vw - var(--max-width)) / 2), var(--inline-gap));
  --header-padding: calc((100vw - var(--max-width)) / 2);

  --background-image: url(/assets/images/christian-1.png);
  --box-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.22);
  --border-radius: 0.125rem;
}

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

html {
  scroll-padding-top: 3rem;
}

@media (prefers-color-scheme: dark) {
  body {
    color: var(--text-200);
    --background-color: #383838;
    --surface-modifier: #000000;
    --text-100: #ffffff;
    --shadow-opacity: 40%;
    --shadow-blur: 4px;
  }
  body:has(input[type="checkbox"]#darkmode-toggle:checked) {
    color: var(--text-200);
    --surface-modifier: #ffffff;
    --background-color: #f2f1ed;
    --text-100: #1c1c1c;
    --shadow-opacity: 12%;
    --shadow-blur: 2px;
  }
}
@media (prefers-color-scheme: light) {
  body {
    color: var(--text-200);
    --surface-modifier: #ffffff;
    --background-color: #f2f1ed;
    --text-100: #1c1c1c;
    --shadow-opacity: 12%;
    --shadow-blur: 2px;
  }
  body:has(input[type="checkbox"]#darkmode-toggle:checked) {
    color: var(--text-200);
    --background-color: #383838;
    --surface-modifier: #000000;
    --text-100: #ffffff;
    --shadow-opacity: 40%;
    --shadow-blur: 4px;
  }
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  scroll-behavior: smooth;
  font-family: "Avenir Light", sans-serif;
  min-height: 100vh;
  background: var(--background-color);
  -webkit-font-smooth: always;
  --text-200: color-mix(in srgb, var(--text-100), var(--background-color) 20%);
  --text-300: color-mix(in srgb, var(--text-100), var(--background-color) 40%);
  --text-400: color-mix(in srgb, var(--text-100), var(--background-color) 80%);

  --surface-1: color-mix(in srgb, var(--background-color), var(--surface-modifier) 30%);
  --surface-2: color-mix(in srgb, var(--background-color), var(--surface-modifier) 60%);

  --background-accent: color-mix(in srgb, var(--background-color), var(--color-accent) 10%);
  --background-neutral: color-mix(in srgb, var(--background-color), var(--color-neutral) 10%);
  --background-success: color-mix(in srgb, var(--background-color), var(--color-success) 10%);
  --background-error: color-mix(in srgb, var(--background-color), var(--color-error) 10%);
  --background-warning: color-mix(in srgb, var(--background-color), var(--color-warning) 10%);
  --background-info: color-mix(in srgb, var(--background-color), var(--color-info) 10%);
  --pill-background: var(--background-neutral);

  --background-gradient: radial-gradient(
    circle,
    color-mix(in srgb, var(--background-color), var(--color-accent) 10%) 0%,
    var(--background-color) 75%
  );

  --focus-outline: 2px solid var(--color-accent);
  --focus-offset: 3px;
}

a {
  color: var(--color-accent);
}
a:has(*[class*="ph-"]) {
  text-decoration: none;
}

a:hover {
  color: color-mix(in hsl, var(--color-accent), black 10%);
  text-decoration: none;
}
*:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

dialog:modal {
  border: none;
  box-shadow: var(--box-shadow);
  padding: var(--inline-gap) var(--block-gap);
  inset: 0px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
dialog::backdrop {
  background: var(--background-color);
  backdrop-filter: blur(var(--blur, 10px));
  -webkit-backdrop-filter: blur(var(--blur, 10px));
}

body > footer,
main > section:not(#hero) {
  padding-inline: var(--content-padding);
}

main > section:not(#hero) {
  padding-block: 2rem 4rem;
}

main > section:not(:first-child):not(:last-child):nth-child(odd) {
  background-color: var(--surface-2);
  clip-path: polygon(0% 0%, 100% 2rem, 100% calc(100% - 2rem), 0% 100%);
}
main > section:not(:first-child):nth-child(odd) {
  background-color: var(--surface-2);
  clip-path: polygon(0% 0%, 100% 2rem, 100% 100%, 0% 100%);
}

main > section#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-inline: var(--content-padding);
  background-image: var(--background-gradient);

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  & hgroup {
    color: var(--text-100);
    z-index: 10;
    font-size: 2rem;
    line-height: 5rem;
    max-width: min(100%, 55ch);
    --shadow-color: color-mix(in srgb, var(--background-color), transparent 50%);
    text-shadow: 2px 2px 10px var(--shadow-color), -2px -2px 10px var(--shadow-color),
      -2px 2px 10px var(--shadow-color), 2px -2px 10px var(--shadow-color);
    & h1 {
      /* display: inline; */
      line-height: 1em;
      font-weight: 400;
    }
    & p {
      line-height: 2em;
    }
  }
}
:is(#particle-bg, #particle-fg, #image-bg, #particle-controls) {
  position: absolute;
  z-index: 3;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
#particle-bg {
  z-index: 1;
  filter: blur(4px);
  opacity: 0.5;
}
#image-bg {
  z-index: 2;
  background-image: var(--background-image);
  background-size: auto calc(100% - 4rem);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-blend-mode: color;
  opacity: 0.9;
}

@supports (-webkit-touch-callout: none) {
  #image-bg {
    background-attachment: scroll;
  }
}
#particle-controls {
  top: 0;
  display: flex;
  justify-content: end;
  align-items: end;
  padding: 1rem;
  font-size: 0.75rem;
  height: 100dvh;
  transition: height 250ms ease-in-out;
}

h1,
h2,
h3 {
  font-family: "0xProto", monospace;
  /* font-weight: 700; */
  letter-spacing: -0.02em;
  margin-bottom: 0.25em;
  color: var(--text-100);
}
h1 {
  font-size: clamp(3.125rem, 3.464vw + 2.229rem, 5rem);
  line-height: clamp(5rem, 2.771vw + 4.283rem, 6.5rem);
}
h2 {
  font-size: clamp(2.813rem, 2.656vw + 2.125rem, 4.25rem);
  line-height: clamp(4.5rem, 1.894vw + 4.01rem, 5.525rem);
}
h3 {
  font-size: clamp(2rem, 0.924vw + 1.761rem, 2.5rem);
  line-height: clamp(3.2rem, 0.092vw + 3.176rem, 3.25rem);
}

p {
  line-height: 1.6rem;
}

progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: color-mix(in srgb, var(--color), transparent 80%);
  box-shadow: var(--inset-shadow);
  display: block;
  width: 100%;
  margin-block: 0.5rem;
  height: 0.5rem;
  border-radius: 999rem;
  overflow: hidden;
  accent-color: var(--color-accent);
  border: 1px solid var(--text-300);
}
progress[value]::-webkit-progress-bar {
  background: color-mix(in srgb, var(--color), transparent 80%);
}

progress[value]::-webkit-progress-value {
  background-color: var(--color-accent);
  color: var(--color-accent);
}

progress[value]::-moz-progress-bar {
  background-color: var(--color-accent);
  color: var(--color-accent);
}

progress[value]::-webkit-progress-value::after {
  content: "80%";
  position: absolute;
  right: 0;
  top: -125%;
}

/* Header and navigation */
body > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  z-index: 100;

  --blur: calc(var(--f, 0) * 10px);
  --transparency: calc((1 - var(--f, 0)) * 100%);

  -webkit-backdrop-filter: blur(var(--blur, 10px));
  backdrop-filter: blur(var(--blur, 10px));
  padding-block: 0.5rem;
  background-color: color-mix(
    in hsl,
    var(--background-color),
    transparent var(--transparency, 0.5)
  );
  color: color-mix(in hsl, var(--color), transparent 20%);

  padding-inline: var(--header-padding);
  box-shadow: 0 0.25rem 0.5rem
    color-mix(in hsl, var(--text-400), transparent var(--transparency, 0.5));
  /* clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%); */
}

body:has(#hero) > header {
  position: fixed;
}

body > header > label[role="button"] {
  display: inline-block;
  height: 2.5rem;
  width: 2.5rem;
  margin-right: 1rem;
  mask-position: center center;
  mask-size: cover;
  -webkit-mask-size: cover;
  background-color: var(--text-100);
  --menu-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z'></path></svg>");
  -webkit-mask-image: var(--menu-icon);
  mask-image: var(--menu-icon);

  & input[type="checkbox"] {
    width: 0;
    opacity: 0;
  }
}
body > header > label[role="button"]:hover {
  background-color: var(--color-accent);
  cursor: pointer;
}

body > header > label[role="button"]:has(input[type="checkbox"]:checked) {
  --menu-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z'></path></svg>");
}
body > header:has(input[type="checkbox"]:checked) {
  --transparency: 20%;
  --blur: 8px;
}

body > header > label[role="button"]:focus-within {
  outline-offset: 8px;
}
body > header > :first-child {
  margin-left: 1rem;
}
body > header > nav[aria-label="main"] {
  display: block;
  flex: 1 0 100%;
  width: 100%;
  overflow: hidden;
  max-height: 0px;
}

body > header > label:has(input[type="checkbox"]:checked) ~ nav[aria-label="main"] {
  max-height: 100%;
}
body > header > nav[aria-label="main"] > menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  font-size: 1.2rem;
}
body > header > nav[aria-label="main"] > menu a {
  display: block;
  padding: 1rem;
  text-align: right;
}
body > header > nav[aria-label="main"] > menu :is(a:hover, a:focus) {
  outline-offset: -4px;
  background-color: color-mix(in srgb, var(--color-accent), transparent 90%);
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  background-color: transparent;
  border: none;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
}
:is(button, input, optgroup, select, textarea):focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}
input:not(:is([type="radio"], [type="checkbox"])),
select,
textarea {
  display: inline-block;
  font-size: 1em;
  padding-inline: 1em;
  color: var(--color);
  background-color: color-mix(in srgb, var(--background-color), white 50%);
  border: 1px solid #aaaaaa;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow) inset;
}

/* Buttons */
button {
  --button-background-color: var(--background-accent);
  display: inline-block;
  overflow: hidden;
  position: relative;
  font-size: 1em;
  height: 2em;
  line-height: 2em;
  padding: 0 1em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-100);
  background-color: var(--button-background-color);
  border: 1px solid color-mix(in srgb, var(--button-background-color), var(--text-400));
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

button:not(:where(:disabled, [aria-busy="true"])):hover {
  background-color: color-mix(in hsl, white 10%, var(--button-background-color));
}

button:not(:where(:disabled, [aria-busy="true"])):active {
  background-color: color-mix(in hsl, white 20%, var(--button-background-color));
}

button[aria-busy="true"] {
  cursor: progress;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

/* button[aria-busy="true"]:before {
  content: "";
  top: 0;
  left: 0;
  background-color: var(--button-background-color);
  position: absolute;
  width: 100%;
  height: 100%;
} */

button[aria-busy="true"]:before {
  content: "";
  display: inline-block;
  fill: currentColor;
  background-color: var(--text-color);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 256 256'><path d='M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z'></path></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 256 256'><path d='M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z'></path></svg>");
  background-repeat: no-repeat;
  background-size: cover;
  background-origin: border-box;
  height: 1em;
  aspect-ratio: 1;
  animation: spin var(--animation-long) linear infinite;
}

button[type="submit"] {
  --button-background-color: var(--background-success);
}

button[type="reset"] {
  --button-background-color: var(--background-error);
}
input:not(:is([type="radio"], [type="checkbox"])),
select {
  position: relative;
  height: 2.5em;
  line-height: 2.5em;
}
textarea {
  padding: var(--inline-gap);
}
:is(input, textarea)::placeholder {
  color: var(--text-400);
}

@media (min-width: 110ch) {
  body > header > label[role="button"] {
    display: none;
  }
  body > header {
    max-height: 100%;
  }
  body > header > nav[aria-label="main"] {
    flex: 0 0 fit-content;
    width: fit-content;
    max-height: 100%;
  }
  body > header > nav[aria-label="main"] > menu {
    flex-direction: row;
    gap: 0.5rem;
    padding-block: 0;
  }
  body > header > nav[aria-label="main"] > menu a {
    padding-inline: 1rem;
  }
}

/* Footer */
body > footer {
  text-align: center;
  font-size: 0.8rem;
  padding-block: 2rem;
  background: var(--surface-1);
}
body > footer a {
  white-space: nowrap;
}

section > figure {
  float: right;
  margin-left: 0.5rem;
}

section {
  clear: both;
}

#experience > hgroup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#experience button {
  margin: 0 auto;
}

/* Timeline */
#timeline {
  position: relative;
  background-image: linear-gradient(90deg, var(--text-300) 2px, transparent 1px);
  background-size: 2px auto;
  background-repeat: no-repeat;

  list-style: none;
  margin-block: var(--block-gap);
  padding-block: var(--block-gap);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-position: 1rem;
}
#timeline.reverse {
  flex-direction: column-reverse;
}
#timeline:before,
#timeline:after {
  content: " ";
  position: absolute;
  left: calc(1rem + 1px);
  width: 12px;
  aspect-ratio: 1;
  background-color: var(--text-300);
}
#timeline:before {
  top: 0;
  transform: translateX(-50%);
  border-radius: 999px;
}
#timeline:after {
  bottom: 0;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform: translateY(100%) translateX(-50%);
}
#timeline.reverse:after {
  bottom: auto;
  top: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: translateY(-100%) translateX(-50%);
}
#timeline.reverse:before {
  bottom: 0;
  top: auto;
}
#timeline li h3 {
  font-size: 1.5em;
}

#timeline li {
  position: relative;
  padding-inline: var(--inline-gap);
  padding-block: var(--inline-gap);
  background-color: color-mix(in hsl, var(--background-color), #ffffffcc 5%);
  box-shadow: var(--box-shadow);
  margin-left: 4rem;
  max-width: 80%;
}
#timeline li:before {
  content: "";
  position: absolute;
  background-color: var(--text-300);
  height: 10px;
  aspect-ratio: 1;
  border-radius: 999px;
  top: calc(50% - 6px);
  left: calc(-3rem - 4px);
}

#timeline li:after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 2px;
  top: calc(50% - 2px);
  background-color: var(--text-300);
  left: -3rem;
}

@media (min-width: 100ch) {
  #timeline {
    background-position: center;
    align-items: center;
    gap: 0.5rem;
  }
  #timeline:before,
  #timeline:after {
    left: 50%;
  }

  #timeline li {
    max-width: 40%;
    margin: auto;
  }

  #timeline li:nth-child(odd) {
    text-align: right;
    transform: translateX(calc(-50% - 3rem));
  }
  #timeline li:nth-child(even) {
    text-align: left;
    transform: translateX(calc(50% + 3rem));
  }

  #timeline li:before {
    content: "";
    position: absolute;
    height: 10px;
    aspect-ratio: 1;
    border-radius: 999px;
    top: calc(50% - 6px);
    left: auto;
  }
  #timeline li:nth-child(odd):before {
    right: calc(-3rem + 5px);
    transform: translate(100%);
  }
  #timeline li:nth-child(even):before {
    left: calc(-3rem + 5px);
    transform: translate(-100%);
  }
  #timeline li:after {
    content: "";
    position: absolute;
    width: 3rem;
    height: 2px;
    top: calc(50% - 2px);
    left: auto;
  }

  #timeline li:nth-child(odd):after {
    right: 0;
    transform: translate(100%);
  }
  #timeline li:nth-child(even):after {
    left: 0;
    transform: translate(-100%);
  }
}

/* Projects */
#project-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15em, 100%), 1fr));
  padding-bottom: var(--block-gap);
}

#project-list > article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--box-shadow);
  background-color: var(--surface-1);
  padding-inline: var(--inline-gap);
  padding-block: var(--inline-gap);
}
/* #project-list > article:hover {
  box-shadow: var(--box-shadow-hover);
  cursor: pointer;
} */
#project-list > article footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
#project-list > article > header > hgroup > h3 {
  font-size: 1.5em;
  line-height: 1.3;
}
#project-list > article > header > hgroup > p {
  font-size: 0.9em;
  line-height: 1.3;
  color: var(--text-300);
  padding-bottom: 1rem;
}
#project-list > article > header > aside {
  float: right;
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  justify-content: center;
}
#project-list > article > footer i {
  font-size: 1.2rem;
}
#project-list > article > footer > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

#skill-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(12em, 100%), 1fr));
  padding-bottom: var(--block-gap);
}

#skill-list > article {
  box-shadow: var(--box-shadow);
  background-color: var(--surface-1);
  height: 15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#skill-list > article > figure {
  --bg1: color-mix(in srgb, var(--bg), transparent 10%);
  --bg2: color-mix(in srgb, var(--bg), transparent 40%);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  padding: 1rem;
  overflow: hidden;
  max-height: 60%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#skill-list > article img {
  width: 70%;
  height: auto;
  transition: width 0.5s ease-in-out;
}
#skill-list > article > header {
  max-height: 40%;
  height: 100%;
}
#skill-list > article > footer {
  max-height: 0%;
  height: fit-content;
  transition: max-height 0.5s ease-in-out;
}

#skill-list > article:hover img {
  width: 120%;
}
#skill-list > article:hover > footer {
  max-height: 100%;
}
#skill-list > article > header {
  padding-inline: var(--inline-gap);
  transition: max-height 0.5s ease-in-out;
}

#skill-list > article > header > hgroup > h3 {
  font-size: 1.5em;
}

#skill-list > article > footer > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin: 1rem;
}

#otherskill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding-block: var(--block-gap);
}

#contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(calc(60ch - 1rem), 100%), 1fr));
  gap: 1rem 2rem;
}

#contact .pill {
  --pill-color: var(--color-accent);
  --pill-background: var(--background-accent);
}

#contact > h2 {
  grid-column: 1 / -1;
}

#contact form > fieldset {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1rem;
  margin-bottom: 1rem;
  border: none;
}
#contact form > fieldset > textarea {
  grid-column: 1 / -1;
}
#contact ul {
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#publication-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

type-writer {
  --typewriter-cursor-color: var(--color);
  --typewriter-text-color: var(--color-accent);
}

.pill {
  background-color: var(--pill-background);
  color: var(--pill-color);
  border-radius: var(--pill-radius);
  padding: var(--pill-padding);
  overflow: hidden;
}
.pill:focus-within {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.pill > a {
  color: currentColor;
  text-decoration: none;
  width: 100%;
  padding: var(--pill-padding);
}

.pill:has(a) {
  padding: 0;
}
.pill:has(a):hover {
  color: var(--pill-background);
  background-color: var(--pill-color);
}

.dudek {
  color: var(--color-accent);
}

.slide {
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
}
.slide.left,
.slide.right {
  opacity: 0;
}
.slide.left {
  transform: translateX(-100%);
}
.slide.right {
  transform: translateX(100%);
}

svg {
  top: 0.125em;
  position: relative;
}
