/* Satoshi by Deni Anggara, © 2023 Indian Type Foundry. https://www.fontshare.com/fonts/satoshi */
@font-face {
  font-family: Satoshi;
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --background: #f5f1ef;
  --ink: #620074;
  --purple: #7a2c88;
  --peach: #f5cab2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Satoshi, sans-serif;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
  line-height: 1.5;
}
::selection {
  background: var(--peach);
}
.wrap {
  width: min(90%, 1440px);
  margin: auto;
}
a {
  color: inherit;
  text-decoration-color: #62007466;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: currentColor;
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
h1,
h2 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.54rem + 2vw, 3.3rem);
  font-weight: 700;
  margin: 0 0 1.1em;
}
h2 {
  font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.88rem);
  font-weight: 650;
  margin: 1.5em 0 0.65em;
}
p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
  max-width: 70ch;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6%;
  align-items: start;
  padding: 6rem 1.5rem 4rem;
}
.hero-art {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}
.history {
  margin-top: 2rem;
}
.highlight,
.underline {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.highlight:before {
  content: "";
  position: absolute;
  inset: 0 -0.15em -0.05em -0.15em;
  background: url("/public/images/highlight.svg") center/100% 100% no-repeat;
  z-index: -1;
}
.underline:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.35em;
  bottom: -0.22em;
  background: url("/public/images/underline.svg") center/100% 100% no-repeat;
  z-index: -1;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: var(--background);
  font:
    650 1.05rem Satoshi,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease;
}
.button:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.button[hidden] {
  display: none;
}
.prompt {
  display: block;
  width: 100%;
  height: 26rem;
  min-height: 16rem;
  resize: vertical;
  border: 2px solid var(--peach);
  border-radius: 12px;
  padding: 1.5rem;
  background: #f5cab233;
  color: var(--purple);
  font:
    1rem/1.6 "Roboto Slab",
    serif;
  scroll-margin-top: 2rem;
}
.prompt[hidden] {
  display: none;
}
.copy-status {
  font-size: 0.95rem;
  margin: 0.8rem 0 0;
}
.copy-status:empty {
  display: none;
}
.back-link {
  display: inline-block;
  margin: 3rem 1.5rem 0;
  font-weight: 650;
}
.about-hero {
  padding-top: 3rem;
}
.lead {
  font-size: 1.4rem;
  line-height: 1.4;
}
.reading-list {
  background: #f5cab240;
  padding: 1.5rem 1.5rem 1.5rem 2.75rem;
  border-radius: 16px;
}
.reading-list li + li {
  margin-top: 0.8rem;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.5rem 3rem;
  font-size: 1rem;
  font-weight: 650;
}
.credits,
.logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.logos img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}
.powerplant {
  filter: brightness(0) saturate(100%) invert(19%) sepia(38%) saturate(3429%) hue-rotate(273deg)
    brightness(85%) contrast(109%);
}
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-150%);
  padding: 0.5rem;
  background: var(--background);
  z-index: 10;
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 850px) {
  .hero {
    gap: 3%;
    padding-top: 4rem;
    grid-template-columns: 1.25fr 1fr;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .credits {
    gap: 0.8rem;
  }
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-hero .hero-art {
    max-width: 400px;
    justify-self: center;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: 100%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 2rem;
    gap: 2rem;
  }
  .hero-art {
    width: 75%;
    max-width: 340px;
    justify-self: center;
    margin: 0;
  }
  .history {
    margin-top: 2rem;
  }
  .credits {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    gap: 1.5rem;
  }
  .back-link {
    margin-top: 2rem;
  }
  .about-hero {
    padding-top: 2rem;
  }
  .about-hero .hero-art {
    grid-row: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
