@counter-style asterisk {
  system: cyclic;
  symbols: "∗";
  suffix: " ";
}

:root {
  background-color: var(--devsite-surface);
  text-rendering: geometricprecision;

  font-synthesis: none;
  font-family: Playfair, serif;
  font-optical-sizing: none;
  font-weight: 400;

  color: #ece5e5;

  --devsite-primary: #fac863;
  --devsite-accent: #c594c5;
  --devsite-highlight: #5fb3b3;
  --devsite-surface: #101213;
  --devsite-light-surface: #171b1c;
  --devsite-content-border: 1px solid #242b2e;
}

.app {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr 4fr 1fr;
  min-height: 98vh;
  border: var(--devsite-content-border);
  background-color: var(--devsite-surface);
}

header {
  padding-left: 24px;
  position: relative;
}

.header-container {
  position: absolute;
  bottom: 0;
}

main {
  padding: 24px;
  background-color: var(--devsite-light-surface);
}

@media (width <= 550px) {
  .app {
    border: none;
    min-height: 94vh;
  }

  body {
    margin: 0;
  }
}

h1 {
  font-size: clamp(3.5rem, calc(2.5rem + 2vw), 4.25rem);
  font-weight: 800;
  margin: 0;
  color: var(--devsite-primary);
}

h2 {
  font-size: 1.5em;
  padding-top: 0.5em;
  margin: 0.25em 0;
  font-weight: 700;
  line-height: 1.2em;
  color: var(--devsite-accent);
  word-break: break-word;
}

ul {
  list-style-type: none;
  margin-block: 0 1rem;
}

li {
  padding: 0.1em 0;
  font-size: 1.05rem;
  line-height: 1.4rem;
  position: relative;
}

li::marker {
  color: transparent;
  display: none;
}

li::before {
  content: "*";
  left: -1.2ch;
  position: absolute;
  line-height: 1.35;
  font-size: 1.3em;
  color: var(--devsite-highlight);
}

p {
  margin: 0.5em 0 1em;
}

em {
  font-style: italic;
}

.anchor {
  cursor: pointer;
  text-decoration: none;
  padding: 0 0.35ch;
  margin: 0 0.1ch;
  border-radius: 2px;
  border: 1px solid currentcolor;
  position: relative;
  color: var(--devsite-highlight);
  font-style: normal;
}

.anchor:hover,
.anchor:focus {
  color: white;
  background-color: #088;
  border: 1px solid #088;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.footer-icons {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-icon img {
  padding: 1rem;
  display: block;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0.8;
}

.footer-icon img:hover {
  transform: scale(1.1);
  transform-origin: center;
  opacity: 1;
}
