:root {
  font-family: "InterDisplay", sans-serif;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: "InterVar", sans-serif;
    font-optical-sizing: auto;
  }
}

:root {
  font-size: 16px;
  --heroFontSize: 1.8rem;
  --bg: #fff;
  --text: #000;
  --stroke: #ddd;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.hero {
  font-size: var(--heroFontSize);
  font-weight: 530;
  line-height: 120%;
  z-index: 1;
  font-variation-settings: "opsz" 32;
}

.bolder {
  font-weight: 700;
}

.width-full {
  width: 100%;
}

p img {
  height: calc(var(--heroFontSize) - 0.5rem);
  margin-left: 0.25rem;
  margin-right: 0.1rem;
}

.nowrap {
  white-space: nowrap;
}

.no-margin-top {
  margin-top: 0;
}

.no-margin {
  margin: 0;
}

body {
  margin: 0;
}

main {
  max-width: 43rem;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.hide-on-mobile {
  display: none;
}

@media screen and (min-width: 40rem) {
  .hide-on-desktop {
    display: none;
  }

  .hide-on-mobile {
    display: initial;
  }
}

.neg-top {
  margin-top: -1.8rem;
}

.me-polaroids {
  position: relative;
  height: 14rem;
  z-index: 9999;
}

.semi-transparent {
  opacity: 0.3;
}

hr {
  border: solid 1px var(--stroke);
}

a {
  color: inherit;
}

.blue {
  color: #0090ce;
}

.red {
  color: #ff2264;
}

.green {
  color: #00db49;
}

.orange {
  color: #f1530e;
}

.rounded-icon {
  border-radius: 30%;
}

.large-title {
  font-size: 5rem;
  opacity: 0.3;
  margin: 0;
  font-weight: 700;
  font-variation-settings: "opsz" 32;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
}

a:active,
a:hover {
  opacity: 0.7;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 1rem;
}

.icons a {
  opacity: 0.5;
}

.icons a svg {
  vertical-align: middle;
}

.icons a:active,
a:hover {
  opacity: 1;
}

.footer-with-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.block-img {
  font-size: var(--heroFontSize);
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.img-on-bg {
  background: #f8f8f8;
  border: solid 1px #f8f8f8;
}

@media screen and (max-width: 40rem) {
  .large-title {
    font-size: 3rem;
  }

  .footer-with-icons {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0rem;
  }

  .grid p {
    margin-top: 0;
  }

  .grid :first-child {
    margin-top: 1rem;
  }
}

@media (prefers-contrast: more) {
  .large-title {
    opacity: 0.8;
  }

  .semi-transparent {
    opacity: 0.8;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #eee;
    --stroke: #333;
  }

  .blue {
    color: #00a6ee;
  }

  .green {
    color: #00f652;
  }

  .red {
    color: #ff3370;
  }

  .orange {
    color: #ff763b;
  }

  .img-on-bg {
    background: #333;
    border: solid 1px #333;
  }
}

.mini-avatar {
  border-radius: 40%;
  height: calc(var(--heroFontSize) - 0.2rem);
}
