html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 14vh 28px 12vh;
}

p,
h1 {
  margin: 0 0 1.4em;
  font-size: 1em;
  font-weight: normal;
}

h1 {
  font-size: 1em;
  line-height: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
}

a:hover {
  text-underline-offset: 0.28em;
}

ul {
  list-style: disc;
  padding: 0 0 0 1.15em;
  margin: 0 0 1.4em;
}

ul li {
  margin: 0 0 0.55em;
  padding-left: 0.12em;
}

li::marker {
  color: #777;
  font-size: 0.7em;
}

.minecraft-list {
  list-style: none;
  padding-left: 1.1em;
}

.minecraft-list > li {
  position: relative;
  padding-left: 0.15em;
}

.minecraft-list > li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.48em;
  width: 0.72em;
  height: 0.72em;
  background: url("/icons/retro/diamond.svg") center / contain no-repeat;
  image-rendering: pixelated;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  margin: 0 0 1.4em;
}

.press-grid a {
  display: block;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  padding: 0.35em;
}

.press-grid img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.muted {
  color: #9a9a9a;
}

.top-links {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 6px;
  border: 2px solid #373737;
  background: #c6c6c6;
  box-shadow:
    inset 2px 2px #fff,
    inset -2px -2px #777;
}

.top-links a {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 2px solid;
  border-color: #555 #fff #fff #555;
  background: #8b8b8b;
  text-decoration: none;
}

.top-links img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  image-rendering: pixelated;
}

.top-links a:hover,
.top-links a:focus-visible {
  background: #b3b3b3;
  outline: 2px solid #fff;
  outline-offset: -2px;
  box-shadow: none;
  filter: none;
}

.top-links a:active {
  background: #777;
  border-color: #444 #ddd #ddd #444;
}

.with-icon {
  white-space: nowrap;
}

.with-icon.long-label {
  white-space: normal;
}

.with-icon img {
  width: 1em;
  height: 1em;
  margin-right: 0.22em;
  border-radius: 3px;
  object-fit: cover;
  vertical-align: -0.14em;
}

.has-preview {
  position: relative;
  display: inline-block;
}

.link-preview {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 6px;
  border: 4px solid #3e7d2c;
  background: #111;
  color: #fff;
  box-shadow: 5px 5px 0 #111;
  white-space: normal;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: top left;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 90ms steps(3, end),
    transform 90ms steps(3, end),
    clip-path 90ms steps(3, end),
    visibility 0s linear 90ms;
}

.link-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.link-preview .link-preview-single {
  display: block;
  width: 100%;
  height: 165px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.link-preview .link-preview-single.email-preview {
  object-fit: contain;
  background: #fff;
}

.link-preview-gallery img {
  display: block;
  width: 100%;
  height: 78px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.link-preview span {
  display: block;
  padding: 5px 3px 2px;
  color: #fff;
  font:
    14px/1.1 "VT323",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.has-preview:hover .link-preview {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0);
  transition-delay: 0s;
}

.has-preview:focus-visible .link-preview {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .link-preview,
  .has-preview:hover .link-preview,
  .has-preview:focus-visible .link-preview {
    transition: none;
    transform: none;
    clip-path: none;
  }
}

.site-footer {
  margin: 2.8em 0 0;
  color: #666;
  font-size: 0.8em;
}

.contact-note {
  border-top: 1px solid #e6e6e6;
  padding-top: 1em;
  margin-top: 2.2em;
}

.contact-note p:last-child {
  margin-bottom: 0;
}

.contact-note + .press-link {
  margin-top: 2.25em;
}

.site-footer .location {
  color: #333;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

hr {
  border: none;
  height: 1.4em;
}

@media (max-width: 600px) {
  html,
  body {
    font-size: 18px;
    line-height: 1.6;
  }
  main {
    padding: 8vh 22px 10vh;
  }
  .press-grid {
    grid-template-columns: 1fr;
  }
  .with-icon {
    white-space: normal;
  }
  .has-preview {
    display: inline;
  }
  .link-preview {
    display: none;
  }
}

::selection {
  background: #d9ff57;
  color: #111;
  text-shadow: none;
}

::-moz-selection {
  background: #d9ff57;
  color: #111;
  text-shadow: none;
}
