:root {
  color-scheme: dark;
  --bg: #09090b;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.66);
  --line: rgba(244, 241, 234, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 36% at 50% 18%, rgba(58, 68, 78, 0.18), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

button,
a,
input {
  font: inherit;
  color: inherit;
}

.back {
  position: fixed;
  z-index: 5;
  top: 18px;
  left: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:focus-visible {
  color: var(--text);
}

.app {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 56px;
}

.intro,
.control,
.readout,
.hint {
  text-align: center;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.lockup {
  margin: 36px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-align: center;
  font-variation-settings: "opsz" 80, "wght" 560, "SOFT" 30, "WONK" 1;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.control {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 28px;
}

.control span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input[type="range"] {
  width: min(440px, 100%);
  accent-color: var(--text);
}

.readout {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.back:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .back {
    top: 14px;
    left: 14px;
  }

  .app {
    width: calc(100% - 28px);
    padding-top: 72px;
  }
}
