*,
*: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;
}

.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;
}

