*,
*::before,
*::after {
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

:root {
  color-scheme: light;
  --bg: #f4efe6;
  --text: #3c372f;
  --muted: #6d665b;
  --button-text: #312d27;
  --range: #7d7567;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f1b16;
  --text: #eee7da;
  --muted: #b9ad9c;
  --button-text: #f6efe3;
  --range: #d7cbb8;
}

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

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
}

button,
input,
output {
  font: inherit;
}

button {
  color: inherit;
}

.page {
  position: relative;
  min-height: 180vh;
  padding: 7rem 1rem;
}

.copy {
  width: min(38rem, calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.copy-image {
  width: min(40rem, calc(100% + 2rem));
  border-radius: 1rem;
}

.copy p {
  width: 100%;
  margin: 0;
  color: var(--text);
}

.center-controls {
  position: fixed !important;
  border-radius: 10rem;
  padding: .55rem .85rem;
  z-index: 20;
  top: 2.75rem;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 4rem, 22rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pill {
  background: none;
  border: none;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
}

.pill__label {
  position: relative;
}

body>.page>.customize {
  display: block;
  width: min(38rem, calc(100vw - 2rem));
  margin: 3rem auto 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text);
}

.customize__body {
  padding: 2rem 0 0;
}

.customize label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}

.customize span,
.customize output {
  color: inherit;
}

.customize output {
  font-variant-numeric: tabular-nums;
}

.customize input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--range);
}

@media (max-width: 34rem) {
  .center-controls {
    align-content: center;
  }
}