:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  display: block;
  max-width: 60ch;
  margin: 50px auto;
  padding: 0 20px;
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  background-color: #000000;
  color: #fdfdfd;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  margin-top: 2.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.25rem;
}

a {
  color: #8ecbff;
}

a:visited {
  color: #c9a6ff;
}

[disabled] {
  opacity: 0.5;
}

[pfp] {
  max-height: 1em;
}

.cyrillic {
  font-family: "Inter", sans-serif;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
}

.lang-picker svg {
  flex: none;
}

select {
  font: inherit;
  padding: 0.25rem 0.5rem;
  background: #111;
  color: inherit;
  border: 1px solid #555;
  border-radius: 4px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero .icon {
  flex: none;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.hero p {
  flex: 1 1 20ch;
}

.slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

figure.slide {
  margin: 0;
}

figure.slide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #333;
  border-radius: 6px;
  background: #000;
}

figure.slide figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 1rem;
}

figure.slide-onboarding figcaption {
  justify-content: flex-end;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.swatch {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  border: 1px solid #555;
}

.swatch-yang {
  background: #fdfdfd;
}
.swatch-red {
  background: #e8325a;
}
.swatch-green {
  background: #3ec46d;
}
.swatch-yellow {
  background: #e8d44d;
}
.swatch-orange {
  background: #f08a2e;
}
.swatch-blue {
  background: #3e8ef7;
}
.swatch-purple {
  background: #9b5de5;
}
.swatch-pink {
  background: #f15bb5;
}
.swatch-gray {
  background: #9aa0a6;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.download svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.storage-popup {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(60ch, calc(100% - 40px));
  margin: 0;
  padding: 0 20px;
  background: #000;
  border: 1px solid #555;
  border-radius: 4px;
  z-index: 100;
}

.storage-popup[hidden] {
  display: none;
}

.storage-popup p {
  margin: 0;
  flex: 1 1 20ch;
  padding: 1rem 0;
  font-size: 1rem;
}

.storage-popup-actions {
  display: flex;
  gap: 0.5rem;
}

.storage-popup button {
  font: inherit;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  background: #111;
  color: #fdfdfd;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
}

.storage-popup button:hover {
  border-color: #fdfdfd;
}

.storage-popup button:focus-visible {
  outline: 2px solid #fdfdfd;
  outline-offset: 2px;
}
