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

html {
  font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:link,
a:hover,
a:visited {
  text-decoration: none;
}

:root {
  --the-brand-color: #F23B39;

  --background-color: #F4F0EC;

  --text-color: #111;

  --link-color: #1D7BFF;
  --link-background: transparent;
  --link-hover-color: #F23B39;
  --link-hover-background: #d4f7ff;

  --card-background: white;

  --post-code-background-color: rgba(0, 0, 0, 0.1);
  --post-footnote-background-color: black;
  --post-footnote-color: white;
}

html[data-theme='dark'] {}


html {
  scroll-padding-top: 110px;
  scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
}

a:focus, button:focus {
  outline: none;
}

a:focus:before, button:focus:before {
  content: "";
  border-radius: inherit;
  box-shadow: 0 0 0 2px white, 0 0 0 4px black, 0 0 0 6px white;
  position: absolute;
  inset: -1px;
  pointer-events: none;
  user-select: none;
  animation: breath 1s infinite steps(3);
  z-index: 256;
}

@keyframes breath {
  0% {
    inset: -1px;
  }

  50% {
    inset: -3px;
  }

  100% {
    inset: -1px;
  }
}

@view-transition {
  navigation: auto;
}

.home {
  display: flex;
  flex-direction: column;
  padding: 60px 0;
  gap: 60px;
  overflow: hidden;
}

.home__section {
  width: 100%;
  max-width: calc(672px + 20px);
  margin: 0 auto;
  padding: 0 20px;
}

.home__section--wide {
  max-width: calc(1200px + 20px);
}

.home__section--grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.home__section--list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.home__section--small-gap-1 {
  margin-top: -10px;
}

.home__section--small-gap-2 {
  margin-top: -30px;
}

.home__footer {
  color: var(--text-color);
  text-align: center;
  display: flex;
  justify-content: center;
}

.home__footer a:link,
.home__footer a:visited,
.home__footer a:active {
  color: var(--link-color);
  text-decoration: underline;
}

.home__footer-circle {
  border: 1px solid var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 200px;
  height: 80px;
  text-align: center;
  text-transform: lowercase;
  font-size: 12px;
}

.home__footer-circle span {
  width: 180px;
}

.home__chip-group {
  display: flex;
  gap: 10px;
}

.home__card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.chip {
  background: var(--card-background);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.25);
  color: var(--text-color);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  height: 48px;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 250ms ease-out;
  text-align: center;
  font-size: 16px;
}

.chip--text-only {
  padding: 0 18px;
}

.chip--icon-only {
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
}

.chip--linkedin {
  background: white;
  color: black;
  transform: rotate(-3deg) !important;
}

.chip--x {
  background: black;
  color: white;
  transform: rotate(3deg) !important;
}

.chip--bluesky {
  background: rgb(11, 122, 255);
  color: white;
  transform: rotate(-2deg) !important;
}

.chip--mastodon {
  background: #6364FF;
}

.chip:hover {
  background: #FFC2C2;
  transition: none;
}

.chip--linkedin:hover {
  background: #F0F0F0;
}

.chip--x:hover {
  background: #707070;
}

.chip--bluesky:hover {
  background: #4E9DFF;
}

.chip--mastodon:hover {
  background: #9C9CFF;
}

.chip:focus {
  outline: none;
}

.card + .chip:hover {
  background: #BBFFAD;
}

.chip:nth-child(5n + 1) {
  transform: rotate(1deg);
}

.chip:nth-child(5n + 2) {
  transform: rotate(-0.5deg);
}

.chip:nth-child(5n + 3) {
  transform: rotate(1deg);
}

.chip:nth-child(5n + 4) {
  transform: rotate(-0.5deg);
}

.chip:nth-child(5n) {
  transform: rotate(1.5deg);
}

.chip__icon {
  height: 24px;
}

.chip--has-image {
  transform: none !important; /* Hacky hack because transform break child mx-blend-modes! wtf! */
}

.chip__image {
  position: absolute;
  mix-blend-mode: multiply;
  width: 110px;
  left: 0;
  transform: translate(-65%, -10%) rotate(5deg);
  user-select: none;
  pointer-events: none;
}

.chip:nth-child(3n + 1) .chip__image {
  left: unset;
  right: 0;
  transform: translate(65%, -5%) rotate(-5deg);
}

@media (max-width: 760px) {
  .chip--text-only {
    font-size: 13px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .chip__image {
    width: 70px;
  }
}

.button,
.button:visited,
.button:active {
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 9px;
  background: var(--card-background);
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  position: relative;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

.button::after {
  content: "";
  border-radius: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
}

.button:hover::after {
  background: rgba(255, 255, 255, 0.2);
}

.button:active::after {
  background: rgba(0, 0, 0, 0.05);
}

.button--full-width {
  width: 100%;
}

.button--green:link,
.button--green:visited,
.button--green:active {
  background: color-mix(in srgb, currentColor, transparent 95%);
  border: 1px solid color-mix(in srgb, currentColor, transparent 20%);
  color: #00960C;
}

.button svg,
.button img {
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
}

.panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel__icon {
  background: var(--card-background);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 5px;
  flex-shrink: 0;
}

.panel__icon img {
  width: 100%;
  opacity: 0.7;
}

.panel__content {
  background: var(--card-background);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.25);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 15px 18px;
  max-width: 540px;
  gap: 10px;
  line-height: 1.3;
  font-size: 16px;
  transform: rotate(-0.5deg)
}

.panel__content p {
  margin: 0;
}

.panel__footer {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  padding-bottom: 3px;
}

@media (max-width: 620px) {
  .panel {
    flex-direction: column;
  }

  .panel__icon {
    display: none;
  }

  .panel__content {
    font-size: 14px;
    text-wrap: unset;
  }
}

@media (max-width: 555px) {
  .panel__footer {
    flex-direction: column;
  }
}

