:root {
  --donation-amount: 1769;
  --donation-goal: 2149;
  --donation-progress: calc((var(--donation-amount) / var(--donation-goal)) * 100%);
}

@font-face {
  font-family: "mplus-1m";
  src: url("./mplus-1m-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  background: #14181d;
  color: #c4cbd3;
  font-family: "mplus-1m", monospace;
  text-transform: lowercase;
}

main {
  width: min(100%, 720px);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.acab-fda {
  margin-top: auto;
  padding-top: 32px;
}

.faq {
  margin-top: 24px;
}

.faq > p + p {
  margin-top: 4px;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4.8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

p {
  margin: 16px 0 0;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: #8aa4c8;
  text-decoration: underline;
}

.machine {
  display: block;
  margin: 24px auto 0;
  width: 50%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.machine image {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.donation-progress {
  margin-top: 32px;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.5;
}

.donation-progress__bar {
  margin-top: 8px;
  width: 100%;
  max-width: 420px;
  height: 28px;
  border: 3px solid currentColor;
}

.donation-progress__fill {
  width: var(--donation-progress);
  height: 100%;
  background-color: #c4cbd3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'><rect width='1' height='1' x='0' y='0' fill='%2314181d'/><rect width='1' height='1' x='2' y='2' fill='%2314181d'/></svg>");
  background-repeat: repeat;
}

.donation-progress__amount {
  margin-top: 8px;
}

.donation-progress__amount::before {
  counter-reset: amount var(--donation-amount) goal var(--donation-goal);
  content: "$" counter(amount) " / $" counter(goal);
}

.donation-methods {
  margin-top: 48px;
}

.xmr-addr {
  text-transform: none;
}

.donation-methods__heading,
.appearances__heading {
  font-style: italic;
}

.appearances {
  margin-top: 48px;
}

.appearances__details > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  color: #8aa4c8;
  text-decoration: underline;
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.5;
}

.appearances__details > summary::-webkit-details-marker {
  display: none;
}

.appearances__details > summary::marker {
  content: "";
}

.appearances ul {
  margin: 16px 0 0;
  padding-left: 1.5em;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.5;
}

.appearances li {
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.appearances__event {
  white-space: nowrap;
}

.appearances__detail {
  display: inline-block;
}

.signature {
  margin-top: 32px;
  margin-bottom: 24px;
  line-height: 0;
}

.signature img {
  display: block;
  width: 120px;
  height: auto;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }
}
